PHP code example of wodby / wodby-sdk-php
1. Go to this page and download the library: Download wodby/wodby-sdk-php library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
wodby / wodby-sdk-php example snippets
$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;
}
bash
composer