2017 © Pedro Peláez
 

library octodex

Octodex from Github, PHP scrapping API

image

plopix/octodex

Octodex from Github, PHP scrapping API

  • Thursday, April 23, 2015
  • by Plopix
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Plopix Octodex Provider

Provide a PHP class which allow you to retrieve easily links of OCTOCAT® png file., (*1)

Usage

$provider = new \Plopix\Octodex\Provider();
$cat = $provider->getRandom();
print $cat;
print $provider->getNumber(42);

With Symfony as a Service ?

Create a service

# Resources/config/services.yml
    Plopix\Octodex\Provider:
        arguments: ['%kernel.cache_dir%',43200]

Special notes and other considerations

GITHUB® owns all of the OCTOCAT®, this code just retrieves the data., (*2)

GITHUB®, the GITHUB® logo design, OCTOCAT® and the OCTOCAT® logo design are exclusive trademarks registered in the United States by GitHub, Inc. The OCTOCAT design is the exclusive property of GitHub, Inc and has been federally registered with the United States Copyright Office. All rights reserved. No adaptation or use of any kind of any of our registered trademarks or copyrights, or any other contents of this website, is allowed without the express written permission of GitHub, Inc., (*3)

See more: https://octodex.github.com/faq.html, (*4)

The Versions

23/04 2015

dev-master

9999999-dev https://github.com/Plopix/Octodex

Octodex from Github, PHP scrapping API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

github plopix octodex