m1guelpf/integration

A PHP class to interact with GitHub Apps

v1.1 2018-02-08 15:25 UTC

This package is auto-updated.

Last update: 2024-12-17 05:22:41 UTC


README

Latest Version on Packagist Build Status Quality Score Total Downloads

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.