PHP code example of lfphp / litephp
1. Go to this page and download the library: Download lfphp/litephp 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/ */
lfphp / litephp example snippets
cmd
Litephp
HelloWorld
├─app
│ └─controller
│ IndexController.php
│
├─config
│ app.inc.php
│
└─public
index.php
php
namespace HelloWorld;
use Lite\Core\Application;
php
return array(
'url' => '/',
);
php
namespace HelloWorld\controller;
use Lite\Core\Controller;
class IndexController extends Controller {
public function index($search = null, $post = null){
echo "Hello World!";
}
}