PHPackages                             species/html-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. species/html-form

ActiveLibrary

species/html-form
=================

HTML form building and handling.

0.4.5(7y ago)0199MITPHPPHP ^7.2

Since Feb 21Pushed 7y ago1 watchersCompare

[ Source](https://github.com/SpacefulSpecies/html-form)[ Packagist](https://packagist.org/packages/species/html-form)[ RSS](/packages/species-html-form/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (2)Versions (24)Used By (0)

Html Form
=========

[](#html-form)

Install
-------

[](#install)

```
composer require species/html-form
```

Contract
--------

[](#contract)

### Node

[](#node)

#### Node

[](#node-1)

```
getName(): string
getShortName(): string
getParent(): ?ParentNode

setParent(?ParentNode $parent): void
clone(): Node

```

#### LeafNode

[](#leafnode)

```
+ Node

```

#### ParentNode

[](#parentnode)

```
+ Node, NodeCollection

```

#### NodeCollection

[](#nodecollection)

```
+IteratorAggregate
+ArrayAccess
+Countable

```

### Value

[](#value)

#### StringValue

[](#stringvalue)

```
getValue(): string
getDefaultValue(): string

getError(): ?string;

submit(string $value, array $context  = []): mixed
reset(?string $newDefaultValue = null): void

```

#### ArrayValue

[](#arrayvalue)

```
getValues(): array
getDefaultValues(): array

getError(): ?string;
getErrors(): array

submit(array $values, array $context  = []): mixed
reset(?array $newDefaultValues = null): void

```

### Form

[](#form)

#### Form

[](#form-1)

```
+ ArrayValue
+submit(array $values, array $context  = []): bool

fields: FieldSet

```

#### FieldSet

[](#fieldset)

```
+ ParentNode, ArrayValue

```

#### FieldList

[](#fieldlist)

```
+ ParentNode, ArrayValue

getPrototype(): (cloned) Node

```

### Fields

[](#fields)

#### InputField

[](#inputfield)

```
+ LeafNode, StringValue

TYPES: [
   'text', 'search', 'hidden', 'password',
   'email', 'tel', 'url', 'number', 'range', 'color',
   'date', 'time', 'datetime-local', 'week', 'month',
]
getType(): string

```

#### TextareaField

[](#textareafield)

```
+ LeafNode, StringValue

```

#### CheckboxField

[](#checkboxfield)

```
+ LeafNode, StringValue

isChecked(): bool

```

#### RadioFields

[](#radiofields)

```
+ ParentNode, StringValue

getOptions(): string[]

```

#### RadioField

[](#radiofield)

```
+ LeafNode, StringValue

isChecked(): bool

```

#### SelectField

[](#selectfield)

```
+ LeafNode, StringValue

getOptions(): string[]

```

#### SelectMultipleField

[](#selectmultiplefield)

```
+ LeafNode, ArrayValue

getOptions(): string[]

```

#### SubmitField

[](#submitfield)

```
+ LeafNode, StringValue

isClicked(): bool

```

### TODO

[](#todo)

#### UploadField

[](#uploadfield)

```
+ LeafNode, StringValue

```

#### UploadMultipleField

[](#uploadmultiplefield)

```
+ LeafNode, ArrayValue

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Total

23

Last Release

2558d ago

PHP version history (2 changes)0.0.1PHP ^7.1

0.4.0PHP ^7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/70830436c2fb1a7496c64b71158b9d162de428bbcca0e6218cadf08a32c1235f?d=identicon)[SpacefulSpecies](/maintainers/SpacefulSpecies)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[mpdf/mpdf

PHP library generating PDF files from UTF-8 encoded HTML

4.7k77.1M493](/packages/mpdf-mpdf)[league/uri-interfaces

Common tools for parsing and resolving RFC3987/RFC3986 URI

538204.9M23](/packages/league-uri-interfaces)[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[php-heroku-client/php-heroku-client

A PHP client for the Heroku Platform API

24404.8k4](/packages/php-heroku-client-php-heroku-client)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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