lopzy/contact
Composer 安装命令:
composer require lopzy/contact
包简介
This will send email to admin and save contact query in database
README 文档
README
Lopzy Contact
This package provides functionality for handling "Contact Us" form submissions. It saves the contact query to the database and sends an email to the address specified in the configuration file (config/contact.php).
Installation
To install the package, run the following command:
composer require lopzy/contact:dev-main
Configuration
After installing the package, you need to publish the configuration file. Run the following command:
php artisan vendor:publish --provider="Lopzy\Contact\ContactServiceProvider"
This will create a config/contact.php file where you can specify the email address that will receive contact form submissions.
Next, run the migration to create the necessary database table for storing contact queries:
php artisan migrate
Usage
To use the contact form, include the following routes in your web.php file:
use Lopzy\Contact\Http\Controllers\ContactController; Route::get('contact', [ContactController::class, 'index']); Route::post('contact', [ContactController::class, 'send']);
Sending Data
When submitting the contact form, the following fields should be sent:
name: The name of the senderemail: The email address of the sendermessage: The message from the sender
The data will be saved to the database, and an email will be sent to the address specified in the config/contact.php file.
License
This package is open-sourced software licensed under the MIT license.
Contributing
Contributions are welcome! Please submit a pull request or open an issue to discuss any changes.
Support
For any issues or questions, please open an issue on GitHub.
This README provides all the necessary information for installing, configuring, and using the package, as well as contributing and finding support.
lopzy/contact 适用场景与选型建议
lopzy/contact 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1 次下载、GitHub Stars 达 2, 最近一次更新时间为 2024 年 10 月 19 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 lopzy/contact 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 lopzy/contact 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 17
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-10-19