TinyLara
______ _ __ /_ __/ (_) ____ __ __ / / ____ _ _____ ____ _ / / / / / __ / / / / / / / __ `/ / ___/ / __ `/ / / / / / / / / / /_/ / / /___/ /_/ / / / / /_/ / /_/ /_/ /_/ /_/ \__, / /_____/\__,_/ /_/ \__,_/ /____/
TinyLara is a simple PHP framework based on Composer, looks like a Lite Edition of Laravel. http://tinylara.com/
GithubGithub Repo: https://github.com/TinyLara/TinyLara
Start Download:git clone https://github.com/TinyLara/TinyLara cd TinyLaraInstall 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(["[email protected]", "[email protected]"]) ->from("OOXXRun:") ->title("Foo Bar") ->content(" Hello~~
"); // redis sample Redis::set("key","value",3000,"ms"); echo Redis::get("key"); */ }
cd public && php -S 127.0.0.1:3000
Visit http://127.0.0.1:3000/
It"s already running!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
LicenseThe TinyLara framework is open-sourced software licensed under the MIT license
文章版權(quán)歸作者所有,未經(jīng)允許請(qǐng)勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。
轉(zhuǎn)載請(qǐng)注明本文地址:http://systransis.cn/yun/20847.html
摘要:中文介紹是一個(gè)輕量級(jí)框架,基于,可以看成的精簡(jiǎn)版。官方網(wǎng)站項(xiàng)目地址開始使用下載或者安裝依賴包修改數(shù)據(jù)庫配置文件,將導(dǎo)入數(shù)據(jù)庫。一行代碼即可發(fā)送郵件。協(xié)議采用協(xié)議分發(fā),衍生項(xiàng)目除了必須采用協(xié)議之外無任何限制。 TinyLara showImg(http://lvwenhan.com/content/uploadfile/201410/dcd81414652600.png); __...
摘要:更新說明一新增功能增加匹配所有請(qǐng)求類型二優(yōu)化去掉由功能更強(qiáng)大的取代更名為匹配時(shí)區(qū)分大小寫提升不帶參數(shù)匹配下的性能生成縮略圖時(shí)增加品質(zhì)參數(shù)減少中的靜態(tài)成員變量改用匿名函數(shù)容器來傳遞參數(shù)優(yōu)化解密帶問號(hào)的參數(shù)導(dǎo)致解密失敗的三默認(rèn)風(fēng)格變更為 1.5.3 更新說明 一. 新增功能 增加Rest::any(), 匹配所有請(qǐng)求類型 $app = CrossCoreDelegate::loadApp...
摘要:一是什么全稱用語言編寫的輕量級(jí)擴(kuò)展框架專注于開發(fā)。這里只是給出了一種測(cè)試方法通過多次不同并發(fā)數(shù)測(cè)試結(jié)果得知與原生性能消耗是。業(yè)務(wù)開發(fā)速度結(jié)論采用框架開發(fā)業(yè)務(wù)代碼量能節(jié)約。 showImg(https://segmentfault.com/img/bVbamHp?w=320&h=320); 一、Asf 是什么? 全稱 API Services Framework, 用C語言編寫的輕量級(jí)P...
閱讀 3274·2023-04-26 02:10
閱讀 2898·2021-10-12 10:12
閱讀 4596·2021-09-27 13:35
閱讀 1533·2019-08-30 15:55
閱讀 1076·2019-08-29 18:37
閱讀 3437·2019-08-28 17:51
閱讀 1971·2019-08-26 13:30
閱讀 1210·2019-08-26 12:09