亚洲中字慕日产2020,大陆极品少妇内射AAAAAA,无码av大香线蕉伊人久久,久久精品国产亚洲av麻豆网站

資訊專欄INFORMATION COLUMN

輕量級 PHP 框架 TinyLara 發(fā)布

CarlBenjamin / 2148人閱讀

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 ")
                      ->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

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

文章版權(quán)歸作者所有,未經(jīng)允許請勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。

轉(zhuǎn)載請注明本文地址:http://www.ezyhdfw.cn/yun/20847.html

相關(guān)文章

  • 量級 PHP 框架 TinyLara 更新:更優(yōu)雅 附中文介紹

    摘要:中文介紹是一個輕量級框架,基于,可以看成的精簡版。官方網(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); __...

    loonggg 評論0 收藏0
  • CrossPHP 1.5.3 發(fā)布,量級 PHP 開發(fā)框架

    摘要:更新說明一新增功能增加匹配所有請求類型二優(yōu)化去掉由功能更強(qiáng)大的取代更名為匹配時區(qū)分大小寫提升不帶參數(shù)匹配下的性能生成縮略圖時增加品質(zhì)參數(shù)減少中的靜態(tài)成員變量改用匿名函數(shù)容器來傳遞參數(shù)優(yōu)化解密帶問號的參數(shù)導(dǎo)致解密失敗的三默認(rèn)風(fēng)格變更為 1.5.3 更新說明 一. 新增功能 增加Rest::any(), 匹配所有請求類型 $app = CrossCoreDelegate::loadApp...

    paulquei 評論0 收藏0
  • 新一代量級PHP擴(kuò)展框架 Asf

    摘要:一是什么全稱用語言編寫的輕量級擴(kuò)展框架專注于開發(fā)。這里只是給出了一種測試方法通過多次不同并發(fā)數(shù)測試結(jié)果得知與原生性能消耗是。業(yè)務(wù)開發(fā)速度結(jié)論采用框架開發(fā)業(yè)務(wù)代碼量能節(jié)約。 showImg(https://segmentfault.com/img/bVbamHp?w=320&h=320); 一、Asf 是什么? 全稱 API Services Framework, 用C語言編寫的輕量級P...

    iOS122 評論0 收藏0

發(fā)表評論

0條評論

最新活動
閱讀需要支付1元查看
<