Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wodby/wodby-sdk-php
Wodby PHP SDK
https://github.com/wodby/wodby-sdk-php
php sdk wodby
Last synced: 3 months ago
JSON representation
Wodby PHP SDK
- Host: GitHub
- URL: https://github.com/wodby/wodby-sdk-php
- Owner: wodby
- License: mit
- Created: 2016-10-03T08:26:06.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-04-26T11:35:35.000Z (over 1 year ago)
- Last Synced: 2024-10-28T22:57:16.083Z (3 months ago)
- Topics: php, sdk, wodby
- Language: PHP
- Homepage: https://wodby.com/docs/dev
- Size: 468 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Wodby SDK PHP
[![TravisCI](https://travis-ci.org/wodby/wodby-sdk-php.svg)](https://travis-ci.org/wodby/wodby-sdk-php)
[![Latest stable](https://img.shields.io/packagist/v/wodby/wodby-sdk-php.svg)](https://packagist.org/packages/wodby/wodby-sdk-php)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](#documentation)
* [Install](#install)
* [Basic usage](#basic-usage)## Documentation
* [API reference](https://wodby.com/docs/api)
* [Automatically generated documentation](SwaggerClient-php)## Install
```bash
composer require wodby/wodby-sdk-php
```## Basic usage
```php
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;
}
```