2017 © Pedro Peláez
 

library trending-github

Simple package to get trending repositories on Github.

image

fortecdev/trending-github

Simple package to get trending repositories on Github.

  • Tuesday, December 19, 2017
  • by fortecdev
  • Repository
  • 0 Watchers
  • 6 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

trending-github

This package is a PHP port of this module, (*1)

Installation

``` bash composer require fortecdev/trending-github, (*2)


## Usage ```php require_once __DIR__ . '/vendor/autoload.php'; use Fortec\GithubTrending; $github = new GithubTrending(); $data = $github->getTrending(); var_dump($data); /* [ [ 'author' => 'facebook', 'name' => 'react', 'url' => 'https://github.com/facebook/react', 'description' => 'A declarative, efficient, and flexible JavaScript library for building user interfaces.', 'language' => 'JavaScript', 'stars' => '83,511', 'forks' => '15,791', 'starsToday' => '25 stars today' ], ... ] */

You can also add time period and language filters., (*3)

require_once __DIR__ . '/vendor/autoload.php';

use Fortec\GithubTrending;

$github = new GithubTrending("weekly","php");

$data = $github->getTrending();

var_dump($data);
/*
[
    [
        'author' => 'laravel',
        'name' => 'laravel',
        'url' => 'https://github.com/laravel/laravel',
        'description' => 'A PHP Framework For Web Artisans',
        'language' => 'JavaScript',
        'stars' => '36,921',
        'forks' => '12,145',
        'starsToday' => '200 stars this week'
    ],
    ...
]
*/

License

The MIT License (MIT), (*4)

Copyright (c) 2017 Olumide Falomo, (*5)

The Versions

19/12 2017

dev-master

9999999-dev

Simple package to get trending repositories on Github.

  Sources   Download

MIT

The Requires

 

The Development Requires

github trending

19/12 2017

1.0.0

1.0.0.0

Simple package to get trending repositories on Github.

  Sources   Download

MIT

The Requires

 

The Development Requires

github trending