{"id":51914400,"url":"https://github.com/whilesmartphp/eloquent-forms","last_synced_at":"2026-07-27T09:30:29.111Z","repository":{"id":372868688,"uuid":"1291448903","full_name":"whilesmartphp/eloquent-forms","owner":"whilesmartphp","description":"Polymorphic form collection with pluggable, agnostic delivery destinations.","archived":false,"fork":false,"pushed_at":"2026-07-23T21:47:54.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"dev","last_synced_at":"2026-07-23T23:12:35.196Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/whilesmartphp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-07-06T20:12:57.000Z","updated_at":"2026-07-23T21:46:05.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/whilesmartphp/eloquent-forms","commit_stats":null,"previous_names":["whilesmartphp/eloquent-forms"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/whilesmartphp/eloquent-forms","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whilesmartphp%2Feloquent-forms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whilesmartphp%2Feloquent-forms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whilesmartphp%2Feloquent-forms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whilesmartphp%2Feloquent-forms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/whilesmartphp","download_url":"https://codeload.github.com/whilesmartphp/eloquent-forms/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whilesmartphp%2Feloquent-forms/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35947060,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-07-27T02:00:06.776Z","response_time":101,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-07-27T09:30:28.115Z","updated_at":"2026-07-27T09:30:29.098Z","avatar_url":"https://github.com/whilesmartphp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# whilesmart/eloquent-forms\n\nPolymorphic form collection with a pluggable, agnostic delivery fan-out. Every\nsubmission is stored, then delivered to any number of configured destinations\n(mail, webhook, Mautic, SmartPings, ...). Add a destination once and every form\ngains it.\n\n## Install (in this monorepo)\n\nThe package is developed under `api/packages/eloquent-forms` and wired as a path\nrepository in the app's `composer.json`. From `api/`:\n\n```bash\ncomposer install          # symlinks the package and discovers the provider\nphp artisan migrate       # creates forms + form_submissions\nphp artisan vendor:publish --tag=eloquent-forms-config   # optional\n```\n\n## Submitting\n\nPublic, throttled endpoint (mounted under the `route_prefix`, default `api`):\n\n```\nPOST /api/forms/{key}/submissions\n```\n\nThe form `{key}` is resolved or created on first use. Body is freeform JSON;\n`name`, `email`, `phone`, `subject`, `message` are recognised and copied to typed\ncolumns, everything else is retained in `payload`.\n\nInclude two protection fields the frontend should send:\n\n- `_gotcha` — honeypot, must be empty (configurable name)\n- `_started_at` — unix-ms timestamp of when the form rendered (time-trap)\n\n## Destinations\n\nSet the default fan-out with `FORMS_DESTINATIONS` (comma-separated) or override\nper form via the `destinations` column on a `Form` row.\n\n| key | status | needs |\n| :-- | :----- | :---- |\n| `mail` | ready | `FORMS_MAIL_TO` or a Form `recipient_email` |\n| `webhook` | ready | `FORMS_WEBHOOK_URL` (optional `FORMS_WEBHOOK_SECRET`) |\n| `mautic` | pending | Mautic base URL + credentials |\n| `smartpings` | pending | `SMARTPINGS_CLIENT_ID` / `SMARTPINGS_SECRET_ID` |\n\nAdd your own by implementing `Whilesmart\\Forms\\Contracts\\FormDestination` and\nregistering it in `config('eloquent-forms.drivers')`.\n\n## Polymorphism\n\n`FormSubmission` and `Form` both `morphTo` an owner. Add\n`Whilesmart\\Forms\\Traits\\HasFormSubmissions` to any model to read submissions\nattached to it.\n\n## Events\n\n`Whilesmart\\Forms\\Events\\FormSubmittedEvent` fires after a submission is stored,\nbefore fan-out. Listen to it to add custom side effects.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhilesmartphp%2Feloquent-forms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhilesmartphp%2Feloquent-forms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhilesmartphp%2Feloquent-forms/lists"}