konafets / sylius-installer
安装Sylius并创建插件骨架
dev-develop
2018-11-19 08:20 UTC
Requires
- ext-json: *
- anahkiasen/underscore-php: ^2.0
- mikey179/vfsstream: ^1.6
- nadar/php-composer-reader: ^1.0
- symfony/console: ^4.1
- symfony/filesystem: ^4.1
- symfony/finder: ^4.1
- symfony/process: ^4.1
Requires (Dev)
- phpspec/phpspec: ^5.1
- phpunit/phpunit: ^7.4
This package is auto-updated.
Last update: 2019-12-19 14:59:46 UTC
README
概述
从Sylius和插件开发开始,我阅读了https://docs.sylius.com/en/latest/plugins/plugin-development-guide/naming.html上的指南,关于如何重命名虚拟插件。所以我不得不一遍又一遍地做这件事...而且不只是我...任何想要创建自定义插件的人都必须做这项无聊的任务。
不行!
该命令执行以下操作
- 将Sylius插件骨架安装到自定义目录
- 调整composer.json
- 重命名所有内容
- 安装资产(可选)
- 创建SQLite数据库(可选)
- 将数据填充到数据库(可选)
- 启动内部服务器(可选)
安装
$ composer global require konafets/sylius-installer
概要
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
用法
$ cd Development/
$ sylius new:plugin