adbros / worker
Simple interactive worker for doing hard jobs.
Installs: 15 420
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=7.4
- nette/finder: ^2.4 || ^3.0
- nette/neon: ^2.4 || ^3.0
- nette/php-generator: ^2.4 || ^3.0 || ^4.0
- nette/utils: ^2.4 || ^3.0 || ^4.0
- symfony/console: ^3.3 || ^4.0 || ^5.0 || ^6.0 || ^7.0
Requires (Dev)
README
Simple interactive worker for doing hard jobs. Inspired by symfony/maker-bundle.
Installation
composer require adbros/worker --dev
Configuration
You can create worker.php, worker.json or worker.neon in your root directory to setup default Worker options.
default worker.neon example
rootDirectory: app rootNamespace: App command: namespace: App\Commands parent: Symfony\Component\Console\Command\Command control: namespace: App\Controls controlParent: Nette\Application\UI\Control factoryParent: orm: namespace: App\Model\Orm entityParent: Nextras\Orm\Entity\Entity repositoryParent: Nextras\Orm\Repository\Repository mapperParent: Nextras\Orm\Mapper\Mapper presenter: namespace: App\Presenters parent: Nette\Application\UI\Presenter
Usage
# Generate command for symfony/console package vendor/bin/worker command [options] [--] [<name>] # Generate control with factory and template vendor/bin/worker control [options] [--] [<name>] # Generate model for nextras/orm package vendor/bin/worker orm [options] [--] [<entity> [<repository>]] # Generate presenter and default template vendor/bin/worker presenter [options] [--] [<name>]