This Bundle provides a simple integration of the hubiC-API (https://api.hubic.com/) for Symfony2. The API wrapper is not the "official" hubic.com library for PHP/Symfony2!
<?php
$hubic_api = $this->container->get('ckrupa_hubic_api');
if(!$hubic_api->isLoggedIn())
{
die('invalid oauth token!');
}
$result = $hubic_api->send('/account/credentials');
$ php composer.phar require "ckrupa/hubic-api-bundle":"dev-master"
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new HWI\Bundle\OAuthBundle\HWIOAuthBundle(),
new Sensio\Bundle\BuzzBundle\SensioBuzzBundle(),
new Ckrupa\HubicApiBundle\CkrupaHubicApiBundle(),
// ...
);
}
oAuth is done by HWIOAuthBundle so checkout the documentation.
here is an sample config for hwi 0.3
How can I help you explore Laravel packages today?