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-11-13 18:29:50 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');