2017 © Pedro Peláez
 

library geeklist-php

Get stuff of a given user at Geeklist, without an API key.

image

arglbr/geeklist-php

Get stuff of a given user at Geeklist, without an API key.

  • Friday, August 10, 2012
  • by arglbr
  • Repository
  • 1 Watchers
  • 4 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

DEPRECATED

no-maintenance-intended, (*1)

Geeklist-PHP

English

Deprecated, obsolete & archived., (*2)

Geeklist is out of service until the launch of 2.0 version, what makes this repo useless :-)., (*3)

Overview

Geeklist-PHP is a lib to get stuff of a given user at Geeklist, without an API key. If you have an API key, consider using the geekli.st-php (https://github.com/dominikgehl/geekli.st-php) from Dominik Gehl., (*4)

Using it

Without Composer:, (*5)

<?php
require __DIR__ . '/Geeklist/SPLClassLoader.php';
$classLoader = new \Geeklist\SPLClassLoader('Geeklist', __DIR__);
$classLoader->register();
$card_handler = new \Geeklist\Card('arglbr', \Geeklist\OUTPUT_ARRAY);

With PHP Composer (http://getComposer.org): First of all, append the lines below to your composer.json of your project:, (*6)

   require {
       'arglbr/geeklist-php': 'dev-master';
   }

After, instantiate with the Composer autoloader:, (*7)

<?php
$loader = require 'vendor/autoload.php';
$loader->add('Geeklist', '/path/to/geeklist-php');
$card_handler = new \Geeklist\Card('arglbr', \Geeklist\OUTPUT_ARRAY);

This lib is shipped with a file called example1.php who is straightforward. Given a valid username, there are two useful methods: * \Geeklist\Card\getAllCards() => Returns all cards of the given user; * \Geeklist\Card\getRandomCard() => Returns a random cards from all cards of the given username., (*8)

Tests

Generate the build with the following command: * phpunit --testdox tests/., (*9)

Documentation

Generate the documentation as desired: * phpdoc -o HTML:Smarty:PHP -dn Geeklist -d Geeklist/ -t doc/; * phpdoc -o HTML:Smarty:PEAR -dn Geeklist -ti 'Documentation for geeklist-php' -d Geeklist/ -t doc/; * phpdoc -o PDF:default:default -dn Geeklist -ti 'Documentation for geeklist-php' -d Geeklist/ -t doc/., (*10)

Brazilian portuguese

Depreciado, obsoleto e arquivado., (*11)

A rede Geeklist saiu do ar até o lançamento da versão 2.0, o que torna este repo inútil :-)., (*12)

Visão geral

Geeklist-PHP é uma biblioteca que lida com o conteúdo dos cards de um determinado usuário na rede Geeklist, sem a necessidade de uma API. Se você tem acesso a API, considere usar o repositório oferecido pelo Dominik Gehl (https://github.com/dominikgehl/geekli.st-php)., (*13)

Usando-a

Sem Composer:, (*14)

<?php
require __DIR__ . '/Geeklist/SPLClassLoader.php';
$classLoader = new \Geeklist\SPLClassLoader('Geeklist', __DIR__);
$classLoader->register();
$card_handler = new \Geeklist\Card('arglbr', \Geeklist\OUTPUT_ARRAY);

Com PHP Composer (http://getComposer.org): Primeiro, adicione ao arquivo composer.json do seu projeto:, (*15)

   require {
       'arglbr/geeklist-php': 'dev-master';
   }

Depois, instancie o handler com o autoloader do Composer:, (*16)

<?php
$loader = require 'vendor/autoload.php';
$loader->add('Geeklist', '/path/to/geeklist-php');
$card_handler = new \Geeklist\Card('arglbr', \Geeklist\OUTPUT_ARRAY);

Junto com a lib há um arquivo chamado example1.php que é bem direto. Dado um usuário válido, existem dois métodos úteis: * \Geeklist\Card\getAllCards() => Retornará todos os cards encontrados deste usuário; * \Geeklist\Card\getRandomCard() => Retornará um cartão de forma aleatória., (*17)

Testes

Gere a build com o seguinte comando: * phpunit --testdox tests/., (*18)

Documentação

Gere a documentação como desejado: * phpdoc -o HTML:Smarty:PHP -dn Geeklist -d Geeklist/ -t doc/; * phpdoc -o HTML:Smarty:PEAR -dn Geeklist -ti 'Documentation for geeklist-php' -d Geeklist/ -t doc/; * phpdoc -o PDF:default:default -dn Geeklist -ti 'Documentation for geeklist-php' -d Geeklist/ -t doc/., (*19)

The Versions

10/08 2012

dev-master

9999999-dev https://github.com/arglbr/geeklist-php

Get stuff of a given user at Geeklist, without an API key.

  Sources   Download

LGPL

The Requires

  • php >=5.3.0

 

by Adriano Laranjeira

php card geeklist