PHPackages                             fbf/laravel-contact-form - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. fbf/laravel-contact-form

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

fbf/laravel-contact-form
========================

A Laravel 4 package for adding a simple contact form to a website

v0.1.0(12y ago)141.1k4[4 issues](https://github.com/FbF/Laravel-Contact-Form/issues)MITPHPPHP &gt;=5.3.0

Since Jan 7Pushed 12y ago1 watchersCompare

[ Source](https://github.com/FbF/Laravel-Contact-Form)[ Packagist](https://packagist.org/packages/fbf/laravel-contact-form)[ RSS](/packages/fbf-laravel-contact-form/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Laravel Contact Form
====================

[](#laravel-contact-form)

A Laravel 4 package for adding a simple contact form to a website

Features
--------

[](#features)

- Partial for a contact form, that you can include in your own views
- Form fields are configurable e.g. name, email and message
- Controller action to handle the submission of the forms, which can handle normal (redirects to previous page), or AJAX requests (responds with JSON with status code and message)
- Translation approach for customising labels, buttons, feedback messages and validation errors
- Enquiry is emailed to a single configurable email address
- Twitter bootstrap compatible markup and class names for the form

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

[](#installation)

Add the following to you composer.json file

```
"fbf/laravel-contact-form": "dev-master"

```

Run

```
composer update

```

Add the following to app/config/app.php

```
'Fbf\LaravelContactForm\LaravelContactFormServiceProvider'

```

Publish the config, then edit it accordingly

```
php artisan config:publish fbf/laravel-contact-form

```

Ensure the settings in app/config/mail.php are correct

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

[](#configuration)

The URI of contact page

```
'uri' => 'contact',

```

The view of the contact page (you can set this to be a view in your app, which has much more contact on it for example, then include the partial for the form, e.g. `@include('laravel-contact-form::form')`)

```
'view' => 'laravel-contact-form::contact',

```

The fields and rules for your form

```
'fields' => array(
	'title' => array(
		'type' => 'select',
		'choices' => array(
			'' => 'Please select',
			'Mr' => 'Mr',
			'Mrs' => 'Mrs',
			'Miss' => 'Miss',
			'Ms' => 'Ms',
			'Dr' => 'Dr',
			'Other' => 'Other',
		),
	),
	'first_name' => array(
		'type' => 'text',
	),
	'last_name' => array(
		'type' => 'text',
	),
	'email' => array(
		'type' => 'text',
	),
	'enquiry' => array(
		'type' => 'textarea',
	),
),

'rules' => array(
	'title' => 'required',
	'first_name' => 'required',
	'last_name' => 'required',
	'email' => 'required|email',
	'enquiry' => 'required',
),

```

The mail configuration options speak for themselves...

```
'mail' => array(
	'views' => array(
		'laravel-contact-form::emails.html.enquiry',
		'laravel-contact-form::emails.text.enquiry',
	),
	'to' => array(
		'name' => 'Customer Services Manager',
		'email' => 'customer.services@company.com',
	),
	'subject' => 'Website Enquiry',
),

```

Usage
-----

[](#usage)

Customise the options in the config file and then add the following to the view file that you specified in the config to render the contact form inside it.

```
@include('laravel-contact-form::form')

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance14

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community9

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

Unknown

Total

1

Last Release

4508d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c1890fa7f83fd77b7c73d984199cb9a45ba9871acb4133490f43115c19fe845f?d=identicon)[neilcrookes](/maintainers/neilcrookes)

---

Top Contributors

[![neilcrookes](https://avatars.githubusercontent.com/u/24232?v=4)](https://github.com/neilcrookes "neilcrookes (1 commits)")

### Embed Badge

![Health badge](/badges/fbf-laravel-contact-form/health.svg)

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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