Create type-safe abstraction for declarative settings
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 36.9k
- Forks
- 5.2k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 713
Description
How to use GitHub
- Please use the 👍 reaction to show that you are interested into the same feature.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Is your feature request related to a problem? Please describe.
Settings cause trouble in many places as it includes a lot of layers.
You have to make sure to read and write the correct keys, use the correct types and build your own settings UI.
Describe the solution you'd like
A PHP abstraction for declarative settings schemas.
We have declarative settings that can be used to manage settings in type-safe and declarative way. So far only a schema based implementation is available which is tedious to use in PHP as no simple type-safety using classes, methods, parameters and so on exists.
Bugs like https://github.com/nextcloud/server/pull/47674 can be ruled out entirely by relying on declarative settings.
It reduces the load on both frontend and backend engineers as it simplifies the process of using settings and removes an entire part of frontend work.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue does not name any files, tests, or entry points. Start by locating the existing schema-based declarative settings implementation and reviewing how PHP settings are currently read, written, typed, and exposed to the frontend. Done means a defined type-safe PHP abstraction with a clear schema and integration scope.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend-api-design
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100