All Projects → KnpLabs → Php Github Api

KnpLabs / Php Github Api

Licence: mit
A simple PHP GitHub API client, Object Oriented, tested and documented.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to Php Github Api

Android Issue Reporter
A powerful and simple library to open issues on GitHub directly from your app.
Stars: ✭ 115 (-93.99%)
Mutual labels:  github-api
Reactnativetemplate
Our example of simple application using ReactNative and some recommendations
Stars: ✭ 127 (-93.36%)
Mutual labels:  github-api
Github Audio
Listen to music generated by events happening across GitHub 🎷
Stars: ✭ 1,712 (-10.55%)
Mutual labels:  github-api
Github To Sqlite
Save data from GitHub to a SQLite database
Stars: ✭ 116 (-93.94%)
Mutual labels:  github-api
React Graphql Github Apollo
🚀 A React + Apollo + GraphQL GitHub Client. Your opportunity to learn about these technologies in a real world application.
Stars: ✭ 1,563 (-18.34%)
Mutual labels:  github-api
Github Timeline
View other users' timeline
Stars: ✭ 131 (-93.16%)
Mutual labels:  github-api
Gitstats
An open source github contribution analyzer
Stars: ✭ 115 (-93.99%)
Mutual labels:  github-api
Monkey
Monkey is an unofficial GitHub client for iOS,to show the rank of coders and repositories.
Stars: ✭ 1,765 (-7.78%)
Mutual labels:  github-api
Contributions.taminomartinius.de
Website to display a bunch of different commit statistics fetched by GitHub GraphQL API
Stars: ✭ 125 (-93.47%)
Mutual labels:  github-api
Gas Github
sync gas code to github
Stars: ✭ 2,069 (+8.1%)
Mutual labels:  github-api
Blog
✒️记录技术的新博客,采用Vue3开发,使用GitHub API进行数据交互
Stars: ✭ 119 (-93.78%)
Mutual labels:  github-api
Github Downloads Count
A script to get downloads count of your GitHub repositories
Stars: ✭ 120 (-93.73%)
Mutual labels:  github-api
Gitfame
A Github contributions analyser
Stars: ✭ 131 (-93.16%)
Mutual labels:  github-api
Deployments
❗️GitHub Action for working painlessly with deployment statuses
Stars: ✭ 115 (-93.99%)
Mutual labels:  github-api
Chronicler
A better way to write your release notes.
Stars: ✭ 138 (-92.79%)
Mutual labels:  github-api
Github ecto
Ecto adapter for GitHub API
Stars: ✭ 114 (-94.04%)
Mutual labels:  github-api
Fork Cleaner
Quickly clean up unused forks on your github account.
Stars: ✭ 129 (-93.26%)
Mutual labels:  github-api
Alize
Visualize Your Github Profile
Stars: ✭ 148 (-92.27%)
Mutual labels:  github-api
Githunt Angular
An Apollo with Angular full-stack example app: vote for your favorite GitHub repos!
Stars: ✭ 144 (-92.48%)
Mutual labels:  github-api
Git Pull Request
git command to automatically pull github pull requests into their own branch
Stars: ✭ 132 (-93.1%)
Mutual labels:  github-api

PHP GitHub API

Build Status StyleCI Latest Stable Version Total Downloads Monthly Downloads Daily Downloads

A simple Object Oriented wrapper for GitHub API, written with PHP.

Uses GitHub API v3 & supports GitHub API v4. The object API (v3) is very similar to the RESTful API.

Features

  • Light and fast thanks to lazy loading of API classes
  • Extensively tested and documented

Requirements

Quick install

Via Composer.

This command will get you up and running quickly with a Guzzle HTTP client.

composer require knplabs/github-api:^3.0 guzzlehttp/guzzle:^7.0.1 http-interop/http-factory-guzzle:^1.0

Advanced install

We are decoupled from any HTTP messaging client with help by HTTPlug.

Using a different http client

composer require knplabs/github-api:^3.0 symfony/http-client nyholm/psr7

To set up the Github client with this HTTP client

use Github\Client;
use Symfony\Component\HttpClient\HttplugClient;

$client = Client::createWithHttpClient(new HttplugClient());

Read more about using different clients in our docs.

Framework integrations

Laravel

To integrate this library in laravel Graham Campbell created graham-campbell/github. See the installation instructions to get started in laravel.

Basic usage of php-github-api client

<?php

// This file is generated by Composer
require_once __DIR__ . '/vendor/autoload.php';

$client = new \Github\Client();
$repositories = $client->api('user')->repositories('ornicar');

From $client object, you have access to all available GitHub api endpoints.

Cache usage

This example uses the PSR6 cache pool redis-adapter. See http://www.php-cache.com/ for alternatives.

<?php

// This file is generated by Composer
require_once __DIR__ . '/vendor/autoload.php';

use Cache\Adapter\Redis\RedisCachePool;

$client = new \Redis();
$client->connect('127.0.0.1', 6379);
// Create a PSR6 cache pool
$pool = new RedisCachePool($client);

$client = new \Github\Client();
$client->addCache($pool);

// Do some request

// Stop using cache
$client->removeCache();

Using cache, the client will get cached responses if resources haven't changed since last time, without reaching the X-Rate-Limit imposed by github.

Documentation

See the doc directory for more detailed documentation.

License

php-github-api is licensed under the MIT License - see the LICENSE file for details

Maintainers

Please read this post first.

This library is maintained by the following people (alphabetically sorted) :

Contributors

Thanks to GitHub for the high quality API and documentation.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].