轻量级 PHP 框架 TinyLara 发布
来源:互联网 发布:淘宝购物客户资源 编辑:程序博客网 时间:2024/04/26 20:34
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/TinyLaracd 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
- 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
- 轻量级 PHP 框架 TinyLara 发布
- 轻量级 PHP 框架 TinyLara 更新:更优雅 附中文介绍
- 轻量级php框架phpk v1.0发布
- Herosphp 3.0.1 发布,轻量级php开源框架
- PHP轻量级框架
- 国产InitPHP框架系列 - 两年沉淀,InitPHP3.2.2 框架发布,一个轻量级PHP框架
- 轻量级IOC框架Beancontext发布
- 超轻量级PHP框架BroPHP
- 轻量级Web框架Stripes 1.4 发布
- 转载: 轻量级 js2java RPC 框架发布
- HerosPHP 高性能轻量级框架1.2 发布
- 轻量级PHP框架——FCS
- Mini2SAE -- 基于SAE轻量级PHP开发框架
- php的轻量级rpc框架yar
- MiniDao_1.6-SNAPSHOT 版本发布,轻量级Java持久化框架
- TakePhoto-轻量级Android照片处理框架V2.0发布
- Jeecg-P3 1.0.1版本发布,轻量级微服务框架
- 腾讯发布轻量级高性能Hybrid框架-VasSonic
- 【遇到的问题】——浏览器兼容性
- [leetcode 140] Word Break II
- Hadoop2体系结构
- ALFS on Centos 7
- C++语法总结查询
- 轻量级 PHP 框架 TinyLara 发布
- 图
- python:字符串
- .Net笔试2
- C/C++中三个数判断大小编程
- u3d学习
- 这是我的 Terminal
- Nginx 链表结构 ngx_list_t
- 通过Node.js Stream API 实现逐行读取的实例