定制 baxtian/suitecrm-env 二次开发

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

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

baxtian/suitecrm-env

最新稳定版本:0.8.4

Composer 安装命令:

composer require baxtian/suitecrm-env

包简介

Manage Suitecrm manifest file

README 文档

README

Harvest files from a SuiteCRM directory into a development module an create an installable module.

This library add a composer enviroment that reads a manifest.php file and harvest all these files from a SuiteCRM directory. The main idea is allow to develop directly in the SuiteCRM directory and copy all the changes at the end of the process.

Prerequisites

You need a CRM directory and a module directory. The module has to have the manifest.php.

Also your system requires to have composer installed.

Install the library

In case your module doesn't have a composer.json create it with these data

{
	"name": "workspace/module_name",
	"version": "1.1.1"
}

Now run the next command

composer install --dev baxtian/suitecrm-dev

Add to the composer.json file the scripts and archive elements.

{
	.
	.
	.
	"scripts": {
		"version": "SuitecrmEnv\\App::increment",
		"harvest": "SuitecrmEnv\\App::harvest",
		"dist": "composer archive --format=zip",
		"release": [
			"@version",
			"@dist"
		]
	},
	"archive": {
		"exclude": [
			"/.vscode/",
			"/.env",
			"/.env.example",
			"/vendor/",
			".gitignore",
			"composer.*",
			"README.md",
			"*.zip"
		]
	}
	.
	.
	.
}

And finally add or update the .env file to have the path to your CRM directory.

SUITECRM_PATH=/path/to/your/crm

How to use this?

  • Do your changes to the files directly in the CRM.
  • If you created a module and modified it with Studio remember to copy the files from custom/Extension/modules/your_module/Ext/metadata to modules/your_module/metadata
  • If you added a new file inside a module, your manifest will copy the entire directory and will ask if you want to copy the new file.
  • If you added a new file outside a module you have to add the definition inside manifest.php to allow suitecrm-env to copy the new file or files. Read the documentation about the manifest.

When the changes are ready, run this command

composer harvest

This will copy any changes in the CRM to your module.

To create an installation file run

composer dist

Also to change the version and the timestamp update the version field in composer.json and run the command

composer release

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2023-08-05