linkorb/infra-sdk

Infra SDK: Utils for your custom PHP-based infra scripts

v1.0.1 2019-03-19 09:13 UTC

README

A set of practical utilities to use in your custom PHP-based infra scripts.

query

$data = \Infra\Sdk\Utils::query($graphql); // executes `infra query` and returns the response as an array

getArguments

You can let Infra SDK parse your command line arguments against a docopt definition.

Simply include a file with the exact same name as your script, but with a ".md" file extension, and Infra SDK will extract the docopt definition and parse your command line arguments.

$arguments = \Infra\Sdk\Utils::getArguments(); 

License

MIT. Please refer to the license file for details.

Brought to you by the LinkORB Engineering team

687474703a2f2f7777772e6c696e6b6f72622e636f6d2f642f6d6574612f74696572312f696d616765732f6c696e6b6f7262656e67696e656572696e672d6c6f676f2e706e67
Check out our other projects at linkorb.com/engineering.

Btw, we're hiring!