Download the PHP
package extalion/routing without Composer
On this page you can find all versions of the php package
extalion/routing. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
Vendor extalion Package routing Short Description eXtalion routing component License
MIT
FAQ
After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.
Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.
In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories.
In this case some credentials are needed to access such packages.
Please use the auth.json textarea to insert credentials, if a package is coming from a private repository.
You can look here for more information.
Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
To use Composer is sometimes complicated. Especially for beginners.
Composer needs much resources. Sometimes they are not available on a simple webspace.
If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
It's a class which represent the request method and Uri path. Also it store a knowledge what controller class create to handle the request.
where:
{Method} is a class name which represent request method. Available classnames/request methods:
Get,
Post,
Put,
Update,
Delete,
$uriPath is a valid Uri path which can contain parameters (see example),
$fullnameControllerClass self explanatory name :-)
Example:
Route DELETE:/user/delete/{id} has a parameter id and that means this route will match to this requests (all of them has DELETE method request):
but request example.com/user/delete/all will be match to route DELETE:/user/delete/all. You don't have to care about order of defining routes, constant path are always before "parameters" path.
If your controller class has any dependencies you can put them to array as third parameter:
To extract parameters from Uri path call the method Route::extractParameters($uriPath):
You can validate your parameters during extracting them from path:
New request method route
If you want to add new request method route you have to create new class and extends \eXtalion\Component\Routing\Route.
Router (\Basic)
It's a class which handle a \Psr\Http\Message\RequestInterface and return Route which match to requested method and Uri path.
Example
If you try to add two routes which match exactly to the same Uri Path, \eXtalion\Component\Routing\Exception\RouteConflict will be thrown.
Composer command for our command line client (download client)This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free.Standard composer command
The package extalion/routing contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.