tr0n/laravelicious

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (0.1) of this package.

0.1 2015-01-19 16:31 UTC

This package is not auto-updated.

Last update: 2024-11-01 21:02:05 UTC


README

This is a Laravel package that wraps all the Delicious API methods.

Delicious API docs page

Installation

Require this package with composer using the following command:

composer require tr0n/laravelicious.

Configuration

First, you need to add the auth params in the config, to do this you will need to publish the config file first. Use the following command:

php artisan config:publish tr0n/laravelicious

After that, a config file named general.php is generated inside the /app/config/packages/tr0n/laravelicious/ folder. Add the user and password parameters inside this file.

Usage

All the available Delicious API calls are mapped.

For example:

Laravelicious::add()

Add a new post to Delicious.

Arguments

Returns

An associative array With 'success', 'message' and 'url' keys.

All the methods follow the same structure. The arguments are passed as array, depending on the method some are optional and some required, this way we are able to pass more flexibly the arguments that we want.

Same for returning values. All methods returns an array with a field 'success' with true on success and false on failure, a 'message' field parsed from the xml response (if not exists on the delicious.com response, the field will go empty).

When there are trouble connecting to delicious.com, a DeliciousConnectionException will be thrown with some details about the attempts, the url and a message.