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

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

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 2w 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 41% 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

2604d ago

PHP version history (2 changes)0.0.1PHP ^7.1

0.4.0PHP ^7.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5250815?v=4)[Spaceful Species](/maintainers/SpacefulSpecies)[@SpacefulSpecies](https://github.com/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

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k34](/packages/neuron-core-neuron-ai)[google/cloud-core

Google Cloud PHP shared dependency, providing functionality useful to all components.

346132.9M110](/packages/google-cloud-core)[spatie/laravel-export

Create a static site bundle from a Laravel app

673139.5k6](/packages/spatie-laravel-export)[razorpay/ifsc

Razorpay IFSC Codes Library

385204.4k](/packages/razorpay-ifsc)[anthropic-ai/sdk

Anthropic PHP SDK

163372.1k15](/packages/anthropic-ai-sdk)

PHPackages © 2026

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