{"id":16409552,"url":"https://github.com/pointybeard/settings","last_synced_at":"2026-05-14T22:03:45.840Z","repository":{"id":66719077,"uuid":"246434996","full_name":"pointybeard/settings","owner":"pointybeard","description":"A Symphony CMS Extension (https://www.getsymphony.com/) for storing and retrieving key/value settings in a simple and clean way","archived":false,"fork":false,"pushed_at":"2020-03-29T05:02:30.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-24T02:31:18.961Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pointybeard.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":null,"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":"2020-03-11T00:05:51.000Z","updated_at":"2020-03-29T05:02:27.000Z","dependencies_parsed_at":"2023-04-06T00:22:33.472Z","dependency_job_id":null,"html_url":"https://github.com/pointybeard/settings","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/pointybeard/settings","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pointybeard%2Fsettings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pointybeard%2Fsettings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pointybeard%2Fsettings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pointybeard%2Fsettings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pointybeard","download_url":"https://codeload.github.com/pointybeard/settings/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pointybeard%2Fsettings/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33045145,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"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":"2024-10-11T06:20:23.700Z","updated_at":"2026-05-14T22:03:45.806Z","avatar_url":"https://github.com/pointybeard.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Settings Extension for Symphony CMS\n\n-   Version: 0.1.0\n-   Date: March 11 2020\n-   [Release notes](https://github.com/pointybeard/settings/blob/master/CHANGELOG.md)\n-   [GitHub repository](https://github.com/pointybeard/settings)\n\nA [Symphony CMS Extension](https://www.getsymphony.com/) for storing and retrieving key/value settings in a simple and clean way.\n\n## Installation\n\nThis is an extension for Symphony CMS. Add it to your `/extensions` folder in your Symphony CMS installation, run `composer update` to install required packages and then enable it though the interface.\n\n### Requirements\n\nThis extension requires PHP 7.3 or greater.\n\nThis extension depends on the following Composer libraries:\n\n-   [PHP Helpers](https://github.com/pointybeard/helpers)\n-   [Symphony CMS: Section Builder](https://github.com/pointybeard/symphony-section-builder)\n-   [Symphony CMS: Section Class Mapper](https://github.com/pointybeard/symphony-classmapper)\n\nRun `composer update` on the `extension/settings` directory to install these.\n\n## Usage\n\nHere is an example of how to use this extension in your code.\n\n### Saving Settings\n\nThere are 2 ways to save settings. By browsing to \"System\" \u003e \"Settings\" in the admin and adding/editing/deleting settings or in code by using the Settings model.\n\n```php\n\u003c?php\n\ndeclare(strict_types=1);\n\nuse pointybeard\\Symphony\\Extensions\\Settings\\Models;\n\n// Saving a new setting\n(new Models\\Settings)\n    -\u003ename(\"mysetting\")\n    -\u003evalue(\"one two three\")\n    -\u003egroup(\"myapp\")\n    -\u003esave()\n;\n```\n\n### Retriving Settings\n\nThe main use of this extension is going to be to recall settings when needed. There are 2 important methods to know about:\n\n`Models\\Setting::fetchByGroup()` and `Models\\Setting::loadFromNameFilterByGroup()`\n\n```php\n\u003c?php\n\ndeclare(strict_types=1);\n\nuse pointybeard\\Symphony\\Extensions\\Settings\\Models;\n\n// Retrieve a single setting using both it's name and group\n$setting = Models\\Setting::loadFromNameFilterByGroup(\"mysetting\", \"myapp\");\n\n// Retrieve an entire group of settings\n$setting = Models\\Setting::fetchByGroup(\"myapp\");\n```\n\nThe `fetchByGroup()` method returns an instance of `Settings\\SettingsResultIterator` which includes an additional method you can use to find specific settings in a group of results.\n\n```php\n\u003c?php\n\ndeclare(strict_types=1);\n\nuse pointybeard\\Symphony\\Extensions\\Settings\\Models;\n\n// Find a specific setting from a group of settings and return its value\n$value = Models\\Setting::fetchByGroup(\"myapp\")-\u003efind(\"mysetting\");\n```\n\n## Support\n\nIf you believe you have found a bug, please report it using the [GitHub issue tracker](https://github.com/pointybeard/settings/issues),\nor better yet, fork the library and submit a pull request.\n\n## Contributing\n\nWe encourage you to contribute to this project. Please check out the [Contributing documentation](https://github.com/pointybeard/settings/blob/master/CONTRIBUTING.md) for guidelines about how to get involved.\n\n## License\n\n\"Settings Extension for Symphony CMS\" is released under the [MIT License](http://www.opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpointybeard%2Fsettings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpointybeard%2Fsettings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpointybeard%2Fsettings/lists"}