PHPackages                             indigophp/fieldset - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. indigophp/fieldset

AbandonedArchivedLibrary[Validation &amp; Sanitization](/categories/validation)

indigophp/fieldset
==================

Custom fieldset features built around Fuel Fieldset and Validation package

011PHP

Since May 6Pushed 11y ago1 watchersCompare

[ Source](https://github.com/indigophp/fieldset)[ Packagist](https://packagist.org/packages/indigophp/fieldset)[ RSS](/packages/indigophp-fieldset/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Indigo Fieldset
===============

[](#indigo-fieldset)

[![Latest Version](https://camo.githubusercontent.com/cd54ec0683a69162755e056f2ba299a2f5189735ee1382eb2d5aa7c53e504fdc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f696e6469676f7068702f6669656c647365742e7376673f7374796c653d666c61742d737175617265)](https://github.com/indigophp/fieldset/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/5fe6c99e68d0228983bb457e9cdf84b96b6770085bd70efbfb1ff5f4aeb43b15/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f696e6469676f7068702f6669656c647365742e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/indigophp/fieldset)[![Code Coverage](https://camo.githubusercontent.com/6df2d7ba23698e14e86e0ed19f712238504ac2f42022a7ed71023e68822ad572/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f696e6469676f7068702f6669656c647365742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/indigophp/fieldset)[![Quality Score](https://camo.githubusercontent.com/defce78d0839fe64dd9b237343e9cdf163ee7b134dcdd954d16bdf695f2d6159/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f696e6469676f7068702f6669656c647365742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/indigophp/fieldset)[![HHVM Status](https://camo.githubusercontent.com/74534b5a686123bd5d91da31ba6dc74b6705824f715554a794bef15133a91e00/68747470733a2f2f696d672e736869656c64732e696f2f6868766d2f696e6469676f7068702f6669656c647365742e7376673f7374796c653d666c61742d737175617265)](http://hhvm.h4cc.de/package/indigophp/fieldset)[![Total Downloads](https://camo.githubusercontent.com/f1bb1ec6079ad725dd33dc9fc71fa8e8ea1d8b386b8bb4ed28e2854adc03d1b5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696e6469676f7068702f6669656c647365742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/indigophp/fieldset)

**Custom form features built around [Fuel](http://fuelphp.com) [Fieldset](https://github.com/fuelphp/fieldset) and [Validation](https://github.com/fuelphp/validation) package.**

Install
-------

[](#install)

Via Composer

```
$ composer require indigophp/fieldset
```

Usage
-----

[](#usage)

Create your entity which you want to use in the form:

```
/**
 * @Form
 */
class Entity
{
    /**
     * @Form\Field('text')
     */
    protected $property;
}
```

Create your metadata factory:

```
use Indigo\Fieldset\FieldsetManager;
use Indigo\Fieldset\Metadata\Driver\Annotation;
use Metadata\MetadataFactory;

$driver = new Annotation(/* instance of Doctrine\Common\Annotations\Reader */);
$factory = new MetadataFactory($driver);
$manager = new FieldsetManager($factory, /* instance of Fuel\Fieldset\Builder\BuilderInterface */);

$form = $manager->generateForm('Entity');
$manager->populateForm($entity, $form);
$validator = $manager->generateValidation('Entity');
```

Testing
-------

[](#testing)

```
$ phpspec run
```

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

[](#contributing)

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

Security
--------

[](#security)

If you discover any security related issues, please contact us at .

Credits
-------

[](#credits)

- [Márk Sági-Kazár](https://github.com/sagikazarmark)
- [All Contributors](https://github.com/indigophp/fieldset/contributors)

License
-------

[](#license)

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

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0e4e105cea62b616d4cb376b08a849b6a428f646998537de150d16a8eb537b90?d=identicon)[mark.sagikazar](/maintainers/mark.sagikazar)

![](https://www.gravatar.com/avatar/1585b5a08e138e348f5b646231d0f16cb2eae06501fb9462bbc97a794d4de84a?d=identicon)[TamasBarta](/maintainers/TamasBarta)

---

Top Contributors

[![sagikazarmark](https://avatars.githubusercontent.com/u/1226384?v=4)](https://github.com/sagikazarmark "sagikazarmark (13 commits)")

### Embed Badge

![Health badge](/badges/indigophp-fieldset/health.svg)

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

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

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