1. Go to this page and download the library: Download andrewsuzuki/perm 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/ */
andrewsuzuki / perm example snippets
'Andrewsuzuki\Perm\PermServiceProvider',
'Perm' => 'Andrewsuzuki\Perm\Facades\Perm',
// dot notation from base path (see above for configuration)
$perm = Perm::load('profile.andrew');
// ...or absolute path (no extension)
$perm = Perm::load('/path/to/file');
$location = $perm->get('location');
$location = $perm->location; // for the first level, you can use magic properties
$first_name = $perm->get('name.first'); // use dot notation for nested values