PHP code example of hsntngr / roux

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

    

hsntngr / roux example snippets


Route::get("welcome/{name}/{surname}", function ($name,$surname) {
    return response()->json("Welcome " . $name." ".$surname);
})->name("user.greetings");

'providers' => [
    // ...
    Hsntngr\Roux\RouxServiceProvider::class
];