{"id":36994525,"url":"https://github.com/b-deshayes/laravel-settings","last_synced_at":"2026-01-13T23:46:45.162Z","repository":{"id":49065113,"uuid":"281445233","full_name":"b-deshayes/laravel-settings","owner":"b-deshayes","description":"🔑 Simple key/value secure settings systme stored in database","archived":true,"fork":false,"pushed_at":"2023-02-01T21:31:55.000Z","size":248,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-22T15:51:24.176Z","etag":null,"topics":["encryption","key-value","laravel","persistent","setting"],"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/b-deshayes.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2020-07-21T16:10:52.000Z","updated_at":"2023-09-10T18:46:24.000Z","dependencies_parsed_at":"2023-02-17T11:10:24.187Z","dependency_job_id":null,"html_url":"https://github.com/b-deshayes/laravel-settings","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/b-deshayes/laravel-settings","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b-deshayes%2Flaravel-settings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b-deshayes%2Flaravel-settings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b-deshayes%2Flaravel-settings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b-deshayes%2Flaravel-settings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/b-deshayes","download_url":"https://codeload.github.com/b-deshayes/laravel-settings/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b-deshayes%2Flaravel-settings/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28405304,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["encryption","key-value","laravel","persistent","setting"],"created_at":"2026-01-13T23:46:45.095Z","updated_at":"2026-01-13T23:46:45.150Z","avatar_url":"https://github.com/b-deshayes.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# laravel-settings\n\n![Units tests](https://github.com/Kotus-s/laravel-settings/workflows/Units%20tests/badge.svg?branch=master)\n\nSimple key/value secure settings stored in database\n\n## Installation\nInstall the package via composer.\n\n```bash\ncomposer require kotus/laravel-settings\n```\n\nPublish the config file and fill in the configs. Be sure to provide defaults settings before running the `php artisan migrate` command.\n\n```bash\nphp artisan vendor:publish --provider=\"Kotus\\Settings\\Providers\\SettingsServiceProvider\" --tag=\"config\"\n```\n\nBe sure to run migration to create the settings table.\n\n```bash\nphp artisan migrate\n```\n\n## Usage\n\nYou can now use any of the following methods to handle your settings.\n\n```php\n Settings::get($key = null, array $options = [])\n Settings::has(string $key, array $options = []): bool\n Settings::set(string $key, string $value, array $options = []): bool\n Settings::add(string $key, string $value, array $options = []): bool\n Settings::flushCache(array $tenants = []): void\n```\n\nAt any point, you can pass a specific tenant in option like this:\n\n```php\n$value = Settings::get('my_settings', ['tenant' =\u003e 'my_tenant']);\n```\n\nAll settings are cache by tenant category depending on the ttl defined in config file. Default is 30 minutes. Whenever you add or change a setting, the cache is flush.\n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\n## License\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb-deshayes%2Flaravel-settings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb-deshayes%2Flaravel-settings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb-deshayes%2Flaravel-settings/lists"}