PHP code example of sonar / valiable

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

    

sonar / valiable example snippets

 php
    'providers' => [
        :
        :
        Sonar\Valiable\ValiableServiceProvider::class,
    ],

    'aliases' => [
        :
        :
        'Valiable' => Sonar\Valiable\ValiableFacade::class,
    ],
 bash
$ php artisan vendor:publish
 php
use Valiable;

print_r(Valiable::get('properties_parameter_kinds')); # Array([1] => 土地 [2] => 一戸建て [3] => マンション )
print_r(Valiable::getValue('properties_parameter_kinds',1)); # 土地
print_r(Valiable::getNames()); # Array([0] => properties_parameter_kinds)

 php
$skeleton = new League\Skeleton();
echo $skeleton->echoPhrase('Hello, League!');