定制 byng/pimcore-composer-installer 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

byng/pimcore-composer-installer

Composer 安装命令:

composer require byng/pimcore-composer-installer

包简介

README 文档

README

Installs a given version of Pimcore to your configured document-root-path via Composer. The main goal of this package is to make it easier to ramp developers up onto a Pimcore project, and make it easier to set up Pimcore projects. It achieves this by ensuring that you don't have to commit Pimcore to your project's repository, and automates the task of downloading, extracting, and placing the Pimcore files in your project.

Usage:

Two config entries are required in your project's composer.json file:

  • document-root-path: This is the Pimcore web-root, i.e. where index.php will be, and where files will be served from.
  • pimcore-version: This is the exact Pimcore version that you want to use. This cannot be part of your project's required dependencies because the version downloaded by Composer would clash with the Pimcore autoloader.

You must then also specify the installer as post-install-cmd and post-update-cmd scripts.

For example:

{
    ...
    "config": {
        "document-root-path": "./web",
        "pimcore-version": "3.1.1"
    },
    "require": {
        "byng/pimcore-composer-installer": "^1.0"
    },
    "scripts": {
        "post-install-cmd": [
            "Byng\\Pimcore\\Composer\\Installer::install"
        ],
        "post-update-cmd": [
            "Byng\\Pimcore\\Composer\\Installer::install"
        ]
    },
    ...
}

The Installer class has methods for installing individual components, this makes it very easy to tailor the installation to your project's needs. If you are planning on using these methods, make sure you first always called the download method, all of the install methods will need it to have been called first by Composer.

Note: This plugin will overwrite some files without warning. If you have modified default Pimcore code then you will more than likely lose it. We recommend extending the Pimcore code to augment the behaviour (this also makes it easier to upgrade Pimcore in the future!)

License

MIT

统计信息

  • 总下载量: 3.21k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 4
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-05-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固