轻量级 PHP 框架 TinyLara 发布
2014-10-24 / 阅读数:12412 / 分类: TinyLara
TinyLara
______ _ __
/_ __/ (_) ____ __ __ / / ____ _ _____ ____ _
/ / / / / __ \ / / / / / / / __ `/ / ___/ / __ `/
/ / / / / / / / / /_/ / / /___/ /_/ / / / / /_/ /
/_/ /_/ /_/ /_/ \__, / /_____/\__,_/ /_/ \__,_/
/____/
TinyLara is a simple PHP framework based on Composer, looks like a Lite Edition of Laravel. http://tinylara.com/
Github
Start
Download:git clone https://github.com/TinyLara/TinyLara
cd TinyLara
Install dependencies:composer update
Then modify 'app/database.php' with right information and import 'demo.sql'.
See:
config/routes.php :Macaw::get('', 'HomeController@home');
app/controllers/HomeController.php :public function home()
{
// build view sample
$this->view = View::make('home')->with('article',Article::first())
->withTitle('MFFC :-D')
->withFooBar('foo_bar');
/*
// build mail sample
$this->mail = Mail::to(['ooxx@gmail.com', 'ooxx@qq.com'])
->from('OOXX ')
->title('Foo Bar')
->content('
Hello~~
');// redis sample
Redis::set('key','value',3000,'ms');
echo Redis::get('key');
*/
}
Run:cd public && php -S 127.0.0.1:3000
It's already running!
FeaturesSuer small (~150 LOC) router: fast and sexy codingbean/macaw
MVC architecture
One of the Most powerful PHP ORM on Earth: Laravel Eloquent
Powerful Laravel-style views loader
Redis ready in Laravel-style
Handy SMTP mailer
License
The TinyLara framework is open-sourced software licensed under the MIT license
WRITTEN BY
程序员,Swift Contributor,正在写《iOS 可视化编程与 Auto Layout》。
评论:
api
2014-12-09 11:53
最低版本5.5?
2014-12-09 17:51
@api:5.4哦~
2014-11-10 16:41
原来作者是你~~~
豆豆
2014-10-30 12:54
哦哦~~
发表评论:
昵称
邮件地址 (选填)
个人主页 (选填)