PHP code example of ludovicose / remote-permission

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

    

ludovicose / remote-permission example snippets



return [
        //...
        /*
         * Package Service Providers...
         */
         \Ludovicose\RemotePermission\Providers\RemotePermissionServiceProvider::class,
        
        //..
];
env
REMOTE_SERVER_ADDRESS=http://gateway.loc 
REMOTE_SERVER_URI=/gateway/users/{userId}/permission/{permission} 
REMOTE_TRUE_STATUS_RESPONSE=201
REMOTE_FALSE_STATUS_RESPONSE=209
REMOTE_DEBUG=false
REMOTE_CACHE_TIME=1800
REMOTE_SSL_VERIFY=false