轻量级 PHP 框架 TinyLara 发布

TinyLara

  ______    _                      __                         
 /_  __/   (_)   ____    __  __   / /   ____ _   _____  ____ _
  / /     / /   / __ \  / / / /  / /   / __ `/  / ___/ / __ `/
 / /     / /   / / / / / /_/ /  / /___/ /_/ /  / /    / /_/ / 
/_/     /_/   /_/ /_/  \__, /  /_____/\__,_/  /_/     \__,_/  
                      /____/                                  

TinyLara is a simple PHP framework based on Composer, looks like a Lite Edition of Laravel. http://tinylara.com/

Github

Github Repo: https://github.com/TinyLara/TinyLara

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 <ooxx@163.com>')
                      ->title('Foo Bar')
                      ->content('<h1>Hello~~</h1>');
  // redis sample
  Redis::set('key','value',3000,'ms');
  echo Redis::get('key');
  */
}

Run:

cd public && php -S 127.0.0.1:3000

Visit http://127.0.0.1:3000/

It's already running!


Features

  1. Suer small (~150 LOC) router: fast and sexy codingbean/macaw
  2. MVC architecture
  3. One of the Most powerful PHP ORM on Earth: Laravel Eloquent
  4. Powerful Laravel-style views loader
  5. Redis ready in Laravel-style
  6. Handy SMTP mailer

License

The TinyLara framework is open-sourced software licensed under the MIT license

吕文翰
《L03 构架 API 服务器》
你将学到如 RESTFul 设计风格、PostMan 的使用、OAuth 流程,JWT 概念及使用 和 API 开发相关的进阶知识。
《G01 Go 实战入门》
从零开始带你一步步开发一个 Go 博客项目,让你在最短的时间内学会使用 Go 进行编码。项目结构很大程度上参考了 Laravel。
讨论数量: 5
(= ̄ω ̄=)··· 暂无内容!

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!