178inaba/tomlara
tomlara
package for using the config file of toml in laravel.
install
$ composer require 178inaba/tomlara
how to use
add bootstrappers() method for app/Http/Kernel.php and app/Console/Kernel.php.
<?php
//namespace App\Console;
namespace App\Http;
//use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
//class Kernel extends ConsoleKernel
class Kernel extends HttpKernel
{
// ...
protected function bootstrappers()
{
$this->bootstrappers[] = 'Inaba\Tomlara';
return $this->bootstrappers;
}
}
use func
inspired by Devitek/laravel-yaml-configuration
test
$ composer install
$ vendor/bin/phpunit --bootstrap vendor/autoload.php tests
licence
MIT
Related Packages
mascame/arrayer
Array manipulation with dot notation. Also prepares an array to be put in a file...
1,458
14
delatbabel/site-config
A database backed config loader for Laravel with per-site configuration.
1,363
4
Version History
| Version | Released | Laravel | License |
|---|---|---|---|
| v1.0.2 | ^5.2 | MIT | |
| v1.0.1 | ^5.2 | MIT | |
| v1.0.0 | * | MIT |