PHPackages                             tpenaranda/duckform - 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. [API Development](/categories/api)
4. /
5. tpenaranda/duckform

ActiveLibrary[API Development](/categories/api)

tpenaranda/duckform
===================

Laravel package to modelize Forms/Surveys and handle them using API endpoints.

v1.0.0(6y ago)120MITPHPPHP ^7.2CI failing

Since Nov 26Pushed 6y ago1 watchersCompare

[ Source](https://github.com/tpenaranda/duckform)[ Packagist](https://packagist.org/packages/tpenaranda/duckform)[ Docs](https://github.com/tpenaranda/duckform)[ RSS](/packages/tpenaranda-duckform/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (4)Versions (3)Used By (0)

Laravel Duckform
================

[](#laravel-duckform)

[![Latest Stable Version](https://camo.githubusercontent.com/7316a61b0b6bd3d093d53694ad5ea2ee7752fa5bf8f2173746a36c80b267e4ef/68747470733a2f2f706f7365722e707567782e6f72672f7470656e6172616e64612f6475636b666f726d2f762f737461626c65)](https://packagist.org/packages/tpenaranda/duckform) [![Total Downloads](https://camo.githubusercontent.com/9d6b01e9f4af077eb9e17117f3117770a796a8d34c33c3e718c89adb296492bc/68747470733a2f2f706f7365722e707567782e6f72672f7470656e6172616e64612f6475636b666f726d2f646f776e6c6f616473)](https://packagist.org/packages/tpenaranda/duckform) [![License](https://camo.githubusercontent.com/4627b85c292781f5e9f1bad3234af682f801ce51e3fb4efe07be701c6f6dfdb5/68747470733a2f2f706f7365722e707567782e6f72672f7470656e6172616e64612f6475636b666f726d2f6c6963656e7365)](https://packagist.org/packages/tpenaranda/duckform)

Laravel package to modelize Forms/Surveys, save them into DB and handle them using API endpoints. There is a VueJS package to handle the FE side ([see here](https://github.com/tpenaranda/vue-duckform)). Check  for a live version of the FE side.

*Form schema is defined [this way](https://raw.githubusercontent.com/tpenaranda/duckform/master/src/Database/Seeders/FormExamples/patient-intake-questionnaire.php).*

 [![](https://raw.githubusercontent.com/tpenaranda/duckform/master/screenshot.png)](https://raw.githubusercontent.com/tpenaranda/duckform/master/screenshot.png)

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

[](#installation)

### Require package

[](#require-package)

```
$ composer require tpenaranda/duckform
```

### Run migrations in order to create tables for forms schemas and user responses.

[](#run-migrations-in-order-to-create-tables-for-forms-schemas-and-user-responses)

```
$ php artisan migrate
```

### Seed DB with a sample form

[](#seed-db-with-a-sample-form)

```
php artisan db:seed --class TPenaranda\\Duckform\\Database\\Seeders\\DuckformSeeder
```

### Alternatively you can use factories to generate random form.

[](#alternatively-you-can-use-factories-to-generate-random-form)

```
php artisan tinker
>>> use TPenaranda\Duckform\Facade\Duckform\Duckform
>>> use TPenaranda\Duckform\Models\Form
>>> Duckform::factory(Form::class)->states('with-sections-with-questions-with-possible-answers')->create()
```

### Routes (remember `php artisan route:list` for entire list)

[](#routes-remember-php-artisan-routelist-for-entire-list)

```
Form objects (Form structure)
=============================
GET 'api/duckforms/' Get all Forms.
GET 'api/duckforms/{id-slug-token}' Get single Form.

FormSubmit objects (Data submitted for a Form)
==============================================
POST 'api/duckforms/{id-slug-token}/submits' Create a FormSubmit.
PATCH 'api/duckforms/{id-slug-token}/submits/{submitToken}' Modify a FormSubmit
GET 'api/duckforms/{id-slug-token}/submits/{formSubmitToken}' Get a single FormSubmit.
GET 'api/duckforms/{id-slug-token}/submits' Get all submits for a single Form.

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

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 ~4 days

Total

2

Last Release

2352d ago

Major Versions

v0.1.0 → v1.0.02019-12-01

### Community

Maintainers

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

---

Tags

formstypeformvuejslaravelformsurveytypeformduckform

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tpenaranda-duckform/health.svg)

```
[![Health](https://phpackages.com/badges/tpenaranda-duckform/health.svg)](https://phpackages.com/packages/tpenaranda-duckform)
```

###  Alternatives

[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

2.9k34.0M112](/packages/darkaonline-l5-swagger)[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[statamic/cms

The Statamic CMS Core Package

4.8k3.2M720](/packages/statamic-cms)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k12.2M45](/packages/knuckleswtf-scribe)[vemcogroup/laravel-weather

Weather package for Laravel to use different providers to get weather info

5525.0k](/packages/vemcogroup-laravel-weather)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

762.6k](/packages/scriptdevelop-whatsapp-manager)

PHPackages © 2026

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