承接 sharik709/laravel-github 相关项目开发

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

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

sharik709/laravel-github

Composer 安装命令:

composer require sharik709/laravel-github

包简介

It will make it easier for laravel application to use github api

README 文档

README

This package will allow you to integrate github api into laravel application.

Steps

Step 1

get package from composer composer require sharik709/laravel-github

Step 2

If you are using laravel 5.5 and above then you don't need to register service provider. Otherwise, you will need to add this package's service provider into your config/app.php file's providers array. LaravelGithub\LaravelGithubServiceProvider::class

Step 3

In your .env file you will need to setup your api keys. Which you can get from github

[Laravel Github Keys]

[Laravel Github API]
GITHUB_USERNAME=
GITHUB_PASSWORD=

You can also set these things to .env.example

Now, You should be able to use the api

Usage

To Retrieve all repositories

use LaravelGithub\Repositories;

$repos = new Repositories;
$repositories = $repos->list()

To Get a specific repository

use LaravelGithub\Repositories;

$repos = new Repository;

$repository = $repos->get($name);

To get issues of a repository

$repository->issues()

To get pull requests for a repository

$repository->pullRequests();

To get contributors for a repository

$repository->contributors();

above $repository variable can be the result of get or you can call list get list of repositories and find the one you want to work with and call above methods.

More in usage.md file

Credit

This package has been built on top of another package called tan-tan-kanarek/github-php-client. This package is a wrapper on that package. Credit for building such a great functionality to interact with github is to tan tan kanarek.

License

MIT

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-03-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固