Skip to content

Bundle for the Laravel PHP framework that allows the user to retrieve Delicious bookmarks using the Delicious API.

Notifications You must be signed in to change notification settings

SerdarSanri/Laravel-Delicious

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

#Delicious bundle for Laravel

This bundle will allow you to retrieve links from a Delicious account using the Delicious API v2.

##Setup Install the bundle

$ php artisan bundle:install delicious

Include it in application/bundles.php

return array('delicious');

##Example Usage In application/routes.php you can add a simple route to read and dump your delicious bookmarks at /delicious

Route::get('delicious', function()
{
	Bundle::start('delicious');

	$bookmarks = Delicious\Delicious::init('bdrelling')->take(10)->get();

	var_dump($bookmarks);
});

##Methods

###init($username) /** * initialize and set the username * * @param string username * @return object */ $delicious = Delicious\Delicious::init('bdrelling');

###tags($tags) /** * sets the tags to return (tags separated by +) * * @param string tags * @return object */ $delicious = Delicious\Delicious::init('bdrelling')->take(10)->tags('development+api')->get();

###take($count) /** * set the count of results to take (1-100, default 15) * * @param integer count * @return object */ $delicious = Delicious\Delicious::init('bdrelling')->take(10)->get();

###sort() /** * sorts the array of bookmarks alphabetically by name * * @return object */ $delicious = Delicious\Delicious::init('bdrelling')->take(30)->sort()->get();

###reset() /** * resets all variables * */ $delicious->reset();

###get() /** * get the bookmarks * * @return array bookmarks */ $delicious = Delicious\Delicious::init('bdrelling')->get();

Bundle created by Brian Drelling.

About

Bundle for the Laravel PHP framework that allows the user to retrieve Delicious bookmarks using the Delicious API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages