ronmi/fthlc 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ronmi/fthlc

最新稳定版本:0.1

Composer 安装命令:

composer require ronmi/fthlc

包简介

Simple but fast PHP framework

README 文档

README

FTHLC Framework - aka. For Those Who Loves C9s Framework - is a simple but fast web framework for PHP 5.3+.

Introduction

Tired using fat, slow, nobody-can-read framework like $ymfoning? Use FTHLC and you'll love it in a second!

FTHLC has exactly zero line of code, which make it be the fastest web framework in the world! No additional effort, no performance penalty, doing just the thing you want it to do!

We use Pux for routing, LazyRecord for ORM and also CLIFramework to save your life! Less step, more c9s! It's definitely c9s all-in-one!

Getting Started

php composer.phar require ronmi/fthlc

Synopsis

Routing:

$mux = new Pux\Mux;
$mux->mount('', (new Your/App/Controller())->expand());

Controller:

class YourController extends Pux\Controller
{
    public function indexAction($arg1, $arg2)
    {
        // do something
    }
}

Model:

class YourModelSchema extends LazyRecord\Schema
{
    public function schema()
    {
        $this->column('column1')->integer()->default(1);
    }
}

and

vendor/bin/lazy init
vendor/bin/lazy conf
vendor/bin/lazy build-schema
vendor/bin/lazy create-db
vendor/bin/lazy sql

vendor/bin/lazy migrate

Command line interface:

class YourCLICommand extends CLIFramework\Command
{
    public function brief() {
        return 'Only for test.';
    }
    public function arguments($args)
    {
        $args->add('arg1');
    }
    public function execute($arg1)
    {
        $this->logger->info($arg1);
    }
}

Testimonials

统计信息

  • 总下载量: 13
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-04-01