Componette

Componette

adbrosaci

adbrosaci / worker

Simple interactive worker for doing hard jobs. Inspired by https://github.com/symfony/maker-bundle

download-cloud-line composer require adbros/worker

Worker

Simple interactive worker for doing hard jobs. Inspired by symfony/maker-bundle.


Build Status Code coverage Licence Downloads this Month Downloads total Latest stable

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>]

Examples

ormJob

ormJob

presenterJob

presenterJob

No release at this moment. Try to create first one.

bar-chart-fill

Statistics

download-cloud-fill
3763
star-fill
1
bug-fill
0
flashlight-fill
1.4y
price-tag-2-line

Badges

guide-fill

Dependencies

php (>=7.1)
nette/php-generator (^2.4 || ^3.0)
nette/utils (^2.4 || ^3.0)
symfony/console (^3.3 || ^4.0 || ^5.0)
Componette Componette felix@nette.org