skyline / route-annotation-compiler
Installs: 79
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/skyline/route-annotation-compiler
Requires
- php: ^8
- skyline/compiler: ^8
- skyline/exposed-symbols: ^8
- skyline/router: ^8
Requires (Dev)
- phpunit/phpunit: ^9
- skyline/modules: ^8
This package is auto-updated.
Last update: 2025-10-08 03:11:36 UTC
README
Adding this package to your Skyline Application extends its compilation to read routing information directly from the annotations of action controllers.
class MyActionController extends AbstractActionController { /** * My first action * * @route literal /direct-uri-to-this-action * @route regex %^/my\-(1|2|3)\-action$%i * * @render html-render */ public function myAction() { // ... } }
The @route annotation declares how to reach this action. Using literal or regex to describe a request URI. You must declare at least a URI annotation.
Additional declare a specific render to use.
Putting annotations into class doc comment makes it valid for all actions inside the class.