mvccore / ext-request-cli
MvcCore - Extension - Request - CLI - console arguments parsing into \MvcCore\Request object.
v4.3.1
2017-12-17 19:25 UTC
Requires
- php: >=5.3.0
- mvccore/mvccore: ^4.3.1
Requires (Dev)
- php: >=5.3.0
- mvccore/mvccore: ~4.3.1@dev
This package is auto-updated.
Last update: 2024-10-13 18:17:34 UTC
README
MvcCore Request extension to parse console arguments into \MvcCore\Request object.
Installation
composer require mvccore/ext-request-cli
Usage
# equivalent to: index.php?controller=controller-name&action=action-name&id=10
php index.php -c controller-name -a action-name -id 10
PHP application Bootstrap.php
Put this patching code in very beginning of your application:
\MvcCore::GetInstance()->SetRequestClass('\\MvcCore\\Ext\\Request\\Cli');