1. Go to this page and download the library: Download lemaur/laravel-typed-config 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/ */
lemaur / laravel-typed-config example snippets
$myValue = (string) config('my-app.my-value');
// or
$myValue = (string) config()->get('my-app.my-value');