{"id":28200009,"url":"https://github.com/scriptburn/db-settings","last_synced_at":"2025-10-29T07:10:35.208Z","repository":{"id":62541433,"uuid":"97261458","full_name":"scriptburn/db-settings","owner":"scriptburn","description":"Simple package to manage permanent or transient settings in database","archived":false,"fork":false,"pushed_at":"2017-12-20T13:06:01.000Z","size":12,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-20T08:34:39.315Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/scriptburn.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":"2017-07-14T18:18:34.000Z","updated_at":"2017-07-14T18:20:12.000Z","dependencies_parsed_at":"2022-11-02T16:16:06.703Z","dependency_job_id":null,"html_url":"https://github.com/scriptburn/db-settings","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/scriptburn/db-settings","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scriptburn%2Fdb-settings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scriptburn%2Fdb-settings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scriptburn%2Fdb-settings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scriptburn%2Fdb-settings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scriptburn","download_url":"https://codeload.github.com/scriptburn/db-settings/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scriptburn%2Fdb-settings/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281578198,"owners_count":26524962,"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-29T02:00:06.901Z","response_time":59,"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":[],"created_at":"2025-05-16T20:10:16.470Z","updated_at":"2025-10-29T07:10:35.144Z","avatar_url":"https://github.com/scriptburn.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n## Simple package to manage permanent or transient settings in database\n--------\n\n##Installing and Usage in laraval:\n\n`composer require scriptburn/db-settings \"\u003e=1.0.5\"`\n\n`php artisan migrate`\n\nAdd  `Scriptburn\\Setting\\SettingServiceProvider::class` in you `app/config.php` `provider` array\nAdd  `Setting' =\u003e Scriptburn\\Setting\\Facades\\Setting::class` in you `app/config.php` `aliases` array\n\n`use Scriptburn\\Setting\\Facades\\Setting;` to refrence the package \n\n `Settingget(name, \u003cdefault_value = null\u003e);`\n `Setting::set(\u003cname\u003e, \u003cvalue = null\u003e, \u003cexpires_in_seconds = null\u003e);`\n `Setting::delete(\u003cname\u003e);`\n\n\n##Installing and Usage in other scripts:\n\n`composer require scriptburn/db-settings \"\u003e=1.0.4\"`\n\n`require_once \"vendor/autoload.php\";`\n\n\n`$pdoInstance=new PDO(\"mysql:host=$dbhost;dbname=$dbname\", $dbusername, $dbpassword);`\n\n`$settingTableName='settings';` \n`$settings=\\Scriptburn\\Setting\\Setting($pdoInstance,$settingTableName);`\n\n`$settings-\u003eset('someSettingName','someSettingValue',$optionalExpiresInSeconds);`\n`$settings-\u003eset(['someSettingName'=\u003e'someSettingValue'],$optionalExpiresInSeconds);`\n\n`$value=$settings-\u003eget('someSettingName','optionalDefaultValueIfNotFound');`\n`$value=$settings-\u003eget(['someSettingName','someAnotherSettingName']);`\n\n\n\n   \n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscriptburn%2Fdb-settings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscriptburn%2Fdb-settings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscriptburn%2Fdb-settings/lists"}