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

ActiveLibrary[Framework](/categories/framework)

leafs/form
==========

Simple straightup data validation

v3.2(1y ago)440.4k↓12.9%3[1 issues](https://github.com/leafsphp/form/issues)[1 PRs](https://github.com/leafsphp/form/pulls)3MITPHPCI passing

Since Sep 20Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/leafsphp/form)[ Packagist](https://packagist.org/packages/leafs/form)[ Docs](https://leafphp.dev/modules/forms/)[ GitHub Sponsors](https://github.com/leafsphp)[ Fund](https://opencollective.com/leaf)[ RSS](/packages/leafs-form/feed)WikiDiscussions v3.x Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (14)Used By (3)

 [![](https://camo.githubusercontent.com/e83224618735d048f0f70f04e02d7973a634a055e18d47fe22501e3a85e40b9f/68747470733a2f2f6c6561667068702e6e65746c6966792e6170702f6173736574732f696d672f6c656166332d6c6f676f2e706e67)](https://camo.githubusercontent.com/e83224618735d048f0f70f04e02d7973a634a055e18d47fe22501e3a85e40b9f/68747470733a2f2f6c6561667068702e6e65746c6966792e6170702f6173736574732f696d672f6c656166332d6c6f676f2e706e67)

Leaf Form Module
================

[](#leaf-form-module)

[![Latest Stable Version](https://camo.githubusercontent.com/01e7b477b042939fac7ccc99afe91ea7f30c5433f4b830c332240724aa88f52d/68747470733a2f2f706f7365722e707567782e6f72672f6c656166732f666f726d2f762f737461626c65)](https://packagist.org/packages/leafs/form)[![Total Downloads](https://camo.githubusercontent.com/f2bb3ee6ef1ffaa206488517c3094d12a86d6a9492dcb70a6c0e1a580cbc1ca8/68747470733a2f2f706f7365722e707567782e6f72672f6c656166732f666f726d2f646f776e6c6f616473)](https://packagist.org/packages/leafs/form)[![License](https://camo.githubusercontent.com/cdc11e26688b040442dbb0b84fff3db37d995fddb172d660f53bb603def7072b/68747470733a2f2f706f7365722e707567782e6f72672f6c656166732f666f726d2f6c6963656e7365)](https://packagist.org/packages/leafs/form)

Leaf's form validation functionality packaged as a serve-yourself module.

Installation
------------

[](#installation)

You can easily install Leaf using the Leaf CLI:

```
leaf install form
```

Or via [Composer](https://getcomposer.org/).

```
composer require leafs/form
```

Basic Usage
-----------

[](#basic-usage)

```
