konafets/sylius-installer

Installs Sylius and create plugin skeleton

dev-develop 2018-11-19 08:20 UTC

This package is auto-updated.

Last update: 2019-12-19 14:59:46 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License Build Status

Overview

Starting with Sylius and plugin development I read the guide on https://docs.sylius.com/en/latest/plugins/plugin-development-guide/naming.html about how to renaming the dummy plugin. So I have to do this over and over again ... and not only me ... everybody who wants to create a custom plugin has to do this boring task.

No way!

68747470733a2f2f6172726f62612d69742e64652f696d672f6175746f6d6174652e6a706567

The command does the following things:

  • Installs the Sylius Plugin Skeleton to a custom directory
  • Adjust the composer.json
  • Renaming all the things
  • Installing the assets (optional)
  • Creates an SQLite database (optional)
  • Loads the Fixtures to the database (optional)
  • Starts the internal server (optional)

Installation

$ composer global require konafets/sylius-installer 

Synopsis

Description:
  Creates the plugin skeleton

Usage:
  new:plugin [options]

Options:
  -d, --description=DESCRIPTION     The description of your plugin
  -a, --author=AUTHOR               Author name of the plugin
      --dev                         Installs the latest "development" release
  -f, --force                       Forces install even if the directory already exists
  -h, --help                        Display this help message
  -q, --quiet                       Do not output any message
  -V, --version                     Display this application version
      --ansi                        Force ANSI output
      --no-ansi                     Disable ANSI output
  -n, --no-interaction              Do not ask any interactive question
  -pn, --package-name=PACKAGE-NAME  Name of the package
  -v|vv|vvv, --verbose              Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug 

Usage

$ cd Development/
$ sylius new:plugin