2017 © Pedro Peláez
 

library githubartaxservice

image

danack/githubartaxservice

  • Sunday, April 3, 2016
  • by Danack
  • Repository
  • 1 Watchers
  • 3 Stars
  • 94 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 17 Versions
  • 0 % Grown

The README.md

GithubArtaxService

A service description that is built to a usable service using ArtaxServiceBuilder, (*1)

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, (*2)

1) 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., (*3)

<?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

2) From the command line, go to the test directory and run php -S localhost:8000 -t web/, (*4)

The web server should now be available at http://localhost:8000/, (*5)

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., (*6)

From the command line, go to the test directory and run php -S 0.0.0.0:80 -t example/, (*7)

The web server should now be available at http://localhost:8000/, (*8)

The Versions

04/08 2014

0.1.2

0.1.2.0

  Sources   Download

The Requires

 

The Development Requires

04/08 2014