Luna:一个小而超简单PHP框架

时间:2021-05-21 17:25:30
【文件属性】:
文件名称:Luna:一个小而超简单PHP框架
文件大小:19KB
文件格式:ZIP
更新时间:2021-05-21 17:25:30
PHP 露娜 一个小而超简单PHP框架 我知道那里有很多框架(特别是微型),具有更好的功能和更快的速度,这个框架不是旨在创新或与其他框架有任何不同,这只是我的业余时间和好奇心的产物看看到目前为止我是否可以利用我所掌握的技能来构建一个基本而又实用的框架。 反馈不胜感激。 用法 将路线添加到集合 // GET route. $ app -> get ( '/home' , function ( { echo "Welcome to Luna!" ; }); // POST route. $ app -> post ( '/create' , function ( { echo "Hey there! This is a POST route." ; }); // Multi-route. $ app -> post ([ '/' , '/home' ], function ( {
【文件预览】:
Luna-master
----.gitattributes(378B)
----src()
--------Luna()
----config()
--------services.php(836B)
--------.database.php(98B)
--------routes.php(758B)
----README.md(1KB)
----index.php(197B)
----resources()
--------views()
--------models()
--------controllers()
--------assets()
----.gitignore(21B)
----.htaccess(137B)
----bootstrap.php(1KB)
----composer.json(118B)

网友评论