{"id":21542383,"url":"https://github.com/amethyst-php/config","last_synced_at":"2026-05-16T11:05:27.966Z","repository":{"id":56946897,"uuid":"133684325","full_name":"amethyst-php/config","owner":"amethyst-php","description":"Customize Laravel configuration using the database","archived":false,"fork":false,"pushed_at":"2024-03-29T15:32:11.000Z","size":132,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-12T19:32:31.359Z","etag":null,"topics":["amethyst","amethyst-package","api","config","laravel","utility"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amethyst-php.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-16T15:09:00.000Z","updated_at":"2024-03-28T12:28:25.000Z","dependencies_parsed_at":"2025-01-24T08:41:07.172Z","dependency_job_id":"079615c7-52c9-46a9-b53f-e564d6ab1a72","html_url":"https://github.com/amethyst-php/config","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/amethyst-php/config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amethyst-php%2Fconfig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amethyst-php%2Fconfig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amethyst-php%2Fconfig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amethyst-php%2Fconfig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amethyst-php","download_url":"https://codeload.github.com/amethyst-php/config/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amethyst-php%2Fconfig/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279012668,"owners_count":26085159,"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","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["amethyst","amethyst-package","api","config","laravel","utility"],"created_at":"2024-11-24T05:09:26.099Z","updated_at":"2025-10-12T19:32:45.736Z","avatar_url":"https://github.com/amethyst-php.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Config\r\n\r\n[![Action Status](https://github.com/amethyst-php/config/workflows/test/badge.svg)](https://github.com/amethyst-php/config/actions)\r\n[![Amethyst](https://img.shields.io/badge/package-Amethyst-7e57c2)](https://github.com/amethyst-php/amethyst)\r\n\r\nCustomize Laravel configuration using the database. \r\n\r\n# Requirements\r\n\r\n- PHP from 7.2 to 7.4\r\n- Laravel from 5.8 to 8.x\r\n\r\n## Installation\r\n\r\nYou can install it via [Composer](https://getcomposer.org/) by typing the following command:\r\n\r\n```bash\r\ncomposer require amethyst/config\r\n```\r\n\r\nThe package will automatically register itself.\r\n\r\n## Usage\r\n\r\nA simple usage looks like this\r\n\r\n```php\r\napp('amethyst')-\u003eget('config')-\u003ecreateOrFail([\r\n    'key' =\u003e 'app.name',\r\n    'value' =\u003e 'My Application'\r\n]);\r\n```\r\n\r\nThere are only 2 attributes (`key` and `value`) and the validation is pretty basic.\r\nWhen the ServiceProvider is booted or when a new record is saved, all records will be merged with the current configuration. This means you can override the current laravel configuration or create your own.\r\nThe attribute `key` works with dot notation too, so key can be also for e.g. `app.name`.\r\n\r\nKeep in mind that this is an [Amethyst Package](https://github.com/amethyst-php/amethyst), if you wish to see the full list of available features and customization please check [core](https://github.com/amethyst-php/core)\r\n\r\n## Api\r\n\r\nThere are no additional routes in this package, only the default provided by the [core](https://github.com/amethyst-php/core).\r\n\r\n## Testing\r\n\r\n- Clone this repository\r\n- Copy the default `phpunit.xml.dist` to `phpunit.xml`\r\n- Change the environment variables as you see fit\r\n- Launch `./vendor/bin/phpunit`\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famethyst-php%2Fconfig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famethyst-php%2Fconfig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famethyst-php%2Fconfig/lists"}