gskema/prestashop-installer

PrestaShop应用程序安装程序。

2.2.0 2017-05-29 20:31 UTC

This package is auto-updated.

Last update: 2024-09-06 05:12:27 UTC


README

Build Status Join the chat at https://gitter.im/gskema/prestashop-installer Packagist SensioLabsInsight GitHub release

这是一个命令行工具,可以将PrestaShop下载并解压到指定的目录。可以安装替代的演示图片。

灵感来源于laravel/installer

用法

要在您的系统上安装此工具,请运行

composer global require "gskema/prestashop-installer=~2.0"

请确保将~/.composer/vendor/bin~/.config/composer/vendor/bin目录添加到您的PATH中,以便系统可以找到prestashop可执行文件。

警告!

安装多个全局composer工具可能会导致依赖冲突。您可能需要单独安装全局工具,并使用bin-dir composer.json选项(如果您想避免依赖冲突)。

安装完成后,您可以使用以下命令创建新的PrestaShop安装

Usage:
  prestashop new [<folder>] [--release=<release>] [--fixture=<fixture>]

Options:
  --release  Sets which PrestaShop release archive to download.
             Some examples of values: 1.6.1.3, 1.6.0.9, 1.6.1.0-rc4, 1.5.6.3
  --fixture  Overrides demo data images: product, category, banner images with specified fixture images.
             Available values: [starwars, got, tech]

Examples:
  prestashop new                                       // Downloads latest PrestaShop to current directory
  prestashop new shop1                                 // Downloads latest PrestaShop to ./shop1 directory
  prestashop new shop1 --release=1.6.0.9               // Downloads PrestaShop 1.6.0.9 to ./shop1 directory
  prestashop new shop1 --release=1.6.0.9 --fixture=got // Downloads PrestaShop 1.6.0.9 to ./shop1 directory
                                                       // and replaces demo data images
                                                       // with Game of Thrones images

示例截图

星球大战

Fixture - Star Wars

权力的游戏

Fixture - Game of Thrones

科技 - 电子

Fixture - Tech