1. Go to this page and download the library: Download llwebsol/rapid 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/ */
llwebsol / rapid example snippets
namespace YourProject\Controllers;
use rAPId\Foundation\Controller;
class Main implements Controller
{
/**
* @return mixed
*/
public function index(){
}
}
namespace YourProject\Controllers;
use rAPId\Foundation\Controller;
class SomethingElse implements Controller
{
public function index(){
return 'You are in the Index';
}
public function anotherThing(){
return 'You are in Another Thing';
}
}
public function getData($a_var = 'Not Defined', $another_var = 'Not Defined'){
return [
'A Var' => $a_var,
'Another Var' => $another_var
];
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.