m1guelpf / integration
A PHP class to interact with GitHub Apps
Fund package maintenance!
m1guelpf
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-12-17 05:22:41 UTC
README
This package makes it easy to interact with GitHub Apps by providing a wrapper around the GitHub API PHP Client.
Installation
You can install the package via composer:
composer require m1guelpf/integration
Usage
To get the authentication data, you have to define the following Laravel configuration keys:
You'll need the following data:
- Application ID:
config('github.application.id')
- Application PEM file:
config('github.application.pem')
$integration = new M1guelpf\Integration(); $integration->authenticate() ->asInstallation(1234) ->api('repo') ->show('example', 'repo');
Testing
composer test
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email soy@miguelpiedrafita.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.