PHPackages                             itsrafsanjani/contact - 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. itsrafsanjani/contact

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

itsrafsanjani/contact
=====================

Laravel contact us form package to send email and save to database

1.0.0(4y ago)26MITBlade

Since May 7Pushed 3y ago1 watchersCompare

[ Source](https://github.com/itsrafsanjani/contact)[ Packagist](https://packagist.org/packages/itsrafsanjani/contact)[ RSS](/packages/itsrafsanjani-contact/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

[![preview image](https://raw.githubusercontent.com/itsrafsanjani/contact/master/preview.png)](https://raw.githubusercontent.com/itsrafsanjani/contact/master/preview.png)

Contact
=======

[](#contact)

[![Latest Stable Version](https://camo.githubusercontent.com/5874276a7791b370be246a1fe7a71d8b6be80ef8a4cbac3939a88e23f9519f30/68747470733a2f2f706f7365722e707567782e6f72672f69747372616673616e6a616e692f636f6e746163742f762f737461626c65)](https://packagist.org/packages/itsrafsanjani/contact)[![Total Downloads](https://camo.githubusercontent.com/3a7473e26b0516149574160438814395a343ed38db206b834f232f1682d59b12/68747470733a2f2f706f7365722e707567782e6f72672f69747372616673616e6a616e692f636f6e746163742f646f776e6c6f616473)](https://packagist.org/packages/itsrafsanjani/contact)[![License](https://camo.githubusercontent.com/028739ce6e8887822f78b9b690e4a1e466a79bc259128f4c45850dc815638fd1/68747470733a2f2f706f7365722e707567782e6f72672f69747372616673616e6a616e692f636f6e746163742f6c6963656e7365)](https://packagist.org/packages/itsrafsanjani/contact)

A Laravel Package to create Contact Us Form Easily

Features
--------

[](#features)

- Send Email
- Save Message to Database

Requirements
============

[](#requirements)

Laravel 5.7+ Tested on Laravel 8

Installation Steps
------------------

[](#installation-steps)

### 1. Require the Package

[](#1-require-the-package)

Run the following command:

```
composer require itsrafsanjani/contact
```

### 2. Add the service provider to your config/app.php providers array:

[](#2-add-the-service-provider-to-your-configappphp-providers-array)

> If you're installing on Laravel 5.5+ skip this step

```
ItsRafsanJani\Contact\ContactServiceProvider::class,
```

### 3. Run Migration

[](#3-run-migration)

Run the following command:

```
php artisan migrate
```

### 4. Edit `.env` File

[](#4-edit-env-file)

Add variable `CONTACT_TO_MAIL` to `.env` and then define the email to receive email

For example

```
CONTACT_TO_MAIL="hello@example.com"
CONTACT_PHONE_REQUIRED=false
```

***Finally*** you can access your contact page by access `http://your-site.com/contact` to show the result

Customize Your Form
-------------------

[](#customize-your-form)

If you want to create your own contact us page, you must follow below instructions:

- Form action = `{{ route('contact.submit') }}`
- Name field = input `name="name"`
- Email field = input `name="email"`
- Message field = textarea `name="message"`

> Don't forget to add `{{ csrf_field() }}`

You can create the contact page with your own Route and/or Controller

Bugs and Issues
---------------

[](#bugs-and-issues)

If you found bugs or issues just write to [Issues](https://github.com/itsrafsanjani/contact/issues)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

1465d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ef20f3ae3b7ace03f0c1923e51af65f79a8b104b94015d0ea9a81c37e6f71683?d=identicon)[itsrafsanjani](/maintainers/itsrafsanjani)

---

Top Contributors

[![itsrafsanjani](https://avatars.githubusercontent.com/u/48161278?v=4)](https://github.com/itsrafsanjani "itsrafsanjani (1 commits)")

---

Tags

laravelemailformcontactcontact formcontact usitsrafsanjani

### Embed Badge

![Health badge](/badges/itsrafsanjani-contact/health.svg)

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

###  Alternatives

[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)[ashallendesign/laravel-mailboxlayer

A lightweight Laravel package for validating emails using the Mailbox Layer API.

762.0k](/packages/ashallendesign-laravel-mailboxlayer)

PHPackages © 2026

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