wodby / wodby-sdk-php
Wodby SDK for PHP
Installs: 7 651
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 4
Forks: 0
Open Issues: 1
Requires
- php: >=7.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- codeception/codeception: ^2.4 || ^3.0
README
The Wodby SDK for PHP makes it easy for developers to access Wodby in their PHP code. You can get started in minutes by installing the SDK through Composer or by downloading a single zip.
Documentation
Install
composer require wodby/wodby-sdk-php
Basic usage
require_once './vendor/autoload.php'; $config = \Wodby\Api\Configuration::getDefaultConfiguration() ->setApiKey('X-API-KEY', 'YOUR_API_KEY'); $appApi = new \Wodby\Api\Client\ApplicationApi(new GuzzleHttp\Client(), $config); // Fetch apps and print them. $apps = $appApi->getApps(); /** @var \Wodby\Api\Model\App $app */ foreach ($apps as $app) { echo sprintf('ID: %d, Name: %s', $app->getId(), $app->getName()), PHP_EOL; }