Download the PHP package inroutephp/console without Composer
On this page you can find all versions of the php package inroutephp/console. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download inroutephp/console
More information about inroutephp/console
Files in inroutephp/console
Package console
Short Description Inroute compilation tool for the command line.
License Unlicense
Homepage https://github.com/inroutephp/console
Informations about the package console
inroutephp/console
Inroute compilation tool for the command line.
Installation
The inroute console component should be installed as a development dependency. To execute a compiled router however the inroute runtime must be avaliable. That leaves us with a two step installation process:
Build configuration
By default the build configuration is read from a file named inroute.json
in
the current working directory. A simple configuration file can look like:
The following is a list of possible configuration values:
autoload
Path to project autoloader. Defaults to vendor/autoload.php
.
container
The classname of a compile time container. Only needed if compile time objects have dependencies that needs to be injected.
bootstrap
Classname of compile time bootstrap script. Should normally not be needed.
source-dir
Directory to scan for annotated routes. Relative to current working dir.
source-prefix
psr-4 namespace prefix to use when scanning directory. Found .php
files are
assumed to contain classes with this namespace prefix.
source-classes
Array of source classnames, use instead of or togheter with directory scanning.
ignore-annotations
Array of annotations to ignore during compilation.
route-factory
Classname of route factory, default should normally be fine.
compiler
Classname of compiler, default should normally be fine.
core-compiler-passes
Array of core compiler passes, default should normally be fine.
compiler-passes
Array of custom compiler passes.
code-generator
The code generator to use, default should normally be fine.
target-filename
Path to router dump destination. If this file exists it will be overwritten.
target-namespace
The namespace of the generated router (defaults to no namespace).
target-classname
The classname of the generated router (defaults to HttpRouter
).
Usage
Building
To build project router simply run
For mor information
Debugging
To view debug information on the generated router run
For more conprehensive output try
All versions of console with dependencies
inroutephp/inroute Version ^1.1
doctrine/annotations Version ^1.6
symfony/console Version ^5
zircote/swagger-php Version ^3