thetwelvelabs/foursquare-service-provider

Foursquare API Client for the Silex Framework

v0.1.0 2013-02-26 00:53 UTC

This package is not auto-updated.

Last update: 2024-11-09 14:11:28 UTC


README

==================================================================

A Silex Service Provider for our Foursquare API Client
https://github.com/chriswoodford/foursquare-php

Installation

Composer is currently the only way to install the foursquare client into your project.

Create your composer.json file

  {
      "require": {
          "thetwelvelabs/foursquare-service-provider": "dev-master@dev"
      }
  }

Download composer into your application root

  $ curl -s http://getcomposer.org/installer | php

Install your dependencies

  $ php composer.phar install

Usage

Register the service provider

  $app->register(new TheTwelve\Foursquare\Silex\FoursquareServiceProvider(), array(
      'foursquare.version' => 2,
      'foursquare.endpoint' => 'https://api.foursquare.com',
      'foursquare.clientKey' => 'symfony',
  ));

Get an instance of the TheTwelve\Foursquare\ApiGatewayFactory

  $factory = $app['foursquare'];