2017 © Pedro Peláez
 

library cryptocompress

PHP components library

image

cryptocompress/cryptocompress

PHP components library

  • Saturday, April 12, 2014
  • by cryptocompress
  • Repository
  • 1 Watchers
  • 1 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

CryptoCompress Library

Build Status, (*1)

Install

mkdir my-test-project
cd my-test-project
curl -s http://getcomposer.org/installer | php
php composer.phar init -n && php composer.phar require cryptocompress/cryptocompress:dev-master

Update

php composer.phar update

Try out and play around

Get current weather in munich

vi weather.php && php weather.php, (*2)

<?php require __DIR__ . '/vendor/autoload.php';
use \CryptoCompress\WebService\Yahoo\Weather, \CryptoCompress\Http\Curl\Pool;
$config = array('url' => 'http://weather.yahooapis.com/forecastrss', 'degree' => Weather::DEGREE_CELSIUS);
$weather = new Weather($config, new Pool());
var_dump($weather->getByCode(Weather::CODE_MUNICH)->current());

Get my latest tweet

vi tweet.php && php tweet.php, (*3)

<?php require __DIR__ . '/vendor/autoload.php';
$con = new \CryptoCompress\Http\Curl\Connection();
echo $con->getDocument('http://twitter.com/CryptoCompress')
         ->getElementsByTagName('p')->item(3)->textContent;

The Versions

12/04 2014

dev-master

9999999-dev

PHP components library

  Sources   Download

The Requires

  • php >=5.3.0

 

by Crypto Compress