PHPackages                             apishka/form - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. apishka/form

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

apishka/form
============

Apishka forms

1.2.2(8y ago)0969MITPHPPHP &gt;=7

Since Aug 1Pushed 8y ago2 watchersCompare

[ Source](https://github.com/apishka/form)[ Packagist](https://packagist.org/packages/apishka/form)[ RSS](/packages/apishka-form/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (5)Versions (40)Used By (0)

Simple form usage
=================

[](#simple-form-usage)

```
class MyForm extends Apishka_Form_FormAbstract
{
    /**
     * Returns form structure
     *
     * @return array
     */

    public function processStructure()
    {
        // This will add signature field to form, to determine when form was posted,
        // don't forger to include 'signature' in your markup
        parent::processStructure();

        // We can add simple string field
        $this->addField(
            Apishka_Form_Field_String::apishka('string_field')
        );

        // We add simpel int field
        $this->addField(
            Apishka_Form_Field_Int::apishka('int_field')
        );
    }
}
```

Basic field usage
=================

[](#basic-field-usage)

Each field has functions to manipulate

```
$field = Apishka_Form_Field_String::apishka('field_name')
    // By default all fields have unique ID, but if you want to
    // set some specific
    ->setId('some_id')

    // You can mark field as required
    ->setRequired(true)

    // Returns value if field not presented in request
    ->setDefault('some_string')

    // Set current field value
    ->setValue('some_value')

    // Add transformation on value to the end of transformations list
    ->pushTransformation(
        'Transform/Length',
        [
            'min' => 10,
            'max' => 20,
        ]
    )

    // Unshift transformation to transformations list
    ->pushTransformation(
        'Transform/Callback',
        [
            'callback' => function($value)
            {
                return mb_strtolower($value);
            }
        ]
    )
;
```

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 96.5% 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 ~14 days

Recently: every ~93 days

Total

39

Last Release

3058d ago

### Community

Maintainers

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

---

Top Contributors

[![damnedest](https://avatars.githubusercontent.com/u/246702?v=4)](https://github.com/damnedest "damnedest (110 commits)")[![grevus](https://avatars.githubusercontent.com/u/743605?v=4)](https://github.com/grevus "grevus (4 commits)")

---

Tags

formapishka

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/apishka-form/health.svg)

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

###  Alternatives

[kartik-v/yii2-widget-datepicker

Enhanced Yii2 wrapper for the bootstrap datepicker plugin (sub repo split from yii2-widgets).

1177.3M61](/packages/kartik-v-yii2-widget-datepicker)[kartik-v/yii2-widget-datetimepicker

Enhanced Yii2 wrapper for the bootstrap datetimepicker plugin (sub repo split from yii2-widgets)

1146.8M47](/packages/kartik-v-yii2-widget-datetimepicker)[kartik-v/yii2-widget-depdrop

Widget that enables setting up dependent dropdowns with nested dependencies (sub repo split from yii2-widgets)

815.1M18](/packages/kartik-v-yii2-widget-depdrop)[kartik-v/yii2-widget-timepicker

Enhanced Yii2 wrapper for the bootstrap timepicker plugin (sub repo split from yii2-widgets)

445.2M14](/packages/kartik-v-yii2-widget-timepicker)

PHPackages © 2026

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