PHP code example of gelembjuk / php-easy-app

1. Go to this page and download the library: Download gelembjuk/php-easy-app 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/ */

    

gelembjuk / php-easy-app example snippets




 HelloWorld extends \Gelembjuk\EasyApp\Controller {
	protected function get()
	{
		return "Hello World!";
	}
}

$action = new \Gelembjuk\EasyApp\Action();
$action->context->config->traceErrors = true;
$action->
	withDefaultController(HelloWorld::class)->
	action()->
	standardOutput();
  

composer