PHP code example of pachel / easyframework

1. Go to this page and download the library: Download pachel/easyframework 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/ */

    

pachel / easyframework example snippets

`

use Pachel\EasyFrameWork\Base;
ob_start();
session_start();
me/examples/",
      "UI" => __DIR__."/../UI/",
      "VIEWs" => __DIR__."/../UI/views/",
      "LOGS" => __DIR__."/../logs/"            
  ]
];
$App = Base::instance();
$App->config($config);

//Loads the template.html file from the folder APP.VIEWS to any get request
$App->Routing()->get("*")->view("index.html");
$App->run();
`
//Content of your config file

return [
  "APP" => [
    "URL" => "http://localhost",  
    "UI" => "UI FOLDER"  
  ]
];
`

$App->config("Your config file's path");
`
//From everywhere
Base::instance()->env("APP.URL");

//From text/html code
{{APP.URL}}

//From php code
echo $APP["URL"];