Giter Club home page Giter Club logo

ci-coderwall's Introduction

#CodeIgniter Coderwall API Library

A simple requester library to return and cache results from the Coderwall API.

Requirements

  1. PHP 5.2 or greater
  2. CodeIgniter 2.1.0+
  3. An active account username for coderwall.com.

Note: for 1.7.x support download v2.2 from Downloads tab

Installation

Drag and drop libraries/coderwall.php and config/coderwall.php files into your application.

If you are requesting a single profile from Coderwall you can set the username in the configuration file. Otherwise, request it at runtime.

Usage

Either autoload the library or use CodeIgniters loader class.

$this->load->library( 'coderwall' );
$results = $this->coderwall->get( 'someuser' );

// if success returns object (FALSE if error)
var_dump( $results );

Often times, CURL adds a bit of overhead when making requests so I've added in CodeIgniters Cache Library. You can enable/disable it via config file/option. Available options are:

Config Type Options Default Desc
username STRING none Username constant
enable_cache BOOLEAN true/false true Enable/disable cache
cache_adapter ARRAY primary/backup apc/file Refer to CI cache docs for options
cache_life INTEGER none 300 How long to save cached data for

License

See attached license.txt for more

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.