PHPackages                             whilesmart/eloquent-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. whilesmart/eloquent-forms

ActiveLibrary

whilesmart/eloquent-forms
=========================

Polymorphic form collection with pluggable, agnostic delivery destinations.

0.1.0(today)08↑2900%1MITPHPPHP ^8.3CI passing

Since Jul 23Pushed todayCompare

[ Source](https://github.com/whilesmartphp/eloquent-forms)[ Packagist](https://packagist.org/packages/whilesmart/eloquent-forms)[ RSS](/packages/whilesmart-eloquent-forms/feed)WikiDiscussions dev Synced today

READMEChangelog (1)Dependencies (12)Versions (5)Used By (1)

whilesmart/eloquent-forms
=========================

[](#whilesmarteloquent-forms)

Polymorphic form collection with a pluggable, agnostic delivery fan-out. Every submission is stored, then delivered to any number of configured destinations (mail, webhook, Mautic, SmartPings, ...). Add a destination once and every form gains it.

Install (in this monorepo)
--------------------------

[](#install-in-this-monorepo)

The package is developed under `api/packages/eloquent-forms` and wired as a path repository in the app's `composer.json`. From `api/`:

```
composer install          # symlinks the package and discovers the provider
php artisan migrate       # creates forms + form_submissions
php artisan vendor:publish --tag=eloquent-forms-config   # optional
```

Submitting
----------

[](#submitting)

Public, throttled endpoint (mounted under the `route_prefix`, default `api`):

```
POST /api/forms/{key}/submissions

```

The form `{key}` is resolved or created on first use. Body is freeform JSON; `name`, `email`, `phone`, `subject`, `message` are recognised and copied to typed columns, everything else is retained in `payload`.

Include two protection fields the frontend should send:

- `_gotcha` — honeypot, must be empty (configurable name)
- `_started_at` — unix-ms timestamp of when the form rendered (time-trap)

Destinations
------------

[](#destinations)

Set the default fan-out with `FORMS_DESTINATIONS` (comma-separated) or override per form via the `destinations` column on a `Form` row.

keystatusneeds`mail`ready`FORMS_MAIL_TO` or a Form `recipient_email``webhook`ready`FORMS_WEBHOOK_URL` (optional `FORMS_WEBHOOK_SECRET`)`mautic`pendingMautic base URL + credentials`smartpings`pending`SMARTPINGS_CLIENT_ID` / `SMARTPINGS_SECRET_ID`Add your own by implementing `Whilesmart\Forms\Contracts\FormDestination` and registering it in `config('eloquent-forms.drivers')`.

Polymorphism
------------

[](#polymorphism)

`FormSubmission` and `Form` both `morphTo` an owner. Add `Whilesmart\Forms\Traits\HasFormSubmissions` to any model to read submissions attached to it.

Events
------

[](#events)

`Whilesmart\Forms\Events\FormSubmittedEvent` fires after a submission is stored, before fan-out. Listen to it to add custom side effects.

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance100

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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

0d ago

### Community

Maintainers

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

---

Top Contributors

[![nfebe](https://avatars.githubusercontent.com/u/14317775?v=4)](https://github.com/nfebe "nfebe (6 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/whilesmart-eloquent-forms/health.svg)

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

###  Alternatives

[leantime/leantime

Open source project management system for non-project managers. Simple like Trello, powerful like Jira. Built with neurodiversity in mind.

10.2k4.0k](/packages/leantime-leantime)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k8](/packages/statamic-rad-pack-runway)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3518.3k](/packages/duncanmcclean-statamic-cargo)[api-platform/laravel

API Platform support for Laravel

58174.6k17](/packages/api-platform-laravel)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21318.6k3](/packages/ecotone-laravel)

PHPackages © 2026

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