tugumuda / helpers
Kumpulan laravel helpers
Installs: 182
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 1
Open Issues: 0
Language:JavaScript
Requires
- php: ^5.5.9 || ^7.0
- laravelcollective/html: ^5.2.0
- rizalafani/fpdflaravel: dev-master
README
Installation
Require this package with composer.
composer require tugumuda/helpers
Laravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.
For Laravel < 5.5, please use the 5.1 branch!
Laravel 5.5+:
If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php
Collective\Html\HtmlServiceProvider::class, Tugumuda\Helpers\ServiceProvider::class,
If you want to use the facade, add this to your facades in app.php:
'BSForm' => Tugumuda\Helpers\Facades\BSFormFacade::class, 'TMFormatter' => Tugumuda\Helpers\Facades\FormatterFacade::class, 'TMConverter' => Tugumuda\Helpers\Facades\ConverterFacade::class,
Usage
You can now add messages using the Facade (when added):
BSForm
BSForm::label('fullname', 'Fullname:'); BSForm::text('fullname', 'Angger Priyardhan Putro'); BSForm::textGroup('fullname', 'Fullname:', 'Angger Priyardhan Putro');
Converter
TMConverter::int2money('100000'); TMConverter::array2object(['name' => 'Angger', 'email' => 'anggerpputro@gmail.com']);