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

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

lopzy/contact
=============

This will send email to admin and save contact query in database

21PHP

Since Oct 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Premod1/contact-mail-packages)[ Packagist](https://packagist.org/packages/lopzy/contact)[ RSS](/packages/lopzy-contact/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

---

Lopzy Contact
=============

[](#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
------------

[](#installation)

To install the package, run the following command:

```
composer require lopzy/contact:dev-main
```

Configuration
-------------

[](#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
-----

[](#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

[](#sending-data)

When submitting the contact form, the following fields should be sent:

- `name`: The name of the sender
- `email`: The email address of the sender
- `message`: 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
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](LICENSE.md).

Contributing
------------

[](#contributing)

Contributions are welcome! Please submit a pull request or open an issue to discuss any changes.

Support
-------

[](#support)

For any issues or questions, please open an issue on GitHub.

- [GitHub Repository](https://github.com/Premod1/contact-mail-packages)
- [LinkedIn](https://www.linkedin.com/in/premod-suraweera-968916216/)

---

This README provides all the necessary information for installing, configuring, and using the package, as well as contributing and finding support.

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity17

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/106421882?v=4)[premod suraweera](/maintainers/Premod1)[@Premod1](https://github.com/Premod1)

---

Top Contributors

[![Premod1](https://avatars.githubusercontent.com/u/106421882?v=4)](https://github.com/Premod1 "Premod1 (8 commits)")

### Embed Badge

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

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

###  Alternatives

[maize-tech/laravel-email-domain-rule

Laravel Email Domain Rule

612.0k](/packages/maize-tech-laravel-email-domain-rule)[sarfraznawaz2005/noty

Laravel package to incorporate noty flash notifications into laravel.

324.5k](/packages/sarfraznawaz2005-noty)

PHPackages © 2026

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