isleshocky77/suitecrm-modules-installer

安装 SuiteCrm 模块的 Composer 类型

v1.0.0 2019-03-19 19:34 UTC

This package is auto-updated.

Last update: 2024-09-16 22:26:57 UTC


README

这是 suitecrm-modules-installer。这是一个 composer 插件,允许您将 SuiteCrm 模块作为 composer 依赖项包含。

用法

附加模块

{
  "name": "my/add-on-module",
  "description": "Add-on module for doing something cool",

  "type": "suitecrm-module",

  "require": {
    "isleshocky77/suitecrm-modules-installer": "^1.0"
  }
}

项目

您现在可以将依赖项包含到 SuiteCrm 项目中。

这目前可以通过两种方式之一完成,很快将通过三种方式之一完成。

命令行

composer require my/add-on-module

更新 composer.json

手动将您的包添加到 composer.json

{
  "name": "salesagility/suitecrm",
  "description": "SuiteCRM",
  [..]
  "require": {
    "php": ">=5.6.0",
    [..]
    "soundasleep/html2text": "~0.5",
    "consolidation/robo": "^1.4",
    "my/add-on-module": "^1.0"
  },
  [..]
}

添加 composer.ext.json (尚未提供)

如果,并且在通过 composer-merge-plugin 通过 PR#6950 将项目添加后,您只需将一个名为 composer.ext.json 的文件添加到根路径。

{
  "require": {
    "my/add-on-module": "^1.0"
  }
}

然后运行

composer update --lock

许可证

suitecrm-modules-installer is licensed under GPLv3.

suitecrm-modules-installer is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

suitecrm-modules-installer is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with suitecrm-modules-installer.  If not, see <https://gnu.ac.cn/licenses/>.