tiny框架 php,轻量级 PHP 框架 TinyLara 发布

TinyLara是一个轻量级的PHP框架,基于Composer构建,类似Laravel的精简版。它包括快速性感的路由系统Macaw、MVC架构、强大的Eloquent ORM、Laravel风格的视图加载器以及Redis支持。安装过程简单,只需几行命令即可运行。该框架具有小巧(约150行代码)、强大的路由、邮件和Redis功能。
摘要由CSDN通过智能技术生成

TinyLara

7e6fc820c2a1b4022902cc4cb64b8849.png

______ _ __

/_ __/ (_) ____ __ __ / / ____ _ _____ ____ _

/ / / / / __ \ / / / / / / / __ `/ / ___/ / __ `/

/ / / / / / / / / /_/ / / /___/ /_/ / / / / /_/ /

/_/ /_/ /_/ /_/ \__, / /_____/\__,_/ /_/ \__,_/

/____/

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!

Features

Suer 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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值