178inaba / tomlara by 178inaba

package for using the config file of toml in laravel.
39
0
2
Package Data
Maintainer Username: 178inaba
Maintainer Contact: 178inaba@users.noreply.github.com (178inaba)
Package Create Date: 2016-04-15
Package Last Update: 2016-06-07
Language: PHP
License: MIT
Last Refreshed: 2024-11-26 15:06:57
Package Statistics
Total Downloads: 39
Monthly Downloads: 1
Daily Downloads: 0
Total Stars: 0
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

tomlara

Total Downloads Latest Stable Version Latest Unstable Version License

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