This example show the usage of the new QueryString::compose method with the new QueryComposeMode Enum. It highlights the different ways to compose an query string to better migrate between the BC breaks in http_build_query behaviours .
the QueryComposeMode::Native mode just encode using http_build_query so it is PHP version dependent.
I just released version 7.8.0 of all my #PHP #URI packages. The new version adds support for BackedEnum everywhere, improve string coercion and allow migrating and mitigating the BC breaks introduced in http_build_query in #PHP8.4
full changelog github.com/thephpleague...