Coder Social home page Coder Social logo

dagger / dagger-php-sdk Goto Github PK

View Code? Open in Web Editor NEW
19.0 8.0 2.0 384 KB

A read-only mirror of the Dagger PHP SDK. Do not use directly! To contribute, see https://github.com/dagger/dagger/tree/main/sdk/php

License: Apache License 2.0

PHP 95.30% Dockerfile 0.98% Go 3.43% Shell 0.30%

dagger-php-sdk's Introduction

Warning This SDK is experimental. Please do not use it for anything mission-critical. Possible issues include:

  • Missing features
  • Stability issues
  • Performance issues
  • Lack of polish
  • Upcoming breaking changes
  • Incomplete or out-of-date documentation

Warning The Dagger PHP SDK requires Dagger v0.9.3 or later

Dagger PHP SDK

An experimental Dagger.io SDK for PHP.

Usage

$client = Dagger::connect();
$output = $client->pipeline('test')
    ->container()
    ->from('alpine')
    ->withExec(['apk', 'add', 'curl'])
    ->withExec(['curl', 'https://dagger.io'])
    ->stdout();

echo substr($output, 0, 300);

Development environment

You can launch a basic development environment by using the provided docker-compose file.

  1. Launch the cli : docker compose up -d cli
  2. Spawn a shell inside : docker compose exec cli bash
  3. Install dependencies : composer install
  4. Run the tests : phpunit

You can regenerate the files by using the ./codegen command

Developing with the PHP SDK runtime

From a parent directory of the PHP SDK, run dagger init --sdk=<path to dagger repo>/sdk/php.

This will use the PHP SDK runtime with local source code which will make the feedback loop much faster than pulling changes from the remote repository.

dagger-php-sdk's People

Contributors

jedevc avatar github-actions[bot] avatar sipsma avatar helderco avatar charjr avatar tomchv avatar zeroware avatar vito avatar dagger-ci avatar grouville avatar adrien-fichet avatar aluzzardi avatar kgb33 avatar marcosnils avatar mykiwi avatar tomasmota avatar carnage avatar

Stargazers

Jason McCallister avatar Francesco Bianco (yafb) avatar Alex Williams avatar  avatar Alex Ross avatar Harvey Dobson avatar theoboldalex avatar Paul Dragoonis avatar Philip Reinken avatar Guillaume Loulier avatar Guillaume Dumoulin avatar  avatar Mathieu Santostefano avatar Simon Mönch avatar Théo FIDRY avatar Théo D avatar Adrien Roches avatar Jérémy DECOOL avatar  avatar

Watchers

Paul Dragoonis avatar  avatar Jenn Allen avatar  avatar  avatar  avatar Miranda Carter avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.