承接 erivello/github-api-bundle 相关项目开发

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

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

erivello/github-api-bundle

Composer 安装命令:

composer require erivello/github-api-bundle

包简介

Bundle around PHP GitHub API client from KnpLabs

README 文档

README

This bundle provides a simple integration of the KnpLabs PHP GitHub API client into Symfony2.

Build Status

Installation

Installation is very easy, it makes use of Composer.

Add GithubApiBundle to your composer.json

"require": {
    "erivello/github-api-bundle": "dev-master"
}

Register the bundle in app/AppKernel.php:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...

        new Erivello\GithubApiBundle\ErivelloGithubApiBundle(),
    );
}

Configure

Basic usage

erivello_github_api: ~

Cache usage

erivello_github_api:
    cache:
        # Select cache dir
        dir: '/tmp/dir'
        # Or select directly which cache you want to use
        file: '/tmp/file'

Usage

You can access the php-github-api by the github_api service:

<?php

$service = $this->container->get('github_api');
$client = $service->getClient();

$repositories = $client->api('user')->repositories('ornicar');

License

The GithubApiBundle is licensed under the MIT license.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-02-16