Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Foursquare API Client for Silex Framework
PHP
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib/TheTwelve/Foursquare/Silex
tests
.gitignore
README.md
composer.json

README.md

Foursquare API Client Service Provider (Silex) by TheTwelve Labs

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'];
Something went wrong with that request. Please try again.