Skip to content

subdesign/codeigniter-colourlovers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Codeigniter ColourLovers library

The library makes possible to communicate with the colourlovers.com API.

Installation

Copy the files to their appropriate folders, then set up the config file.

Usage

Simple usage:

$this->load->library('cicolourlovers');
$result = $this->cicolourlovers->colors();

Adding parameters:

$result = $this->cicolourlovers->colors(array('numResults' => 10, 'sortBy' => 'DESC'));

Get back one color info (hex value):

$result = $this->cicolourlovers->color('AA44F2');

Get back a specific id palette:

$result = $this->cicolourlovers->palette(12345);

Overwrite config setting:

$result = $this->cicolourlovers->colors(array('format' => 'json'));

You can find the full list of methods at www.colourlovers.com/api

Requirements

CodeIgniter 2.0+
PHP 5 cURL installed
cURL library by Phil Sturgeon

##License

MIT License

C. 2012 Barna Szalai (sz.b@devartpro.com)

About

Wrapper library for colourlovers.com API

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages