genkgo / api
Genkgo API Connector
Installs: 15 457
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 4
Forks: 3
Open Issues: 1
Requires
- php: ~8.2.0
- psr/http-client: ^1.0
- psr/http-factory: ^1.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- guzzlehttp/guzzle: ^7.5
- guzzlehttp/psr7: ^2.4.3
- phpunit/phpunit: ^9.5
README
Usage
Add genkgo/api
and implementations of psr/http-client
and psr/http-factory
to your dependencies and install them.
You can have a look at one of the examples or see the docs. The examples rely on
Guzzle and Guzzle PSR-7 for the http implementations.
<?php require_once '../vendor/autoload.php'; use Genkgo\Api\Connection; use GuzzleHttp\Client; use GuzzleHttp\Psr7\HttpFactory; $config = require_once 'config.php'; $connection = new Connection(new Client(), new HttpFactory(), $config['url'], $config['token']); $folder = $connection->command('organization', 'find', [ 'name' => 'Aanmeldingen' ]);