178inaba / tomlara
package for using the config file of toml in laravel.
Fund package maintenance!
178inaba
Requires
- laravel/framework: ^5.2
- yosymfony/toml: ^0.3.3
Requires (Dev)
- phpunit/phpunit: ^5.4
This package is not auto-updated.
Last update: 2024-11-09 20:06:56 UTC
README
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