abenevaut / bedrock-console
Bedrock console cli.
Installs: 33
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/abenevaut/bedrock-console
Requires
- php: >=7.1
- doctrine/dbal: ^2.9
- inpsyde/wp-cli-site-url: ^3.0
- symfony/console: ^4.4
- symfony/process: ^4.4
- wp-cli/wp-cli: ^2.4
- wp-cli/wp-cli-bundle: ^2.4
This package is auto-updated.
Last update: 2022-04-11 02:49:53 UTC
README
Installation
CURRENTLY, THERE IS NO STABLE REVISION
composer require abenevaut/bedrock-console
Now you can execute the following command
vendor/bin/console
serve command
To use serve
command, trigger installation process. The following command will create a server.php a your project root.
vendor/bin/console serve --install
Now you can use PHP built-in server for bedrock
vendor/bin/console serve
vendor/bin/console serve localhost
vendor/bin/console serve localhost 9000
vendor/bin/console serve -h
Add commands
- Have a look on Symfony console documentation to create new commands.
- All commands have to heritate from
src/Command.php
to use the container
- All commands have to heritate from
- Add composer psr-4 autoloading to load automatically your customs commands
- Edit
config/application.php
then add a global array recording all you customs commands, like follow :
$commands = [
\PSR4\NAMESPACE\MyCustomCommand::class,
];