miguelbemartin / buffer-sdk-php
此库允许您使用PHP调用Buffer API
v1.0.5
2022-06-28 09:43 UTC
Requires
- php: >=7.2
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- ext-openssl: *
- symfony/http-client: ^4.3
Requires (Dev)
- phpunit/phpunit: ^8.3
- squizlabs/php_codesniffer: 3.*
- swaggest/json-diff: ^3.4
This package is auto-updated.
Last update: 2024-09-28 14:52:38 UTC
README
此库允许您通过PHP快速轻松地使用Buffer Web API v1。
入门
先决条件
- PHP >=7.2
安装
在终端中运行以下命令
composer require miguelbemartin/buffer-sdk-php
用法
// Create a new AuthorizationToken $auth = new AuthorizationToken('XXX'); // Create a new Buffer Wrapper Client $buffer = new Buffer($auth); // Get User $user = $buffer->userService->getUser(); // Get the profiles $profiles = $buffer->profileService->getProfiles();
运行测试
./vendor/bin/phpunit
贡献
- 创建PR: https://github.com/miguelbemartin/buffer-sdk-php/pulls
- 创建问题: https://github.com/miguelbemartin/buffer-sdk-php/issues
作者
- Miguel Ángel Martín - @miguelbemartin
许可证
本项目采用MIT许可证 - 详细信息请参阅LICENSE.md文件。