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

ActiveLibrary

deesynertz/contact-service
==========================

DB-free contact service package for Laravel 8-11

v1.1.2(3mo ago)08MITPHPPHP ^7.4 || ^8.0 || ^8.1 || ^8.2 || ^8.3

Since Jan 5Pushed 3mo agoCompare

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

READMEChangelog (1)Dependencies (5)Versions (8)Used By (0)

Deesynertz Contact Service
==========================

[](#deesynertz-contact-service)

A **reusable Laravel package** to handle contact form submissions and send emails. Designed to be **plug-and-play**, it allows any Laravel project to receive contact form data and send it to management with minimal setup.

---

Features
--------

[](#features)

- Send contact form submissions via email
- Configurable sender and recipient addresses via `.env`
- Built-in config validation with clear error messages
- Fully tested with unit and feature tests
- Easy to integrate using a facade or service class

---

Installation
------------

[](#installation)

1. Require the package via Composer:

```
composer require deesynertz/contact-service
```

Deesynertz Contact Service
==========================

[](#deesynertz-contact-service-1)

A reusable Laravel package to handle contact form submissions and send emails.

---

Installation
------------

[](#installation-1)

Publish the configuration file:

```
php artisan vendor:publish --tag=deesynertz-contact-config
```

This will copy the config to: \[config/deesynertz-contact.php\]

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

[](#configuration)

Also ensure Laravel mail settings are properly configured:

```
MAIL_MAILER=smtp
MAIL_HOST=smtp.yourmail.com
MAIL_PORT=465
MAIL_ENCRYPTION=ssl
MAIL_USERNAME=sender@yourdomain.com
MAIL_PASSWORD=yourpassword
MAIL_FROM_ADDRESS=sender@yourdomain.com
MAIL_FROM_NAME="Your Company Name"

# In your project .env, add the following: Recipient email (Example management)
MAIL_TO_ADDRESS=receiver@yourdomain.com
```

Config Validation
-----------------

[](#config-validation)

The package checks required environment variables before sending emails.

> If missing, it throws a clear exception: `RuntimeException: DEESYNERTZ_CONTACT_MAIL_FROM is not set in your .env`

This ensures your system never sends emails without proper configuration.

Usage Options
-------------

[](#usage-options)

1. Sending an email from a controller

```
use Deesynertz\ContactService\Facades\ContactService;

public function submit(Request $request) {
    # you can put validation first (Optional)

    $data = $request->only(['name', 'email', 'phone', 'message']);
    ContactService::send($data);
    return back()->with('success', 'Your message has been sent!');
}
```

2. Sending an email directly via the service

```
use Deesynertz\ContactService\Services\ContactService;

$service = resolve(ContactService::class);
$service->send([
    'name' => '',
    'email' => '',
    'phone' => '',
    'message' => '',
]);
```

Quick Start Example: Blade Form
-------------------------------

[](#quick-start-example-blade-form)

Here’s a minimal contact form you can use:

```

    @csrf

    Send

```

###  Health Score

39

—

LowBetter than 85% of packages

Maintenance83

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

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

Every ~1 days

Total

7

Last Release

117d ago

PHP version history (2 changes)v1.0.0PHP ^7.4|^8.0|^8.1|^8.2|^8.3

v1.0.1PHP ^7.4 || ^8.0 || ^8.1 || ^8.2 || ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/42a1590da28fd433e032661693e3a7ee8de3ca6fd450ea8c97230d696e7c847d?d=identicon)[Deesynertz](/maintainers/Deesynertz)

---

Top Contributors

[![deesynertz](https://avatars.githubusercontent.com/u/54396567?v=4)](https://github.com/deesynertz "deesynertz (9 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[barryvdh/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k124.3M621](/packages/barryvdh-laravel-debugbar)[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[masterro/laravel-mail-viewer

Easily view in browser outgoing emails.

6392.1k](/packages/masterro-laravel-mail-viewer)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[shaffe/laravel-mail-log-channel

A package to support logging via email in Laravel

1286.2k](/packages/shaffe-laravel-mail-log-channel)

PHPackages © 2026

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