netglue/ng-contact
最新稳定版本:0.1.2
Composer 安装命令:
composer require netglue/ng-contact
包简介
ZF2 Module providing a simple re-usable contact form for a website
README 文档
README
First of all, this module was adapted from a module written by Matthew Weier O'Phinney which you can find on github at weierophinney/PhlyContact
The main differences is that the controller, on successful submission does nothing except trigger an event. The reason for this is because I needed an excuse to learn a bit about the ZF2 Event Manager and I thought that it would be neat to be able to plug in observers for various tasks that could accompany the submission of a contact form, for example, detailed logging, storing messages to a database or file perhaps and of course beaming out email messages.
This is the first stand-alone module I've put together with ZF2 so sorry if it's a bit screwy. It seems a bit configuration heavy to me and I'm not yet sure if that's just something I have to live with or I'm doing things wrong!
Installation
By far the easiest thing to do is install with composer by adding
"netglue/ng-contact": "dev-master" to the require block of your top-level composer.json file
then issue a $ php composer.phar update to pull in the module to your vendor directory (Assuming
you've setup a standard ZF2 app like the Skeleton App).
Bear in mind that you'll probably also need to add "minimum-stability":"dev" to your top-level composer file as this and none of the package dependencies are 'stable'
This will also install the dependencies. Once installed, in the config directory is a file named
module.netglue-contact.global.php.dist. copy it to your config/autoload directory and
chop the .dist off and alter to suit your needs (There's a lot of cruft in the .dist config file that you will likely need to delete. A good starting point is to simply provide valid email addresses). The config files are reasonably well documented
and theoretically, it should work out of the box without any supplemental config, but you probably won't
like the view scripts and email templates much!
Dependencies
- Zend Framework
- Net Glue ZF Extensions. This is extra library code Specifically, the HtmlToText filter is required for plain text alternatives and the Mail Transport Factory is used to configure transports.
- Net Glue Template Mail Module. This little module provides an easy way to initialise multipart email messages that use the Zend View components to render the HTML
TODO
- Implement Captchas
- Provide example configuration for altering the form to include additional fields
- Possibly alter the observer to include help for the former
- Add tests and clean up
netglue/ng-contact 适用场景与选型建议
netglue/ng-contact 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 107 次下载、GitHub Stars 达 0, 最近一次更新时间为 2012 年 11 月 22 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「form」 「zend」 「zf2」 「module」 「contact」 「netglue」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 netglue/ng-contact 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 netglue/ng-contact 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 netglue/ng-contact 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
LosLog provides some log utility
EdpModuleLayouts is very simple Laminas module for making module-specific layouts insanely easy.
Diese Contao 4 Erweiterung stellt Google reCAPTCHA V2 in Form eines neuen Formularfeldes im Formulargenerator bereit. This extension provides Google reCAPTCHA V2 in the form of a new form field in the form generator of Contao Open Source CMS.
Polyfill for mb_ereg(), mb_eregi(), mb_ereg_match(), and mb_ereg_replace*() functions; primary use case is for mbstring on Windows 7.4+
Zend Framework module to leverage the symfony dependency injection container
RCM User HTML views/pages
统计信息
- 总下载量: 107
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2012-11-22