Skip to content

h1soft/h

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HMVC

Build Status

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

About

hmvc php 5.3 framework

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages