basilicom-pimcore-plugin/participation 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

basilicom-pimcore-plugin/participation

Composer 安装命令:

composer require basilicom-pimcore-plugin/participation

包简介

Framework to help building raffles and subscriptions

README 文档

README

Developer info: Pimcore at basilicom

Synopsis

This Pimcore http://www.pimcore.org plugin simplifies building a site with participations, e.g. raffles.

Method of Operation

A user visiting the /participation-demo-simple page/url gets a form (with a captcha). Upon completing the captcha, filling out the form and submitting it, a new Participation object (key is constructed using time() and a random value) is added to the /participation object folder and an email /participation-confirmation is send to the user. If the User clicks on the confirmation link in the received email, his Participation object is retrieved by looking up the confirmation code and setting the objects isConfirmed property to true. Notes are created the the objects in order to document the individual steps.

The users IP is recorded during object creation / confirmation. Prior to sending the email, the participation object is updated with an extra normalized domain part of the users email address. These properties can later be used for additional/optional fraud detection/prevention.

Motivation

Implementing raffles with participations is a recurring tedious task - prone to making many errors. This plugin tries to use as much "Best Practices" and standard Pimcore features as possible to simplify future implementations.

Installation

Add "basilicom-pimcore-plugin/participation" as a requirement to the composer.json in the toplevel directory of your Pimcore installation.

Example:

{
    "require": {
        "basilicom-pimcore-plugin/participation": "~1.0"
    }
}

Installing the plugin via the Pimcore Extension Manager performs the following steps:

  • an object class Participation is created
  • an object folder /participation is created
  • a predefined email document type Participation Confirmation is created
  • a sample email document /participation-confirmation is created
  • a demo document /participation-demo-simple is created
  • a static route participationConfirmationCheck is created for @/confirm/(.*)@

Press the "Configure" button of the Participation plugin from within the Extension Manager and set the config file properties.

Hint: Set demoEnabled to 1 if you want to test the /participation-demo-simple.

You need to apply for / configure a Google Recaptcha widget integration and configure sitekey and secret in the plugin configuration file.

Refer to https://developers.google.com/recaptcha/intro for info on Google Recaptcha.

Customization

The Participation object class can be modified as long as the email field and the fields of the Meta section are kept.

You can change the static route participationConfirmationCheck as long as you keep the name and the code parameter intact.

Change the target folder for storing the Participations by altering the objectFolderPath configuration option.

Change the email document used by altering the emailDocumentPath configuration option.

Provide custom participation confirmation success/failure pages by changing the configuration options confirmationSuccessUrl and confirmationFailureUrl.

For further customization, extend the Manager class and (optionally) one or more of the Confirmation and ReCaptcha classes or implement the corresponding interfaces. You need to register your new Manager class by specifying the full class name in the plugin configuration file.

API Reference

The following interfaces are provided:

  • \Participation\ManagerInterface
  • \Participation\ConfirmationInterface
  • \Participation\CaptchaInterface

Tests

  • none

Todo

  • Add an Ajax-based form demo.
  • Add re-usable AreaBricks
  • Implement the possibility to use multiple/different participations in one pimcore installation
  • Implement IP-based throtteling (via leaky bucket)
  • Implement email-domain-based throtteling (via leaky bucket)
  • Add Application Log logging

Contributors

License

  • BSD-3-Clause

basilicom-pimcore-plugin/participation 适用场景与选型建议

basilicom-pimcore-plugin/participation 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 134 次下载、GitHub Stars 达 0, 最近一次更新时间为 2015 年 12 月 10 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「pimcore」 「raffle」 「Participation」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 basilicom-pimcore-plugin/participation 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 basilicom-pimcore-plugin/participation 我们能提供哪些服务?
定制开发 / 二次开发

基于 basilicom-pimcore-plugin/participation 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-12-10