h1soft / h
PHP 5.3 MVC FRAMEWORK
v1.3.6
2015-09-04 14:33 UTC
Requires
- php: >=5.3.0
- twig/twig: 1.*
Requires (Dev)
- apigen/apigen: ~4.0@dev
This package is not auto-updated.
Last update: 2024-10-26 16:28:23 UTC
README
Build Status
php 5.3 mvc framework
Features
- 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工具
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