baxtian/suitecrm-env
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
baxtian/suitecrm-env 适用场景与选型建议
baxtian/suitecrm-env 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 113 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 08 月 05 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 baxtian/suitecrm-env 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 baxtian/suitecrm-env 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 113
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2023-08-05