Add a method to get or edit a query string in the current URL
Open
enhancement
- Dominant language
- PHP
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
## Description
When manipulating a current URL with many query strings added for differents scenarios, it becomes cumbersome to manage every use case.
We should be able to add, or edit an existing query strings while preserving the current query strings.
## Proposal
A new method to add or edit query strings.
```php
use function Folded\addOrEditQueryStrings;
// current URL: /?view=feed
addOrEditQueryStrings(["lang" => "en", "page" => 42]);
// current URL: /?view=feed&lang=en&page=42
```
## Worarkound solutions
Managing every different query strings (hardly reliable).
## Notes
None.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.