PHPackages                             fuelviews/laravel-forms - 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. [Templating &amp; Views](/categories/templating)
4. /
5. fuelviews/laravel-forms

ActiveLibrary[Templating &amp; Views](/categories/templating)

fuelviews/laravel-forms
=======================

Laravel forms package

v1.0.4(4mo ago)02.4k[3 PRs](https://github.com/fuelviews/laravel-forms/pulls)1MITPHPPHP ^8.3CI passing

Since May 9Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/fuelviews/laravel-forms)[ Packagist](https://packagist.org/packages/fuelviews/laravel-forms)[ Docs](https://github.com/fuelviews/laravel-forms)[ RSS](/packages/fuelviews-laravel-forms/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (13)Versions (35)Used By (1)

Laravel forms package
=====================

[](#laravel-forms-package)

Laravel forms package with built-in spam protection and optional Cloudflare Turnstile support.

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

[](#installation)

You can require the package via composer:

```
composer require fuelviews/laravel-forms
```

You can install the package with:

```
php artisan forms:install
```

You can manually publish the config file with:

```
php artisan vendor:publish --tag="forms-config"
```

You can publish the view files with:

```
php artisan vendor:publish --tag="forms-views"
```

Cloudflare Turnstile Setup (Optional)
-------------------------------------

[](#cloudflare-turnstile-setup-optional)

This package includes built-in support for Cloudflare Turnstile CAPTCHA to protect your forms from spam.

### 1. Get Your Turnstile Keys

[](#1-get-your-turnstile-keys)

1. Sign up for a free [Cloudflare account](https://dash.cloudflare.com/sign-up) if you don't have one
2. Go to the [Turnstile dashboard](https://dash.cloudflare.com/?to=/:account/turnstile)
3. Create a new site and get your Site Key and Secret Key

### 2. Configure Your Environment

[](#2-configure-your-environment)

Add these to your `.env` file:

```
FORMS_TURNSTILE_ENABLED=true
TURNSTILE_SITE_KEY=your_site_key_here
TURNSTILE_SECRET_KEY=your_secret_key_here
```

### Configuration Options

[](#configuration-options)

The package configuration in `config/forms.php` supports flexible environment variables:

```
    'turnstile' => [
        'enabled' => env('FORMS_TURNSTILE_ENABLED', false),
        'site_key' => env('TURNSTILE_SITE_KEY','1x00000000000000000000AA'),
        'secret_key' => env('TURNSTILE_SECRET_KEY','1x0000000000000000000000000000000AA'),
    ],
```

Form Usage (basic)
------------------

[](#form-usage-basic)

Include form method type, form method route, spam strap in the start and end of the form, form key, fake submit button, and a real submit button.

```

    /* Form fields here */

```

Form Usage (advanced)
---------------------

[](#form-usage-advanced)

```

                First name

                @error('firstName')
                    {{ $message }}
                @enderror

                Last name

                @error('lastName')
                    {{ $message }}
                @enderror

                Email

                @error('email')
                    {{ $message }}
                @enderror

                Phone

                @error('phone')
                    {{ $message }}
                @enderror

                    How can we help you?

                Max 255 characters

                @error('message')
                    {{ $message }}
                @enderror

```

Form Modal Usage
----------------

[](#form-modal-usage)

Include `forms-modal` into your `layouts.app.blade.php` file, trigger with a button. You can customize which layout blade file is used in the `config/forms.php` file

```
Show Modal
@livewire('forms-modal')
```

Tailwindcss classes
-------------------

[](#tailwindcss-classes)

Add laravel-forms to your tailwind.config.js file.

```
content: [
    './vendor/fuelviews/laravel-forms/resources/**/*.blade.php',
]
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Joshua Mitchener](https://github.com/thejmitchener)
- [Daniel Clark](https://github.com/sweatybreeze)
- [Fuelviews](https://github.com/fuelviews)
- [All Contributors](../../contributors)

Support us
----------

[](#support-us)

Fuelviews is a web development agency based in Portland, Maine. You'll find an overview of all our projects [on our website](https://fuelviews.com).

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance84

Actively maintained with recent releases

Popularity19

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 51.2% 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 ~21 days

Total

30

Last Release

129d ago

Major Versions

v0.0.25 → v1.0.02025-09-27

PHP version history (3 changes)v0.0.1PHP ^8.2

v0.0.23PHP ^8.3||^8.2

v0.0.25PHP ^8.3

### Community

Maintainers

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

---

Top Contributors

[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (352 commits)")[![thejmitchener](https://avatars.githubusercontent.com/u/64335706?v=4)](https://github.com/thejmitchener "thejmitchener (106 commits)")[![mvdnbrk](https://avatars.githubusercontent.com/u/802681?v=4)](https://github.com/mvdnbrk "mvdnbrk (46 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (30 commits)")[![Nielsvanpach](https://avatars.githubusercontent.com/u/10651054?v=4)](https://github.com/Nielsvanpach "Nielsvanpach (20 commits)")[![pforret](https://avatars.githubusercontent.com/u/474312?v=4)](https://github.com/pforret "pforret (16 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (15 commits)")[![sebastiandedeyne](https://avatars.githubusercontent.com/u/1561079?v=4)](https://github.com/sebastiandedeyne "sebastiandedeyne (14 commits)")[![patinthehat](https://avatars.githubusercontent.com/u/5508707?v=4)](https://github.com/patinthehat "patinthehat (10 commits)")[![AdrianMrn](https://avatars.githubusercontent.com/u/12762044?v=4)](https://github.com/AdrianMrn "AdrianMrn (8 commits)")[![riasvdv](https://avatars.githubusercontent.com/u/3626559?v=4)](https://github.com/riasvdv "riasvdv (7 commits)")[![AlexVanderbist](https://avatars.githubusercontent.com/u/6287961?v=4)](https://github.com/AlexVanderbist "AlexVanderbist (7 commits)")[![crynobone](https://avatars.githubusercontent.com/u/172966?v=4)](https://github.com/crynobone "crynobone (7 commits)")[![thecaliskan](https://avatars.githubusercontent.com/u/13554944?v=4)](https://github.com/thecaliskan "thecaliskan (5 commits)")[![irfanm96](https://avatars.githubusercontent.com/u/42065936?v=4)](https://github.com/irfanm96 "irfanm96 (5 commits)")[![IGedeon](https://avatars.githubusercontent.com/u/694313?v=4)](https://github.com/IGedeon "IGedeon (4 commits)")[![abenerd](https://avatars.githubusercontent.com/u/7523903?v=4)](https://github.com/abenerd "abenerd (3 commits)")[![jessarcher](https://avatars.githubusercontent.com/u/4977161?v=4)](https://github.com/jessarcher "jessarcher (3 commits)")[![koossaayy](https://avatars.githubusercontent.com/u/6431084?v=4)](https://github.com/koossaayy "koossaayy (3 commits)")[![lloricode](https://avatars.githubusercontent.com/u/8251344?v=4)](https://github.com/lloricode "lloricode (3 commits)")

---

Tags

laravelFormsFuelviews

###  Code Quality

TestsPest

Static AnalysisRector

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/fuelviews-laravel-forms/health.svg)

```
[![Health](https://phpackages.com/badges/fuelviews-laravel-forms/health.svg)](https://phpackages.com/packages/fuelviews-laravel-forms)
```

###  Alternatives

[ryangjchandler/blade-capture-directive

Create inline partials in your Blade templates with ease.

8222.2M12](/packages/ryangjchandler-blade-capture-directive)[spatie/laravel-blade-comments

Add debug comments to your rendered output

177325.5k](/packages/spatie-laravel-blade-comments)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[rawilk/filament-password-input

Enhanced password input component for filament.

52232.4k3](/packages/rawilk-filament-password-input)[daikazu/laravel-glider

Start using Glide on-the-fly instantly in your Laravel blade templates.

882.3k](/packages/daikazu-laravel-glider)[combindma/dash-ui

A streamlined and stylish UI component library for Laravel Blade, crafted with TailwindCSS and AlpineJs for simplicity and elegance.

631.4k](/packages/combindma-dash-ui)

PHPackages © 2026

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