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 1mo ago

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

15

—

LowBetter than 3% of packages

Maintenance29

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://www.gravatar.com/avatar/af08469e621694d65ce40b3b48dffe023acebf4642721ec940487dfa7bca2ec4?d=identicon)[Premod1](/maintainers/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

[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[eduardokum/laravel-mail-auto-embed

Library for embed images in emails automatically

1702.0M5](/packages/eduardokum-laravel-mail-auto-embed)

PHPackages © 2026

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