1. Go to this page and download the library: Download rith-1437/zeroping 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/ */
rith-1437 / zeroping example snippets
use App\Core\Routing\Router;
use App\Controllers\GreetingController;
Router::get('/hello', [GreetingController::class, 'index']);
namespace App\Controllers;
use App\Core\View\Controller;
class GreetingController extends Controller
{
public function index(): string
{
return view('greeting', [
'name' => config('app.name'),
]);
}
}