PHP code example of easeappphp / ea-router

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

    

easeappphp / ea-router example snippets


'rest-login' => [
	'route_value' => '/rest/login',
	'auth_check_oute_type' => 'rest-web-service',
	'allowed_request_methods' => ['POST'],
			'controller_type' => 'procedural',
			'controller_class_name' => \EaseAppPHP\EABlueprint\App\Http\Controllers\ProceduralController::class,
			'method_name' => 'webHtmlOutput',
			'with_middleware' => '',
			'without_middleware' => ''
],


'rest-get-all-user-details' => [
	'route_value' => '/rest/all-user-details/get',
	'auth_check_rest-web-service',
	'allowed_request_methods' => ['POST'],
			'controller_type' => 'oop-mapped',
			'controller_class_name' => \EaseAppPHP\EABlueprint\App\Http\Controllers\AllUserDetails\GetController::class,
			'method_name' => 'index',
			'with_middleware' => '',
			'without_middleware' => ''
],