PHPackages                             jockchou/tinymvc - 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. jockchou/tinymvc

ActiveProject[Framework](/categories/framework)

jockchou/tinymvc
================

TinyMVC is a small PHP MVC framework

1.0.0(9y ago)3331Apache-2.0PHPPHP &gt;=5.6

Since Sep 23Pushed 9y ago1 watchersCompare

[ Source](https://github.com/jockchou/TinyMVC)[ Packagist](https://packagist.org/packages/jockchou/tinymvc)[ Docs](https://github.com/jockchou/TinyMVC)[ RSS](/packages/jockchou-tinymvc/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

[![logo](./resource/logo.png)](./resource/logo.png)

TinyMVC PHP Framework
---------------------

[](#tinymvc-php-framework)

TinyMVC is a small PHP MVC framework

[![Latest Stable Version](https://camo.githubusercontent.com/602a31e82c3fd67415702ca4ba737f84602a0fe9a59a0ee098842e413f2608ee/68747470733a2f2f706f7365722e707567782e6f72672f6a6f636b63686f752f74696e796d76632f762f737461626c65)](https://packagist.org/packages/jockchou/tinymvc#1.0.0)[![Total Downloads](https://camo.githubusercontent.com/965f2bb8cf1b328457b803f1e25a4a002c4deb072e280f01cfca733edf271fa3/68747470733a2f2f706f7365722e707567782e6f72672f6a6f636b63686f752f74696e796d76632f646f776e6c6f616473)](https://packagist.org/packages/jockchou/tinymvc/stats)[![Latest Unstable Version](https://camo.githubusercontent.com/c8e47b30e19bb15e9f1ad61edf509baa30beadecdd61c63456fae23602947c2f/68747470733a2f2f706f7365722e707567782e6f72672f6a6f636b63686f752f74696e796d76632f762f756e737461626c65)](https://packagist.org/packages/jockchou/tinymvc#dev-master)[![License](https://camo.githubusercontent.com/39345ebd46b34a6600dbc3c0cddf8125c35c48962cb4c6e7281a18b17481c98c/68747470733a2f2f706f7365722e707567782e6f72672f6a6f636b63686f752f74696e796d76632f6c6963656e7365)](https://raw.githubusercontent.com/jockchou/TinyMVC/master/LICENSE)[![composer.lock](https://camo.githubusercontent.com/f6cff2609a7014318990993ed31cddd66931e408f9595dfe0e04df078822f97d/68747470733a2f2f706f7365722e707567782e6f72672f6a6f636b63686f752f74696e796d76632f636f6d706f7365726c6f636b)](https://github.com/jockchou/TinyMVC/blob/master/composer.lock)

Installation
------------

[](#installation)

It's recommended that you use [Composer](https://getcomposer.org/) to install this framework.

```
composer create-project jockchou/tinymvc
```

How to run
----------

[](#how-to-run)

```
[root@localhost public]# php -S localhost:9000
PHP 7.0.11 Development Server started at Fri Sep 23 09:52:14 2016
Listening on http://localhost:9090
Document root is /var/tinymvc/public
Press Ctrl-C to quit.
```

Browse
------

[](#browse)

Open browser, enter ****** in the address bar

[![logo](./resource/TinyMVC.png)](./resource/TinyMVC.png)

HelloWorld
----------

[](#helloworld)

import ***resource/tiny.sql*** file to your MySQL database, Modify ***/config/dev/database.php***

```
$config['default']['dsn'] = 'mysql:host=localhost;port=3306;dbname=tiny;charset=utf8mb4';
$config['default']['username'] = 'root';
$config['default']['password'] = '123456';

```

open ****** on your browser

Structure
---------

[](#structure)

```
.
├── application
│   ├── controller
│   │   └── HelloController.php
│   ├── model
│   │   └── UserModel.php
│   └── view
│       ├── 404.php
│       ├── 500.php
│       ├── Hello
│       │   └── greeting.php
│       └── welcome.php
├── composer.json
├── composer.lock
├── config
│   ├── dev
│   │   └── database.php
│   └── prd
│       └── database.php
├── core
│   ├── Application.php
│   ├── Controller.php
│   ├── FrameworkException.php
│   ├── Model.php
│   └── Template.php
├── LICENSE
├── public
│   ├── css
│   │   └── normalize.css
│   ├── favicon.ico
│   ├── images
│   │   └── logo.png
│   ├── index.php
│   └── js
│       └── zepto.min.js
├── README.md
├── resource
│   ├── logo.png
│   ├── TinyMVC.png
│   └── tiny.sql
└── runtime
    └── logs

```

Nginx
-----

[](#nginx)

```
server {
        listen       80;
        server_name  tinymvc.anole.me;
        root         /var/tinymvc/public;
        charset      utf8;

        access_log  logs/tinymvc.access.log  main;
        error_log  logs/tinymvc.error.log;

        location / {
            try_files $uri /index.php$is_args$args;
        }

        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
        #
        location ~ ^/index\.php(/|$) {
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
            include        fastcgi_params;
        }

        location ~ \.php$ {
            return 404;
        }
}

```

Demo
----

[](#demo)

[http://tinymvc.anole.me](http://tinymvc.anole.me "Demo")

Contact
-------

[](#contact)

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3568d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2f2756cdb31bdce6dbc3b84878dcc564a5fb5e0475147a7868740da63e39d955?d=identicon)[jockchou](/maintainers/jockchou)

---

Top Contributors

[![jockchou](https://avatars.githubusercontent.com/u/4413265?v=4)](https://github.com/jockchou "jockchou (3 commits)")

---

Tags

frameworkmicromvctinymvc

### Embed Badge

![Health badge](/badges/jockchou-tinymvc/health.svg)

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

PHPackages © 2026

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