| Package Data | |
|---|---|
| Maintainer Username: | masihfathi | 
| Maintainer Contact: | miladimos@outlook.com (miladimos) | 
| Package Create Date: | 2021-06-18 | 
| Package Last Update: | 2025-07-25 | 
| Home Page: | |
| Language: | PHP | 
| License: | MIT | 
| Last Refreshed: | 2025-10-28 03:07:48 | 
| Package Statistics | |
|---|---|
| Total Downloads: | 276 | 
| Monthly Downloads: | 0 | 
| Daily Downloads: | 0 | 
| Total Stars: | 5 | 
| Total Watchers: | 2 | 
| Total Forks: | 1 | 
| Total Open Issues: | 0 | 
Laravel config package
composer require miladimos/conf
Miladimos\Conf\Providers\ConfServiceProvider::class,
php artisan conf:install
helpers:
conf('key') // return value of config
services:
use Miladimos\Conf\Services\ConfigJsonService;
ConfigJsonService::all(); // return all stored configs in config.json file
ConfigJsonService::show($id); // receive id of config and return one config
ConfigJsonService::store($date); 
// receive ['key' => 'your_key', 'value' => 'your_value'] 
ConfigJsonService::update($date, $id); 
// receive id of config and ['key' => 'your_key', 'value' => 'your_value'] for update
ConfigJsonService::delete($id); // receive id of config and  delete
routes:
GET  api/version/conf/all          -> name: conf.all // return all configs
GET  api/version/conf/show/{id}    -> name: conf.show // return single config
POST api/version/conf/update/{id}  -> name: conf.update // update
POST api/version/conf/store        -> name: conf.store // store
GET  api/version/conf/delete/{id}  -> name: conf.delete // delete
update and store receive these datas
[
    'key' => 'yourkey',
    'value' => 'yourvalue'
]
then give to config.json file read,write permissions or change owner file to current user:
sudo chown -R $USER config.json