{"id":19876203,"url":"https://github.com/miladimos/conf","last_synced_at":"2025-05-02T11:32:17.746Z","repository":{"id":62528781,"uuid":"378068232","full_name":"miladimos/conf","owner":"miladimos","description":"laravel dynamic application config ","archived":false,"fork":false,"pushed_at":"2022-03-10T23:21:24.000Z","size":42,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-09-14T04:09:14.265Z","etag":null,"topics":["conf","configuration-files","configuration-management","laravel","laravel-config","laravel-package","lumen-config","lumen-package"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/miladimos.png","metadata":{"files":{"readme":"README-en.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-18T07:22:54.000Z","updated_at":"2023-07-25T21:31:16.000Z","dependencies_parsed_at":"2022-11-02T16:15:31.896Z","dependency_job_id":null,"html_url":"https://github.com/miladimos/conf","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":"miladimos/package-skeleton","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miladimos%2Fconf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miladimos%2Fconf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miladimos%2Fconf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miladimos%2Fconf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miladimos","download_url":"https://codeload.github.com/miladimos/conf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224308577,"owners_count":17290024,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["conf","configuration-files","configuration-management","laravel","laravel-config","laravel-package","lumen-config","lumen-package"],"created_at":"2024-11-12T16:31:16.283Z","updated_at":"2024-11-12T16:32:27.573Z","avatar_url":"https://github.com/miladimos.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n- (README.md)\n\n# Laravel config package\n\n### Installation\n\n1. Run the command below to add this package:\n```\ncomposer require miladimos/conf\n```\n\n2. Open your conf/app.php and add the following to the providers array:\n```php\nMiladimos\\Conf\\Providers\\ConfServiceProvider::class,\n```\n\n3. Run the command below to install package:\n```\nphp artisan conf:install\n```\n\nhelpers:\n\nconf('key') // return value of config\n\n\nservices:\n\n```php\nuse Miladimos\\Conf\\Services\\ConfigJsonService;\n\nConfigJsonService::all(); // return all stored configs in config.json file\nConfigJsonService::show($id); // receive id of config and return one config\nConfigJsonService::store($date); \n// receive ['key' =\u003e 'your_key', 'value' =\u003e 'your_value'] \nConfigJsonService::update($date, $id); \n// receive id of config and ['key' =\u003e 'your_key', 'value' =\u003e 'your_value'] for update\nConfigJsonService::delete($id); // receive id of config and  delete\n```\n\nroutes:\n```php\nGET  api/version/conf/all          -\u003e name: conf.all // return all configs\nGET  api/version/conf/show/{id}    -\u003e name: conf.show // return single config\nPOST api/version/conf/update/{id}  -\u003e name: conf.update // update\nPOST api/version/conf/store        -\u003e name: conf.store // store\nGET  api/version/conf/delete/{id}  -\u003e name: conf.delete // delete\n```\nupdate and store receive these datas\n```php\n[\n    'key' =\u003e 'yourkey',\n    'value' =\u003e 'yourvalue'\n]\n```\n\nthen give to config.json file read,write permissions or chane owner file to current user:\n\nsudo chown -R $USER config.json\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiladimos%2Fconf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiladimos%2Fconf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiladimos%2Fconf/lists"}