PHPackages                             n2ref/coreui-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. [Framework](/categories/framework)
4. /
5. n2ref/coreui-form

ActiveFramework[Framework](/categories/framework)

n2ref/coreui-form
=================

PHP framework for web applications

1.0.8(1y ago)0271GPL-3.0-or-laterPHPPHP &gt;=8.0.0

Since May 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/n2ref/coreui-form-php)[ Packagist](https://packagist.org/packages/n2ref/coreui-form)[ Docs](https://github.com/n2ref/coreui-form)[ RSS](/packages/n2ref-coreui-form/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (10)Used By (1)

Coreui form
===========

[](#coreui-form)

[Online documentation](https://n2ref.github.io/coreui-form)

### Install

[](#install)

```
composer install n2ref/coreui-form
```

### Example usage

[](#example-usage)

```
use CoreUI\Form;

$form = new Form('id');
$form->setTitle('Title');
$form->setLang('en');
$form->setLangItems([ 'www' => 'eee']);
$form->setSend('/url/path', 'post', 'form');
$form->setValidResponseHeaders([ 'Content-Type': ['application/json'] ]);
$form->setValidResponseType([ 'json' ]);

$form->setWidth(600);
$form->setWidthMin(600);
$form->setWidthMax(600);
$form->setWidthLabel(200);
$form->setWidthFields(200);
$form->setControlsOffset(200);

$form->setReadonly(true);
$form->setValidate(true);
$form->setSuccessLoadUrl('/url/path');
$form->setErrorClass('bg-danger');
$form->setOnSubmit('return func()');
$form->setOnSubmitSuccess('return func2()');

$form->setLayout(
    '' .
        '' .
            'Position' .
            '[position_default]' .
        '' .
    ''
);

$form->setRecord([
    'text'     => 'default text value',
    'textarea' => "123",
    'date'     => "2023-01-01"
]);

$form->addFields([
    (new Form\Field\Text('text', 'Text'))->setWidth(200)
        ->attachFields([
            (new Form\Field\Text('text', 'Text2'))->setRequired(true)
        ]),
    (new Form\Field\TextArea('textarea', 'Text Area'))->setWidth(200)->setDescription("123"),
    (new Form\Field\Group('Group name', true))
        ->addFields([
            (new Form\Field\Date('date', 'Date'))->setWidth(200)->setAttr("class", "text-danger")
        ])
]);

$form->addControls([
    (new Form\Control\Submit('Save'))->setWidth(200)
    (new Form\Control\Link('Link', 'url/path'))
]);

$form->toArray();
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

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

Every ~20 days

Recently: every ~31 days

Total

9

Last Release

569d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d46eec372620664574541ea54a3278872c687d2529c2b0aa91d8f6f677e5299?d=identicon)[n2ref](/maintainers/n2ref)

---

Top Contributors

[![n2ref](https://avatars.githubusercontent.com/u/5215787?v=4)](https://github.com/n2ref "n2ref (1 commits)")

---

Tags

frameworkformcoreui

### Embed Badge

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

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

###  Alternatives

[cakephp/cakephp

The CakePHP framework

8.8k18.5M1.6k](/packages/cakephp-cakephp)[tecnocen/yii2-formgenerator

Yii 2 Library to configure form generator

145.7k](/packages/tecnocen-yii2-formgenerator)

PHPackages © 2026

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