collegefb / web
此包已弃用,不再维护。未建议替代包。
CollegeFB项目的公共网站
v1.0.3
2014-11-28 12:03 UTC
Requires
- collegefb/collegefb: ~1.2
- dogancelik/slim-json: ~0.2
- lusitanian/oauth: ~0.3
- slim/slim: ~2.4
- slim/views: ~0.1
- slimcontroller/slimcontroller: ~0.4
- twig/twig: ~1.16
This package is not auto-updated.
Last update: 2021-10-11 12:00:13 UTC
README
使用Slim框架和Slimcontroller包构建使用CollegeFB逻辑的网站。
要使其工作,您需要创建一个公共文件并在以下代码内设置
require 'vendor/autoload.php';
$options = array(
'database' => 'my_database',
'twitter' => array(
'key' => 'twitter_key',
'secret' => 'twitter_secret',
'auth_users' => array(),
),
'xauth_token' => 'xauth_token',
'admin_templates_path' => 'templates/admin',
'web_templates_path' => 'templates/web',
);
$bootstrap = new \CollegeFBWeb\BootstrapApp();
$container = $bootstrap->getContainer($options);
$bootstrap->getApp('web', $container)->run();