Installation

  • Run composer.phar install
  • Add vhost to point to public directory
  • Run ./bin/console generate:html /path/to/service.json public

Add configuration

// config/config.php
return array(
    'roles' => array(
        'role' => array(
            'base_url' => 'http://api.example.com',
            'consumer_key' => 'consumer_key',
            'consumer_secret' => 'consumer_secret',
            'token' => 'token',
            'token_secret' => 'token_secret',
        ),
    ),
    'serviceDescriptionPath' => '/path/to/service/description.json',
    'defaultRole' => 'role',
);