PHPackages                             flextype-components/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. flextype-components/form

ActiveLibrary

flextype-components/form
========================

Form component allows you to easily create HTML forms.

v1.0.2(7y ago)03.2kMITPHPPHP ^7.1.3

Since May 11Pushed 7y ago1 watchersCompare

[ Source](https://github.com/flextype-components/form)[ Packagist](https://packagist.org/packages/flextype-components/form)[ Docs](https://github.com/flextype-components/form)[ RSS](/packages/flextype-components-form/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

Form Component
==============

[](#form-component)

[![version](https://camo.githubusercontent.com/cda2c28632ce711935820a5cfc2059c55b5cce2bf4b345e6ed787bacc09f3db2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d312e302e322d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265 "Version")](https://camo.githubusercontent.com/cda2c28632ce711935820a5cfc2059c55b5cce2bf4b345e6ed787bacc09f3db2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d312e302e322d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)[![MIT License](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/flextype-components/form/blob/master/LICENSE)

Form component allows you to easily create HTML forms.

### Installation

[](#installation)

```
composer require flextype-components/form

```

### Usage

[](#usage)

```
use Flextype\Component\Form\Form;
```

Registers a custom macro.

```
// Registering a Form macro
Form::macro('my_field', function() {
    return '';
});

// Calling a custom Form macro
echo Form::my_field();

// Registering a Form macro with parameters
Form::macro('my_field', function($value = '') {
    return '';
});

// Calling a custom Form macro with parameters
echo Form::my_field('Flextype');
```

Create an opening HTML form tag.

```
// Form will submit back to the current page using POST
echo Form::open();

// Form will submit to 'search' using GET
echo Form::open('search', array('method' => 'get'));

// When "file" inputs are present, you must include the "enctype"
echo Form::open(null, array('enctype' => 'multipart/form-data'));
```

Create a form input. Text is default input type.

```
echo Form::input('username', $username);
```

Create a hidden form input.

```
echo Form::hidden('user_id', $user_id);
```

Creates a password form input.

```
echo Form::password('password');
```

Creates a file upload form input.

```
echo Form::file('image');
```

Creates a checkbox form input.

```
echo Form::checkbox('i_am_not_a_robot');
```

Creates a radio form input.

```
echo Form::radio('i_am_not_a_robot');
```

Creates a textarea form input.

```
echo Form::textarea('text', $text);
```

Creates a select form input.

```
echo Form::select('themes', array('default', 'classic', 'modern'));
```

Creates a submit form input.

```
echo Form::submit('save', 'Save');
```

Creates a button form input.

```
echo Form::button('save', 'Save Profile', array('type' => 'submit'));
```

Creates a form label.

```
echo Form::label('username', 'Username');
```

Create closing form tag.

```
echo Form::close();
```

License
-------

[](#license)

See [LICENSE](https://github.com/flextype-components/form/blob/master/LICENSE)

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

3

Last Release

2706d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/477114?v=4)[Sergey Romanenko](/maintainers/Awilum)[@Awilum](https://github.com/Awilum)

---

Top Contributors

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

---

Tags

form

### Embed Badge

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

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

###  Alternatives

[vluzrmos/collective-html

LaravelCollective Html and Form builder for Lumen.

2523.9k](/packages/vluzrmos-collective-html)[lrgt/laravel-form-ajax-validation

Make ajax validation with Laravel Requests for forms with bootstrap

435.6k](/packages/lrgt-laravel-form-ajax-validation)

PHPackages © 2026

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