chihyulin66 / laravel-json-helper
Installs: 214
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/chihyulin66/laravel-json-helper
Requires
- ext-json: *
Requires (Dev)
This package is auto-updated.
Last update: 2025-12-29 04:01:03 UTC
README
introduction
I just want json encode/decode beautifully.
install
Install the package via composer
composer require chihyulin66/laravel-json-helper
Add Provider to config/app.php:
'providers' => [ /* * Package Service Providers... */ ChihYuLin66\LaravelJsonHelper\JsonServiceProvider::class ]
Add the Facade in config/app.php:
'aliases' => [ // ... 'Json' => ChihYuLin66\LaravelJsonHelper\JsonFacade::class, ]
Usage
// use use ChihYuLin66\LaravelJsonHelper\Json; $json = Json::encode($value); $value = Json::decode($json); // anywhere $json = app('json')->encode($value); $value = app('json')->decode($json);