PHPackages                             thienpham/contacts - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. thienpham/contacts

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

thienpham/contacts
==================

Hỗ trợ gửi nội dung liên hệ đến email admin

1.0.2(7y ago)5431MITHTMLPHP ^7.1.3

Since Jul 24Pushed 7y ago1 watchersCompare

[ Source](https://github.com/chithien175/contact-form-laravel)[ Packagist](https://packagist.org/packages/thienpham/contacts)[ RSS](/packages/thienpham-contacts/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (8)Versions (4)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/313357b0ed82881899da2c0e6620dbe62f86ec45b10701b9dad3d5eadbbebd95/68747470733a2f2f706f7365722e707567782e6f72672f746869656e7068616d2f636f6e74616374732f762f737461626c65)](https://packagist.org/packages/thienpham/contacts)[![Total Downloads](https://camo.githubusercontent.com/5d8cde9d7deb819d937c7bc8dcd500c5aa0fbdcb6f1e46fbfdfa5bd64c3fbeed/68747470733a2f2f706f7365722e707567782e6f72672f746869656e7068616d2f636f6e74616374732f646f776e6c6f616473)](https://packagist.org/packages/thienpham/contacts)[![Latest Unstable Version](https://camo.githubusercontent.com/67ba2991c4688c5404a611a14adfead78571b1ca66d54ad9016272f9c006b8cd/68747470733a2f2f706f7365722e707567782e6f72672f746869656e7068616d2f636f6e74616374732f762f756e737461626c65)](https://packagist.org/packages/thienpham/contacts)[![License](https://camo.githubusercontent.com/1dedad8e9ebbb003ca95224974bf503b5793013554820e43751f7fb6d9f90d34/68747470733a2f2f706f7365722e707567782e6f72672f746869656e7068616d2f636f6e74616374732f6c6963656e7365)](https://packagist.org/packages/thienpham/contacts)

Contacts Form for Laravel
=========================

[](#contacts-form-for-laravel)

Giới thiệu
----------

[](#giới-thiệu)

Đây là gói ứng dụng dành cho Laravel:

- Tạo mẫu form liên hệ nhanh chóng.
- Sử dụng captcha đơn giản cho form liên hệ.
- Gửi thông tin liên hệ tới email admin.

Yêu cầu
-------

[](#yêu-cầu)

- [Laravel &gt;= 5.6](https://laravel.com/docs/5.6/installation)

Cài đặt
-------

[](#cài-đặt)

- Bạn sẽ cần [Composer](https://getcomposer.org/) để cài đặt gói này, sau đó chạy:

```
    $ composer require thienpham/contacts
```

- Sau khi cài đặt thành công, sao chép đoạn mã sau vào file `.env` để cấu hình email.
- Lưu ý:
- Nhập `MAIL_CONTACT_CAPTCHA=TRUE` để sử dụng Captcha.
- Nhập `MAIL_USERNAME` và `MAIL_PASSWORD` chính xác để quá trình gửi mail thành công.

```
    MAIL_DRIVER=smtp
    MAIL_HOST=smtp.googlemail.com
    MAIL_PORT=465
    MAIL_USERNAME=demo@gmail.com
    MAIL_PASSWORD=
    MAIL_ENCRYPTION=ssl
    MAIL_FROM_ADDRESS=demo@gmail.com
    MAIL_FROM_NAME="Demo From Name"
    MAIL_TO_ADDRESS=demo@gmail.com
    MAIL_CONTACT_CAPTCHA=TRUE
```

Thực hiện lệnh `php artisan config:clear` để làm mới cấu hình mail

Sử dụng
-------

[](#sử-dụng)

- Áp dụng `action` và `method` sau vào `from` liên hệ:

```
    action="{{ route('store.thienpham.contact') }}" method="post"
```

- Sử dụng `renderCheckCaptcha(env('MAIL_CONTACT_CAPTCHA'))` nếu dùng Captcha

Code mẫu form liên hệ:
----------------------

[](#code-mẫu-form-liên-hệ)

- Vào đường dẫn bên dưới để xem code mẫu form liên hệ:

```
    root/vendor/thienpham/contacts/resources/views/contact-form-template.php
```

Tùy chỉnh giao diện gửi email (Overwrite)
-----------------------------------------

[](#tùy-chỉnh-giao-diện-gửi-email-overwrite)

- Chạy lệnh sau để nhân bản giao diện vào `resources/views`

```
    $ php artisan vendor:publish
```

- Để tùy chỉnh giao diện email, sửa file `email-template` theo đường dẫn sau:

```
    resources/views/vendor/thienpham-contacts/email-template.blade.php
```

Hình ảnh
--------

[](#hình-ảnh)

[![alt text](https://camo.githubusercontent.com/e9e6aa7f285f0429b42985e8fe953b98a2552a40d6ce5c4f7dd2e92a37891a1d/68747470733a2f2f7777772e757073696575746f632e636f6d2f696d616765732f323031392f30332f30352f666f726d312e6d642e706e67 "thienpham/contacts")](https://camo.githubusercontent.com/e9e6aa7f285f0429b42985e8fe953b98a2552a40d6ce5c4f7dd2e92a37891a1d/68747470733a2f2f7777772e757073696575746f632e636f6d2f696d616765732f323031392f30332f30352f666f726d312e6d642e706e67)[![alt text](https://camo.githubusercontent.com/f4aa1661546eb20f9f239ecad95dc7252978140e72060d4780788138800523c7/68747470733a2f2f757068696e686e68616e682e636f6d2f696d616765732f323031382f30372f31342f416e68636875704d616e68696e68323031382d30372d31346c756330382e33302e33352e706e67 "thienpham/contacts")](https://camo.githubusercontent.com/f4aa1661546eb20f9f239ecad95dc7252978140e72060d4780788138800523c7/68747470733a2f2f757068696e686e68616e682e636f6d2f696d616765732f323031382f30372f31342f416e68636875704d616e68696e68323031382d30372d31346c756330382e33302e33352e706e67)

Giấy phép
---------

[](#giấy-phép)

- Gói **thienpham/contacts** là phần mềm nguồn mở được cấp phép theo [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~112 days

Total

3

Last Release

2675d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20869551?v=4)[Thien Pham](/maintainers/chithien175)[@chithien175](https://github.com/chithien175)

---

Top Contributors

[![chithien175](https://avatars.githubusercontent.com/u/20869551?v=4)](https://github.com/chithien175 "chithien175 (35 commits)")

---

Tags

laravelcontact

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/thienpham-contacts/health.svg)

```
[![Health](https://phpackages.com/badges/thienpham-contacts/health.svg)](https://phpackages.com/packages/thienpham-contacts)
```

###  Alternatives

[laravel/laravel

The skeleton application for the Laravel framework.

84.6k62.4M1.0k](/packages/laravel-laravel)[unopim/unopim

UnoPim Laravel PIM

10.5k2.2k](/packages/unopim-unopim)[nasirkhan/laravel-starter

A CMS like modular Laravel starter project.

1.4k2.7k](/packages/nasirkhan-laravel-starter)[statamic/statamic

Statamic

829179.5k](/packages/statamic-statamic)[typicms/base

A modular multilingual CMS built with Laravel, enabling developers to manage structured content like pages, news, events, and more.

1.6k20.4k](/packages/typicms-base)[codewithdennis/larament

Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.

3911.7k](/packages/codewithdennis-larament)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
