{"id":15293802,"url":"https://github.com/bavix/laravel-settings","last_synced_at":"2026-01-13T21:53:35.132Z","repository":{"id":62492233,"uuid":"199865179","full_name":"bavix/laravel-settings","owner":"bavix","description":"Keep user settings easy","archived":true,"fork":false,"pushed_at":"2024-12-18T17:32:26.000Z","size":38,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-11-27T14:40:30.357Z","etag":null,"topics":["config","laravel","laravel-settings","persistent","php","settings"],"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/bavix.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","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,"zenodo":null}},"created_at":"2019-07-31T13:48:18.000Z","updated_at":"2025-02-21T21:22:52.000Z","dependencies_parsed_at":"2025-04-30T01:36:57.227Z","dependency_job_id":"6d6204a7-7b38-4eac-bc55-124419f7441d","html_url":"https://github.com/bavix/laravel-settings","commit_stats":{"total_commits":25,"total_committers":3,"mean_commits":8.333333333333334,"dds":"0.31999999999999995","last_synced_commit":"119da3c3e56835036f250fdbfe76a83368716246"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/bavix/laravel-settings","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bavix%2Flaravel-settings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bavix%2Flaravel-settings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bavix%2Flaravel-settings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bavix%2Flaravel-settings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bavix","download_url":"https://codeload.github.com/bavix/laravel-settings/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bavix%2Flaravel-settings/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28401936,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: 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":["config","laravel","laravel-settings","persistent","php","settings"],"created_at":"2024-09-30T16:53:21.309Z","updated_at":"2026-01-13T21:53:35.116Z","avatar_url":"https://github.com/bavix.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/bavix/laravel-settings/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/bavix/laravel-settings/?branch=master)\n[![Code Coverage](https://scrutinizer-ci.com/g/bavix/laravel-settings/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/bavix/laravel-settings/?branch=master)\n[![Build Status](https://scrutinizer-ci.com/g/bavix/laravel-settings/badges/build.png?b=master)](https://scrutinizer-ci.com/g/bavix/laravel-settings/build-status/master)\n[![Code Intelligence Status](https://scrutinizer-ci.com/g/bavix/laravel-settings/badges/code-intelligence.svg?b=master)](https://scrutinizer-ci.com/code-intelligence)\n[![Mutation testing badge](https://badge.stryker-mutator.io/github.com/bavix/laravel-settings/master)](https://packagist.org/packages/bavix/laravel-settings)\n\n[![Package Rank](https://phppackages.org/p/bavix/laravel-settings/badge/rank.svg)](https://packagist.org/packages/bavix/laravel-settings)\n[![Latest Stable Version](https://poser.pugx.org/bavix/laravel-settings/v/stable)](https://packagist.org/packages/bavix/laravel-settings)\n[![Latest Unstable Version](https://poser.pugx.org/bavix/laravel-settings/v/unstable)](https://packagist.org/packages/bavix/laravel-settings)\n[![License](https://poser.pugx.org/bavix/laravel-settings/license)](https://packagist.org/packages/bavix/laravel-settings)\n[![composer.lock](https://poser.pugx.org/bavix/laravel-settings/composerlock)](https://packagist.org/packages/bavix/laravel-settings)\n\nlaravel-settings - Keep user settings easy.\n\n* **Vendor**: bavix\n* **Package**: laravel-settings\n* **Version**: [![Latest Stable Version](https://poser.pugx.org/bavix/laravel-settings/v/stable)](https://packagist.org/packages/bavix/laravel-settings)\n* **PHP Version**: 7.2+ \n* **Laravel Version**: `5.5`, `5.6`, `5.7`, `5.8`, `6.x`, `7.x`, `8.x`\n* **[Composer](https://getcomposer.org/):** `composer require bavix/laravel-settings`\n\n### Usage\nAdd the `HasSettings`, `HasSetSettings`, `HasGetSettings` trait and `Settingable` interface to model.\n```php\nuse Bavix\\Settings\\Traits\\HasSettings;\nuse Bavix\\Settings\\Traits\\HasSetSettings;\nuse Bavix\\Settings\\Traits\\HasGetSettings;\nuse Bavix\\Settings\\Interfaces\\Settingable;\n\nclass User extends Model implements Settingable\n{\n    use HasGetSettings, HasSetSettings, HasSettings;\n}\n```\n\nChecking user settings.\n\n```php\n$user = User::first();\n$user-\u003egetSetting('notify'); // null\n$user-\u003egetSettingBool('notify'); // null\n$user-\u003egetSettingBool('notify', false); // bool(false)\n```\n\nLet's save the settings.\n\n```php\n(bool)$user-\u003esetSettingBool('notify', false); // bool(true)\n$user-\u003egetSettingBool('notify', false); // bool(false)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbavix%2Flaravel-settings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbavix%2Flaravel-settings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbavix%2Flaravel-settings/lists"}