1. Go to this page and download the library: Download ronmi/fthlc library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ronmi / fthlc example snippets
$mux = new Pux\Mux;
$mux->mount('', (new Your/App/Controller())->expand());
class YourController extends Pux\Controller
{
public function indexAction($arg1, $arg2)
{
// do something
}
}
class YourModelSchema extends LazyRecord\Schema
{
public function schema()
{
$this->column('column1')->integer()->default(1);
}
}
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);
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.