gkwelding / FuelPHP-Social-Package

A package for FulePHP incorporating the Facebook PHP SDK and Dan Horrigans Twitter wrapper for FuelPHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FuelPHP Social Package

This is a very simple FuelPHP package that contains wrappers for Facebook, Twitter and Google.

Installation

Clone this repo in fuel/packages with:

git clone --recursive git://github.com/gkwelding/FuelPHP-Social-Package.git social

And add social to always_load array in app/config/config.php.

You should set the config files of the classes in fuel/packages/social/config/.

That's it!

Usage

You can access the classes like the examples below:

Facebook: \Social\Facebook::instance()->getUser();

Twitter: \Social\Twitter::instance()->logged_in();

Google: \Social\Google::instance()->getClientApi()->getService('Calendar');

Copyright

Work here is relesed under Phil Sturgeons DBAD license. http://philsturgeon.co.uk/code/dbad-license. Just give me some goddam credit if you use it and don't be a dick.

About

A package for FulePHP incorporating the Facebook PHP SDK and Dan Horrigans Twitter wrapper for FuelPHP


Languages

Language:PHP 100.0%