fusio/sdk
最新稳定版本:v6.4.0
Composer 安装命令:
composer require fusio/sdk
包简介
SDK to talk to the Fusio REST API
README 文档
README
This is the official Fusio PHP SDK, it helps to talk to the Fusio REST API. Fusio is an open source API management system, more information at: https://www.fusio-project.org
Usage
The following example shows how you can get all registered routes at the backend. A working example is also available at: https://github.com/apioo/fusio-sample-php-cli
<?php require __DIR__ . '/vendor/autoload.php'; $tokenStore = new \Sdkgen\Client\TokenStore\MemoryTokenStore(); $scopes = ['backend']; $credentials = new \Sdkgen\Client\Credentials\OAuth2('test', 'FRsNh1zKCXlB', 'https://demo.fusio-project.org/authorization/token', '', $tokenStore, $scopes); $client = new \Fusio\Sdk\Client('https://demo.fusio-project.org', $credentials); $collection = $client->backend()->operation()->getAll(0, 16, ''); echo 'Operations:' . "\n"; foreach ($collection->getEntry() as $operation) { echo '* ' . $operation->getHttpMethod() . ' ' . $operation->getHttpPath() . "\n"; }
统计信息
- 总下载量: 458
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-09-07