danack / githubartaxservice
This package is abandoned and no longer maintained.
No replacement package was suggested.
There is no license information available for the latest version (0.5.0) of this package.
0.5.0
2016-02-21 23:19 UTC
Requires
- amphp/artax: ^1.0.2
- danack/artaxservicebuilder: 0.3.2
- danack/danack-code: >=2.4.5
- danack/danackhttp2: >=1.2.0
Requires (Dev)
- phpunit/phpunit: 4.1.3
- rdlowrey/auryn: ^0.14.2
README
A service description that is built to a usable service using ArtaxServiceBuilder
Running web demo
There is a demo that can be run through the PHP builtin server. It's requires creating an application on Github, and then putting the Github client key/secret
- Create a file called githubKey.php in the directory above this one (i.e. outside of the project root) which should contain the following details.
<?php define('GITHUB_USER_AGENT', 'YourApplicationName'); define('GITHUB_CLIENT_ID', '12345'); //The client ID associated with your Github application define('GITHUB_CLIENT_SECRET', '123456789'); //The client secret associated with your Github application
- From the command line, go to the test directory and run
php -S localhost:8000 -t web/
The web server should now be available at http://localhost:8000/
Example web app
This a trivial example of a web site that interacts with Github, to allow for interactive testing of the Oauth2 permissions generation - aka going to Github in a browser and giving the test app permission to retrieve info on your behalf.
From the command line, go to the test directory and run php -S 0.0.0.0:80 -t example/
The web server should now be available at http://localhost:8000/