Download the PHP package lotfio/aven without Composer
On this page you can find all versions of the php package lotfio/aven. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package aven
:tractor: Robust PHP router :tractor:
:fire: Introduction :
Aven (ayven) is a robust and flexible PHP router For PHP7 and newer versions.
:pushpin: Requirements :
- PHP 7.2 or newer versions
- PHPUnit >= 8 (for testing purpose)
:rocket: Installation & Use :
:pencil2: Usage :
1- Quick use :
2- Available routes :
GET
,POST
,ANY
,PUT
,DELETE
,HEAD
3- named routes :
4- redirects :
$router->redirect(string $routeName, array $params = [], int $httpcode = 301)
5- route parameters :
- you can use both parenthesis or curly braces for parameters
- predefind parameters:
:int
,:integer
,:num
,:numeric
,:number
= \d+:str
= \w+:alpha
= [A-z]+
6- custom route parameters :
->regex(array $params)
7- route groups :
$router->group(string $uri,callable $callback, ?string $groupName)
- you can have as many nested groups as you want
8- route namespaces :
$router->namespace(string $uri,callable $callback)
- you can have as many nested namespaces as you want
9- additionl routes :
$router->form(string $uri, $callback|$class, ?array $override, ?string $routeName)
10- additionl routes :
$router->crud(string $uri, string $class, ?array $only, ?string $routeName)
:computer: Contributing
- Thank you for considering to contribute to Package. All the contribution guidelines are mentioned here.
:page_with_curl: ChangeLog
- Here you can find the ChangeLog.
:beer: Support the development
- Share Package and lets get more stars and more contributors.
- If this project helped you reduce time to develop, you can give me a cup of coffee :) : Paypal. 💖
:clipboard: License
- Package is an open-source software licensed under the MIT license.
All versions of aven with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.2
The package lotfio/aven contains the following files
Loading the files please wait ....