PHPackages                             wangjin/myselfmvc - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. wangjin/myselfmvc

ActiveLibrary[Framework](/categories/framework)

wangjin/myselfmvc
=================

24PHP

Since Jan 6Pushed 7y agoCompare

[ Source](https://github.com/jinfatian/myselfmvc)[ Packagist](https://packagist.org/packages/wangjin/myselfmvc)[ RSS](/packages/wangjin-myselfmvc/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

myselfmvc
=========

[](#myselfmvc)

基于Composer的轻量级PHP应用框架
=====================

[](#基于composer的轻量级php应用框架)

- 基于composer的包管理器
- 路由规则灵活，可随意自定义路由规则
- 包含默认路由：controller/model/arg1/arg2...
- 轻量级的ORM ，轻松实现CRUD
- 轻量而强大的模版引擎，安全过滤各种有...
- 配置文件就是PHP数组，基本无配置
- 数据库迁移采用migration，so easy！

基本使用
----

[](#基本使用)

1. composer require wangjin/myselfmvc
2. composer install/update
3. 编辑 Apache下的httpd-vhost.conf文件，添加如下内容：

**注意以下的目录改成自己对应的本地目录！**

```
 ```apache

     Options Indexes FollowSymLinks Includes ExecCGI
     AllowOverride All
     Require all granted

     ServerAdmin webmaster@my.com
     DocumentRoot "D:/demos/MyMVCFramework/app/web"
     ServerName my.mvc.com
     ErrorLog "logs/my.mvc.com.com-error.log"
     CustomLog "logs/my.mvc.com-access.log" common

```

```

```

nginx

```
location / {
      if (!-e $request_filename) {
         rewrite ^/(.*)$ /index.php?$1 last;
      }
      index index.html index.htm index.php;
      autoindex on;
  }

```

```

3. 启动服务器和MySQL
4. 在MySQL中创建一个数据库myselfmvc，用户名：xxx， 密码：xxxxxx。
当然了，如果本地已经有能用的数据库，那么可以去修改config/base.php中的配置即可。

**注意：这个用户需要有全部的数据库操作权限！**

5. 访问：http://my.mvc.com/home/migrate 执行初始化，生成todo数据表。
6. 访问：http://my.mvc.com/todo/index  可以执行CRUD的各种操作。

补充
---------------------------------
1. 系统自带默认路由，一般情况不需要去配置路由，自定义路由请查看web目录下的base.php的示例。
配置参考
2. 模版引擎参考
3. ORM的使用参考

```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/24517154?v=4)[jinfatian](/maintainers/jinfatian)[@jinfatian](https://github.com/jinfatian)

---

Top Contributors

[![jinfatian](https://avatars.githubusercontent.com/u/24517154?v=4)](https://github.com/jinfatian "jinfatian (2 commits)")

### Embed Badge

![Health badge](/badges/wangjin-myselfmvc/health.svg)

```
[![Health](https://phpackages.com/badges/wangjin-myselfmvc/health.svg)](https://phpackages.com/packages/wangjin-myselfmvc)
```

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k104.3M836](/packages/laravel-socialite)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k38.6M289](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
