PHPackages                             graham-campbell/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. [Framework](/categories/framework)
4. /
5. graham-campbell/contact

AbandonedArchivedLibrary[Framework](/categories/framework)

graham-campbell/contact
=======================

Contact Is A Contact Form Backend For Laravel 5

0.2.x-dev(11y ago)2618.6k51MITPHPPHP &gt;=5.4.7

Since Apr 21Pushed 10y ago1 watchersCompare

[ Source](https://github.com/BootstrapCMS/Contact)[ Packagist](https://packagist.org/packages/graham-campbell/contact)[ RSS](/packages/graham-campbell-contact/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (9)Versions (7)Used By (1)

Laravel Contact
===============

[](#laravel-contact)

Laravel Contact was created by, and is maintained by [Graham Campbell](https://github.com/GrahamCampbell), and provides a contact form backend for [Laravel 5](http://laravel.com). It utilises a few of my packages including [Laravel Throttle](https://github.com/GrahamCampbell/Laravel-Throttle) and [Laravel Binput](https://github.com/GrahamCampbell/Laravel-Binput). Feel free to check out the [releases](https://github.com/BootstrapCMS/Contact/releases), [license](LICENSE), and [contribution guidelines](CONTRIBUTING.md).

[![Laravel Contact](https://cloud.githubusercontent.com/assets/2829600/4432323/c18fe95c-468c-11e4-940d-c41718dfbb73.PNG)](https://cloud.githubusercontent.com/assets/2829600/4432323/c18fe95c-468c-11e4-940d-c41718dfbb73.PNG)

[![Build Status](https://camo.githubusercontent.com/4d8c69b830da95c39eb40c5b19d12e470b2a56dd5fd65f0747bbb9794f5350f9/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f426f6f747374726170434d532f436f6e746163742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/BootstrapCMS/Contact)[![Coverage Status](https://camo.githubusercontent.com/32070b9276a3ed5aa5b3cd0af47b3471f07fa22a1bedc5219284ea6f032075d2/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f426f6f747374726170434d532f436f6e746163742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/BootstrapCMS/Contact/code-structure)[![Quality Score](https://camo.githubusercontent.com/1e38acd9db0e18acc88ec39493997f8cfd0a61721c99373e03c1e4aebaaed1ad/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f426f6f747374726170434d532f436f6e746163742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/BootstrapCMS/Contact)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Latest Version](https://camo.githubusercontent.com/4305f528753028be4650ecf6125c94a1df797138704d83d82617c9ac91a3e8bd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f426f6f747374726170434d532f436f6e746163742e7376673f7374796c653d666c61742d737175617265)](https://github.com/BootstrapCMS/Contact/releases)

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

[](#installation)

[PHP](https://php.net) 5.5+ or [HHVM](http://hhvm.com) 3.6+, and [Composer](https://getcomposer.org) are required.

To get the latest version of Laravel Contact, simply add the following line to the require block of your `composer.json` file:

```
"graham-campbell/contact": "~1.0"

```

You'll then need to run `composer install` or `composer update` to download it and have the autoloader updated.

You will need to register a few service providers before you attempt to load the Laravel Contact service provider. Open up `config/app.php` and add the following to the `providers` key.

- `'GrahamCampbell\Security\SecurityServiceProvider'`
- `'GrahamCampbell\Binput\BinputServiceProvider'`
- `'GrahamCampbell\Throttle\ThrottleServiceProvider'`

Once Laravel Contact is installed, you need to register the service provider. Open up `config/app.php` and add the following to the `providers` key.

- `'GrahamCampbell\Contact\ContactServiceProvider'`

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

[](#configuration)

Laravel Contact supports optional configuration.

To get started, you'll need to publish all vendor assets:

```
$ php artisan vendor:publish
```

This will create a `config/contact.php` file in your app that you can modify to set your configuration. Also, make sure you check for changes to the original config file in this package between releases.

There are a few config options:

##### Path To The Form

[](#path-to-the-form)

This option (`'path'`) defines the path to the contact form. This is the page where your contact form should be. The default value for this setting is `'pages/contact'`.

##### Contact Form Email

[](#contact-form-email)

This option (`'email'`) defines the email address to send contact form messages to. It can be a single address, or an array of email addresses. The default value for this setting is `'admin@example.com'`.

##### Email Layout

[](#email-layout)

This option (`'layout'`) defines the layout to extend when building email views. The default value for this setting is `'layouts.email'`.

##### Additional Configuration

[](#additional-configuration)

You will need to add a `'name'` key to your app config to set the application name.

Usage
-----

[](#usage)

Laravel Contact is designed to work with [Bootstrap CMS](https://github.com/BootstrapCMS/CMS). In order for it to work in any Laravel application, you must ensure that you know how to use my [Laravel Core](https://github.com/GrahamCampbell/Laravel-Core) package as configuration and knowledge of the `app:install` and `app:update ` commands is required.

Laravel Contact provides you with the backend functionality (and email views) to create a comment form. You will need to write your own contact form front end with this plugin, although an example contact form is included (`'contact.form'`). Laravel Contact will register the route `contact.post` which will accept `POST` requests to the path `contact`.

License
-------

[](#license)

Laravel Contact is licensed under [The MIT License (MIT)](LICENSE).

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community12

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

Every ~65 days

Recently: every ~54 days

Total

6

Last Release

4074d ago

PHP version history (2 changes)v0.1.0-alphaPHP &gt;=5.4.7

v0.3.0-alphaPHP &gt;=5.5.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/d95eb26cb8f3919bb5ca3b6d823daeabbf259663778a970349b245c580713c8e?d=identicon)[graham-campbell](/maintainers/graham-campbell)

---

Top Contributors

[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (121 commits)")

---

Tags

frameworklaravelGraham CampbellGrahamCampbellformcontactcontact formLaravel Contact

### Embed Badge

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

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

###  Alternatives

[graham-campbell/markdown

Markdown Is A CommonMark Wrapper For Laravel

1.3k7.1M63](/packages/graham-campbell-markdown)[graham-campbell/manager

Manager Provides Some Manager Functionality For Laravel

39221.1M134](/packages/graham-campbell-manager)[graham-campbell/digitalocean

DigitalOcean Is A DigitalOcean Bridge For Laravel

509343.1k2](/packages/graham-campbell-digitalocean)[graham-campbell/bitbucket

Bitbucket Is A Bitbucket Bridge For Laravel

75185.0k2](/packages/graham-campbell-bitbucket)

PHPackages © 2026

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