Download the PHP package bolzer/symfony-typescript-routes without Composer
On this page you can find all versions of the php package bolzer/symfony-typescript-routes. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download bolzer/symfony-typescript-routes
More information about bolzer/symfony-typescript-routes
Files in bolzer/symfony-typescript-routes
Download bolzer/symfony-typescript-routes
More information about bolzer/symfony-typescript-routes
Files in bolzer/symfony-typescript-routes
Vendor bolzer
Package symfony-typescript-routes
Short Description A service to generate typescript paths from the router of an symfony application
License Apache-2.0
Package symfony-typescript-routes
Short Description A service to generate typescript paths from the router of an symfony application
License Apache-2.0
Please rate this library. Is it a good library?
Informations about the package symfony-typescript-routes
Symfony-Typescript-Routes
Description
This Extension for the symfony framework provides a Generator which can be used - after registering the provided extension in your symfony application - in your code to generate typescript code from the application routes. These generated routes can be used in your typescript code to reference the symfony application routes.
Installation
Example
-
Registering the Extension
- Write something to create a path.ts file with the content from the service. Like a Command!
The Output may look something like this
And can be used like this
Conventions
- Query and Route Params must be provided as strings to the Typescript Functions if no requirement at the route is defined. Only digit requirements and either A or B requirements are supported.
- All generated path functions in typescript will have a "path_" prefix.
Executing Tests
Test Coverage
All versions of symfony-typescript-routes with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.2
symfony/config Version ^v7.0
symfony/dependency-injection Version ^v7.0
symfony/http-kernel Version ^v7.0
symfony/routing Version ^v7.0
symfony/validator Version ^v7.0
symfony/yaml Version ^v7.0
symfony/config Version ^v7.0
symfony/dependency-injection Version ^v7.0
symfony/http-kernel Version ^v7.0
symfony/routing Version ^v7.0
symfony/validator Version ^v7.0
symfony/yaml Version ^v7.0
The package bolzer/symfony-typescript-routes contains the following files
Loading the files please wait ....