https://github.com/linkorb/infra-sdk-php
Infra SDK: Utils for your custom PHP-based infra scripts
https://github.com/linkorb/infra-sdk-php
Last synced: 12 months ago
JSON representation
Infra SDK: Utils for your custom PHP-based infra scripts
- Host: GitHub
- URL: https://github.com/linkorb/infra-sdk-php
- Owner: linkorb
- License: mit
- Created: 2019-03-19T09:04:59.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-01-03T18:26:37.000Z (over 6 years ago)
- Last Synced: 2025-02-24T06:17:49.908Z (over 1 year ago)
- Language: PHP
- Size: 4.88 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
infra-sdk
=========
A set of practical utilities to use in your custom PHP-based [infra](https://github.com/linkorb/infra) scripts.
### query
```php
$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](http://docopt.org/) 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.
```php
$arguments = \Infra\Sdk\Utils::getArguments();
```
## License
MIT. Please refer to the [license file](LICENSE) for details.
## Brought to you by the LinkORB Engineering team

Check out our other projects at [linkorb.com/engineering](http://www.linkorb.com/engineering).
Btw, we're hiring!