模型-视图-控制器框架

维护者

详细信息

github.com/aram-hamo/mvc

源代码

问题

资助包维护!
aram-hamo

安装: 61

依赖: 0

建议者: 0

安全性: 0

星标: 1

关注者: 1

分支: 0

开放问题: 0

类型:项目

0.6.4 2023-08-02 19:12 UTC

This package is auto-updated.

Last update: 2024-10-01 00:15:00 UTC


README

License GitHub Workflow Status

描述

用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/>.