Download the PHP package phpinside/mymvc without Composer
On this page you can find all versions of the php package phpinside/mymvc. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package mymvc
mymvc 基于Composer的轻量级PHP应用框架
- 基于composer的包管理器
- 路由规则灵活,可随意自定义路由规则
- 包含默认路由:controller/model/arg1/arg2...
- 轻量级的ORM ,轻松实现CRUD
- 轻量而强大的模版引擎,安全过滤各种有...
- 配置文件就是PHP数组,基本无配置
- 数据库迁移采用migration,so easy!
基本使用
- composer create-project phpinside/mymvc mymvc
-
编辑 Apache下的httpd-vhost.conf文件,添加如下内容:
注意以下的目录改成自己对应的本地目录!
- 启动Apache和MySQL
-
在MySQL中创建一个数据库mydb,用户名:mymvc, 密码:123456。 当然了,如果本地已经有能用的数据库,那么可以去修改config/base.php中的配置即可。
注意:mymvc这个用户需要有全部的数据库操作权限!
- 访问:http://my.mvc.com/home/migrate 执行初始化,生成todo数据表。
- 访问:http://my.mvc.com/todo/index 可以执行CRUD的各种操作。
补充
- 系统自带默认路由,一般情况不需要去配置路由,自定义路由请查看config目录下的routes.php的示例。 配置参考 http://altorouter.com/usage/mapping-routes.html
- 模版引擎参考 https://latte.nette.org/
- ORM的使用参考 https://github.com/lox/pheasant
All versions of mymvc with dependencies
PHP Build Version
Package Version
Requires
altorouter/altorouter Version
^1.2
latte/latte Version ^2.4
lox/pheasant Version dev-master
latte/latte Version ^2.4
lox/pheasant Version dev-master
The package phpinside/mymvc contains the following files
Loading the files please wait ....