isuvorov/yiirest

There is no license information available for the latest version (dev-master) of this package.

Yii Restful API WebApplication

dev-master 2014-09-09 06:22 UTC

This package is not auto-updated.

Last update: 2024-04-23 00:34:23 UTC


README

Yii Restful API WebApplication

Yii::createApplication('RestApplication', $config)->run();

'components' => array( // Аутентификация через соцсети 'loid' => array( 'class' => '\loid', ), 'eauth' => array( 'class' => '\EAuth', 'popup' => true, // Use the popup window instead of redirecting. 'cache' => false, // Cache component name or false to disable cache. Defaults to 'cache'. 'cacheExpire' => 0, // Cache lifetime. Defaults to 0 - means unlimited. 'services' => array( 'twitter' => array( // register your app here: https://dev.twitter.com/apps/new 'class' => 'TwitterOAuthService', 'key' => '....', 'secret' => '..', ), 'facebook' => array( // register your app here: https://developers.facebook.com/apps/ 'class' => 'FacebookOAuthService', 'client_id' => '...', 'client_secret' => '...', ), 'vkontakte' => array( // register your app here: https://vk.com/editapp?act=create&site=1 'class' => 'VKontakteOAuthService', 'client_id' => '...', 'client_secret' => '...', ), ), ),

'urlManager' => array(
    'urlFormat' => 'path',
    'rules' => array_merge(
        require(
            dirname(dirname(__FILE__)) . '/vendor/starship/restfullyii/starship/RestfullYii/config/routes.php'
        ),

        [


        ]
    ),
),

),

'aliases' => array( 'RestfullYii' => realpath(dirname(dirname(FILE)) . '/vendor/starship/restfullyii/starship/RestfullYii'), ),