leocavalcante/siler
Siler is a zero-dependency PHP library/micro-framework of high-level functional abstractions for declarative apps and routing. Fast, flat-file friendly, and works well with Swoole. Note: the repository is archived; Nano is recommended as an alternative.
Remove the dependency on the $_SERVER['QUERY_STRING'] which is not always the same as the request uri.
You can now use GraphQL subscriptions thought Annotations too.
Config can now receive a Custom parser.
This patch adds the nullableList option resolving #430
Fix route with URL encoded query strings reported at #354
The richest feature in this release is probably GraphQL Annotations. But there was a lot more, specially bug fixes in the GraphQL space, checkout the CHANGELOG for more.
Result module now adheres to Rust's naming and drops id, code and json support.
Success is now OkFailure is now ErrSwoole\middlewareSwoole\redirect() sugarSiler\Env APImap, lmap, pipe, conduit, lconcat, ljoin, filter and lfilter functionsarray_get_str, array_get_int, array_get_float and array_get_bool.Swoole\http2 to create HTTP/2 enabled serversconcatlazy constructor and call_user_func alias callRoute\DID_MATCH.resource and files are now lazy-loaded.Introducing:
Route\did_match(): bool
Now it's returning the Servers for both HTTP and WebSocket instead of Closures and not starting them internally.
PSR-15 support wrapping Zend's Diactoros and Stratigility.
All dependencies updated to its latest stable version. The major difference:
SapiEmitter on DiactorosexecuteQuery APISuggestions from @Sinevia applied, there are two more aways to route.
The any function matches any HTTP method
and the class_name function that works like Controller in other frameworks.
Also, thanks again to @IvanDelsinne for feedback on this follow up.
This is the release after https://github.com/leocavalcante/siler/issues/106 was closed.
Almost one year later, I think Siler is ready to rock on stable production-grade projects.
How can I help you explore Laravel packages today?