aram-hamo / mvc
模型-视图-控制器框架
0.6.4
2023-08-02 19:12 UTC
Requires
- aram-hamo/mvc-core: ~0.4
Requires (Dev)
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^10.0
README
描述
用PHP编写的最小化MVC框架。
入门
安装
composer create-project --no-dev aram-hamo/mvc
启动本地开发服务器
默认端口是 8080
。
php mvc serve
创建新页面
这将创建一个与 <pagename> 同名的视图和控制器,并将其路由到给定的 <path> 参数。
php mvc newpage <pagename> <path>
数据库迁移
这将迁移在 database/migrations/
目录下找到的所有迁移文件。
php mvc migrate
联系方式
Aram Hamo - contact@aramhamo.me
许可证
Copyright (C) 2023 Aram Hamo
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://gnu.ac.cn/licenses/>.