m1guelpf / integration
一个用于与 GitHub Apps 交互的 PHP 类
v1.1
2018-02-08 15:25 UTC
Requires
- php: ^7.0
- illuminate/support: 5.5.*||5.6.*
- knplabs/github-api: ^2.6
- lcobucci/jwt: ^3.2
- php-http/guzzle6-adapter: ^1.1
Requires (Dev)
- mockery/mockery: ^1.0
- orchestra/testbench: ~3.0
- phpunit/phpunit: ^6.0
This package is auto-updated.
Last update: 2024-09-17 04:38:59 UTC
README
此包通过围绕 GitHub API PHP 客户端提供包装,使与 GitHub Apps 交互变得简单。
安装
您可以通过 composer 安装此包
composer require m1guelpf/integration
用法
要获取认证数据,您必须定义以下 Laravel 配置键
您需要以下数据
- 应用程序 ID:
config('github.application.id')
- 应用程序 PEM 文件:
config('github.application.pem')
$integration = new M1guelpf\Integration(); $integration->authenticate() ->asInstallation(1234) ->api('repo') ->show('example', 'repo');
测试
composer test
贡献
请参阅 CONTRIBUTING 获取详细信息。
安全
如果您发现任何安全相关的问题,请通过电子邮件 soy@miguelpiedrafita.com 联系,而不是使用问题跟踪器。
致谢
许可
MIT 许可证(MIT)。请参阅 许可文件 获取更多信息。