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

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

airdev/contact
==============

A package that quickly provide contact form &amp; email send features.

v1.2.3(4y ago)066MITBladePHP ^7.3|^8.0

Since Jul 18Pushed 4y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (17)Used By (0)

Airdev/contact
==============

[](#airdevcontact)

A package that quickly provide contact form &amp; email send features.

It's only working with Airdev web base project.

Usage
-----

[](#usage)

### Installation

[](#installation)

```
composer require airdev/contact
```

Next, add it to the Laravel's package providers in `config/app.php`

```
/*
 * Package Service Providers...
 */
Airdev\Contact\AirdevContactProvider::class,
```

#### Add Google Recaptcha api to your app.blade.php

[](#add-google-recaptcha-api-to-your-appbladephp)

```

```

### Publish configuration file

[](#publish-configuration-file)

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

You should next update some configuration in `config/contact.php` :

```
/* config/contact.php */

return [
    /**
     * To publish config file run :
     * php artisan vendor:publish --tag=airdev-contact-config
     */

    'debug' => false,

    // Class to apply on the submit button (by default, Bootstrap 5 btn classes are used)
    'submit-btn-class' => 'btn btn-primary',
    // Class to apply on
    'form-class' => '',

    // The google captcha keys
    'captcha_secret' => env('CAPTCHA_SECRET', ''),
    'captcha_public' => env('CAPTCHA_PUBLIC', ''),

    'mails' => [
        'contact' => [ // it will generate post route 'contact_post'
            // The address that should receive the sent mail
            'mail_to' => env('MAIL_TO', ''),

            // Subject of the mail
            'mail_subject' => 'Contact du site ' . env('APP_NAME', ''),

            // Redirection after sended the mail
            'redirect' => '/',

            // The mail view to use (you can publish default view to base on and copy it into your resource folder
            'view' => 'mails.mail',
        ],

        /*
         * Just delete this if you have only one form
         */
        'depannage' => [ // it will generate post route 'depannage_post'
            'mail_to' => env('MAIL_TO', ''),
            'mail_subject' => 'Demande de dépannage du site ' . env('APP_NAME', ''),
            'redirect' => '/',
            'view' => 'mails.depannage',
        ]
    ],
];
```

### Call the blade component into your view

[](#call-the-blade-component-into-your-view)

And specify the route name you defined into the `config/contact.php`

```

```

#### You can edit the default fields and the sending button

[](#you-can-edit-the-default-fields-and-the-sending-button)

```

        Nom

        Email

        Adresse

        Téléphone

        Votre message

        ENVOYER

```

#### You can add custom classes to `` and ``

[](#you-can-add-custom-classes-to-form-and-button)

You'll find these settings into the published config file `config/contact.php`

```
/* config/contact.php */

return [
    // Class to apply on the submit button (by default, Bootstrap 5 btn classes are used)
    'submit-btn-class' => 'btn btn-primary',
    // Class to apply on
    'form-class' => ''
];
```

Optional customization
----------------------

[](#optional-customization)

These other customization are not required for the good work of this library.

### Publish mail view

[](#publish-mail-view)

If you want to edit the mail that is sent, you can publish the view file. This is often the case when you have more fields than the basic ones in the library.

```
php artisan vendor:publish --tag=airdev-contact-mail-view
```

You can now modify the view in the following file :

```
resources/views/vendor/airdev/contact/mails/mail.blade.php

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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 ~1 days

Total

16

Last Release

1733d ago

Major Versions

v0.2 → v1.02021-07-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/1c3bd9bc80295b5a33f7274d8658c1bf40e9d1aebb7e5ae279ec0f4a9940901b?d=identicon)[airdev-web](/maintainers/airdev-web)

---

Top Contributors

[![romainvause](https://avatars.githubusercontent.com/u/3997030?v=4)](https://github.com/romainvause "romainvause (22 commits)")

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-failed-job-monitor

Get notified when a queued job fails

1.0k2.6M4](/packages/spatie-laravel-failed-job-monitor)[vemcogroup/laravel-sparkpost-driver

SparkPost driver to use with Laravel 6.x|7.x|8.x|9.x|10.x

421.7M1](/packages/vemcogroup-laravel-sparkpost-driver)[spatie/mailcoach

Self-host Mailcoach

4007.0k](/packages/spatie-mailcoach)[synergitech/laravel-postal

This library integrates Postal with the standard Laravel mail framework.

38107.1k](/packages/synergitech-laravel-postal)[motomedialab/smtp2go

Send emails via API using the first-class email courier SMTP2Go

1316.3k](/packages/motomedialab-smtp2go)

PHPackages © 2026

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