otis22 / vetmanager-token
使用 token 认证访问 Vetmanager Rest API 的项目
0.2.2
2021-02-22 18:30 UTC
Requires
- ext-json: *
- elegant-bro/interfaces: ^1.1
- guzzlehttp/guzzle: ^7.1
- otis22/php-interfaces: ^1.0
- otis22/vetmanager-url: ~0.1
Requires (Dev)
- otis22/php-coverage-checker: ^1.2
- php-coveralls/php-coveralls: ^2.4
- phpstan/phpstan: ^0.12.19
- phpunit/phpcov: ^8.0
- phpunit/phpunit: ^9.1
- sensiolabs/security-checker: ^6.0
- squizlabs/php_codesniffer: 3.*
- wapmorgan/php-deprecation-detector: ^2.0
README
vetmanager-token
Vetmanager - 兽医行业的 CRM,提供 REST API。vetmanager-token 是用于在 Vetmanager API 中处理 token 认证的库。
Vetmanager REST API 在 Postman 中的使用
如何使用
use function Otis22\VetmanagerToken\credentials; use function Otis22\VetmanagerToken\token; $credentials = credentials('login', 'password', 'app_name'); $domainName = 'myclinic'; // first part from programm url address echo token($credentials, $domainName)->asString();
贡献
运行所有测试
make all
或连接到终端
make exec
默认 PHP 版本是 8.0。使用 PHP_VERSION= 来指定自定义版本。项目仅支持 8.0 和 8.1 版本的 PHP。
make all PHP_VERSION=8.1 # run both make all PHP_VERSION=8.1 && make all
对于集成测试,将 .env.example 复制到 .env 并填写您的值
所有命令
# security check make security # composer install make install # composer install with --no-dev make install-no-dev # check code style make style # run static analyze tools make static-analyze # run unit tests make unit # check coverage make coverage # check integration, .env required make integration