2017 © Pedro Peláez
 

library fthlc

Simple but fast PHP framework

image

ronmi/fthlc

Simple but fast PHP framework

  • Wednesday, April 1, 2015
  • by Ronmi
  • Repository
  • 1 Watchers
  • 6 Stars
  • 4 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

FTHLC - Simple but fast php web framework

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

Introduction

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

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!, (*3)

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!, (*4)

Getting Started

php composer.phar require ronmi/fthlc, (*5)

Synopsis

Routing:, (*6)

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

Controller:, (*7)

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

Model:, (*8)

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

and, (*9)

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:, (*10)

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

  • We have 3141.59% speed boost after changing from $ymfoning to FTHLC. bill.doors@m1cr0s0f7.com
  • Fast, fast, and faster! larry.chapter@goodle.com
  • I will never use any other framework! jeff.bagels@mamasong.com
  • 用了它之後,我感覺自己變聰明了,考試都考一百分呢! 60cm@gg-in.in

The Versions

01/04 2015

dev-master

9999999-dev

Simple but fast PHP framework

  Sources   Download

The Requires

 

by Avatar Ronmi

01/04 2015

0.1

0.1.0.0

Simple but fast PHP framework

  Sources   Download

The Requires

 

by Avatar Ronmi