guillermoandrae / php-highrise-api
Highrise API 的 PHP 客户端。
dev-master
2019-08-07 17:47 UTC
Requires
- php: ^7.1
- guillermoandrae/php-collection: ^0.1.0
- guillermoandrae/php-debug: ^0.1.0
- guillermoandrae/php-repository: ^1.0
- guzzlehttp/guzzle: ^6.3
- icanboogie/inflector: ^1.4
Requires (Dev)
- phpunit/phpunit: ^7.1
- squizlabs/php_codesniffer: ^3.2
This package is auto-updated.
Last update: 2024-09-08 13:34:05 UTC
README
有关特定资源的更多信息,请参阅Highrise API 文档。
安装
这样做,然后放松
composer require guillermoandrae/php-highrise-api
入门指南
要使用客户端,请实例化它并使用 resource()
方法或通过 __call()
方法提供的许多别名之一。例如,要获取与您的账户关联的所有用户的列表,您可以执行以下操作
use Guillermoandrae\Highrise\Client\Client; $subdomain = 'xxxxxx'; // add your subdomain here $token = '1234567890'; // add your token $client = new Client($subdomain, $token); $users = $client->users()->findAll(); var_dump($users);
要查看可用的别名,请检查Client
类的 docblock。
测试
运行以下命令以确保您不会破坏代码覆盖率百分比
composer check-coverage
运行以下命令以确保您的代码格式正确
composer check-style
运行以下命令以轻松调用上述两个命令
composer test