- Regular expression routing
- Error handling and logging
- Session management
- CRUD-style PDO
- ActiveRecord
- EAV
- N-to-N relationships
- Scoped, nested transactions
- Forced HTTPS
- Flash messages
- Twig Template
新建文件 : composer.json
{
"require": {
"h1soft/h": "dev-master"
}
}
composer install
新建入口文件 : index.php
require 'vendor/autoload.php';
$app = new \hmvc\Web\Application();
$app->run();
目录结构
project
|__companyName
|___ModuleA
|_____Controller
|_____Index.php
|___ModuleB
|_____Controller
|_____Index.php
|__etc
|__config.php
|__db.php
|__rewrite.php
|__crons
|__job1.php
|__job2.php
|__themes
php5.3或者以上
自定义路由 MySQLi FlashMessage RESTFull i18n Log Console