melisplatform/melis-cms-prospects
Composer 安装命令:
composer require melisplatform/melis-cms-prospects
包简介
Melis Platform prospects module
README 文档
README
MelisCmsProspects provides a full Prospect system for Melis Platform, including templating plugins.
Getting Started
These instructions will get you a copy of the project up and running on your machine.
This Melis Platform module is made to work with the MelisCms.
Prerequisites
You will need to install melisplatform/melis-cms in order to have this module running.
This will automatically be done when using composer.
Installing
Run the composer command:
composer require melisplatform/melis-cms-prospects
Database
Database model is accessible on the MySQL Workbench file:
/melis-cms-prospects/install/sql/model
Database will be installed through composer and its hooks.
In case of problems, SQL files are located here:
/melis-cms-prospects/install/sql
Tools & Elements provided
- Prospects Tool
- Themes Tool
- Melis Templating Prospect Plugin (contact form & management)
- Dashboard item for prospects registration overview
Running the code
MelisCmsProspects Services
MelisCmsProspects provides many services to be used in other modules:
- MelisCmsProspects
Services to retrieve lists of prospects, prospects details and save a new prospect
File: /melis-cms-prospects/src/Service/MelisCmsProspectsService.php
// Get the service
$melisProspectsService = $this->getServiceManager()->get('MelisProspectsService');
// Get the number of prospects per month
$nb = $melisProspectsService->getProspectsDataByDate('monthly', '2017-10-04 12:00:00');
MelisCmsProspects Forms
Forms factories
All Melis CMS News forms are built using Form Factories.
All form configuration are available in the file: /melis-cms-prospects/config/app.tools.php
Any module can override or add items in this form by building the keys in an array and marge it in the Module.php config creation part.
return array(
'plugins' => array(
// MelisCmsProspects array
'melistoolprospects' => array(
// Form key
'forms' => array(
// MelisCmsProspects update form
'melistoolprospects_tool_prospects_update' => array(
'attributes' => array(
'name' => 'prospectmanager',
'id' => 'idformprospectdata',
'method' => 'POST',
'action' => '',
),
'hydrator' => 'Laminas\Hydrator\ArraySerializableHydrator',
'elements' => array(
array(
'spec' => array(
...
),
),
),
'input_filter' => array(
'pros_id' => array(
...
),
),
),
),
),
),
),
Forms elements
MelisCmsProspects provides form elements to be used in forms:
- MelisCmsProspectThemeSelect: a dropdown to select a theme
- MelisCmsProspectThemeItemSelect: a dropdown to select a theme item
Listening to services and update behavior with custom code
Most services trigger events so that the behavior can be modified.
public function attach(EventManagerInterface $events)
{
$sharedEvents = $events->getSharedManager();
$callBackHandler = $sharedEvents->attach(
'MelisCmsProspects',
array(
'meliscmsprospects_toolprospects_save_end',
),
function($e){
$sm = $e->getTarget()->getServiceManager();
$params = $e->getParams();
// Custom code
},
100);
$this->listeners[] = $callBackHandler;
}
Authors
- Melis Technology - www.melistechnology.com
See also the list of contributors who participated in this project.
License
This project is licensed under the OSL-3.0 License - see the LICENSE.md file for details
melisplatform/melis-cms-prospects 适用场景与选型建议
melisplatform/melis-cms-prospects 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 4.22k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2016 年 10 月 05 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「zf2」 「module」 「cms」 「melis」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 melisplatform/melis-cms-prospects 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 melisplatform/melis-cms-prospects 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 melisplatform/melis-cms-prospects 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
LosLog provides some log utility
GraphQL authentication for your headless Craft CMS applications.
EdpModuleLayouts is very simple Laminas module for making module-specific layouts insanely easy.
Set Links with a specific language parameter
Supercharged text field validation.
Zend Framework module to leverage the symfony dependency injection container
统计信息
- 总下载量: 4.22k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 11
- 依赖项目数: 2
- 推荐数: 2
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2016-10-05