delboy1978uk/bone-contact
Composer 安装命令:
composer require delboy1978uk/bone-contact
包简介
Contact package for Bone Framework
README 文档
README
Contact package for Bone Mvc Framework
installation
Use Composer
composer require delboy1978uk/bone-contact
usage
Simply add to the config/packages.php
<?php // use statements here use Bone\Contact\ContactPackage; return [ 'packages' => [ // packages here..., ContactPackage::class, ], // ... ];
Create config/bone-contact.php to your config folder, and tweak as required:
<?php return [ 'bone-contact' => [ 'sendThanksEmail' => true, 'notificationEmailAddress' => 'your-email-address@example.com', 'emailLayout' => 'contact::mail-layout', 'formLayout' => 'layouts::bone', 'adminLayout' => 'layouts::admin', 'formClass' => \Bone\Contact\Form\ContactForm::class, 'entityClass' => \Bone\Contact\Entity\Contact::class, 'storeInDb' => true, 'adminPages' => true, ], ];
If you have set storeInDb true then you will need to run db migrations.
bone migrant:diff
bone migrant:migrate
bone migrant:generate-proxies
You can reach the contact page by browsing to /contact. You can add a custom class for the form which will
be called from the Container, or a new one instantiated if not.
You can reach the admin panel at /admin/messages, which currently only has session auth security (that will change)
overriding view files
Add to your config/views.php:
return [ 'views' => [ // other views here 'contact' => 'path/to/replacement/views', ], ];
delboy1978uk/bone-contact 适用场景与选型建议
delboy1978uk/bone-contact 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 14 次下载、GitHub Stars 达 0, 最近一次更新时间为 2020 年 11 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 delboy1978uk/bone-contact 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 delboy1978uk/bone-contact 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-11-23