承接 dmyers/octogun 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dmyers/octogun

Composer 安装命令:

composer require dmyers/octogun

包简介

Simple wrapper for the GitHub v3 API

README 文档

README

Simple PHP wrapper for the GitHub API. This is an unofficial port of Octokit.rb in PHP. The goal is to have feature parity between languages.

Installation

Simply install using composer:

$ composer require dmyers/octogun

Examples

Show a user

$client = \Octogun\Octogun::users();
$client->user('sferik');

Show a repository

$client = \Octogun\Octogun::repositories();
$client->repo('octogun/octogun.rb');

Authenticated Requests

For methods that require authentication, you'll need to setup a client with your login and password.

$client = new \Octogun\Client(['login' => 'me', 'password' => 'sekret']);
$client->users()->follow('sferik');

Alternately, you can authenticate with a GitHub OAuth2 token.

$client = new \Octogun\Client(['login' => 'me', 'oauth_token' => 'oauth2token']);
$client->users()->follow('sferik');

Using with GitHub Enterprise

To use with GitHub Enterprise, you'll need to set the API and web endpoints before instantiating a client.

$client = new \Octogun\Client(['login' => 'USERNAME', 'password' => 'PASSWORD']);
$client->configuration()->set('api_endpoint', 'https://github.company.com/api/v3';
$client->configuration()->set('web_endpoint', 'https://github.company.com/';

Copyright

Copyright (c) 2013 Derek Myers. See [LICENSE][] for details. [license]: LICENSE.md

统计信息

  • 总下载量: 90
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 7
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-05-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固