PHPackages                             deathnerd/php-wtforms - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. deathnerd/php-wtforms

AbandonedLibrary[Validation &amp; Sanitization](/categories/validation)

deathnerd/php-wtforms
=====================

A PHP rewrite of the fantastic Python library WTForms

0.5.2(9y ago)47483[5 issues](https://github.com/Deathnerd/php-wtforms/issues)GPL-2.0PHPPHP &gt;=5.5CI passing

Since May 30Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/Deathnerd/php-wtforms)[ Packagist](https://packagist.org/packages/deathnerd/php-wtforms)[ RSS](/packages/deathnerd-php-wtforms/feed)WikiDiscussions master Synced 1mo ago

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

php-wtforms
===========

[](#php-wtforms)

A PHP rewrite of the fantastic Python library WTForms.

I do not take credit for the idea behind WTForms or anything related to its original implementation. I just bastardized it and ported it to PHP.

Install
=======

[](#install)

Add the following line to the `require` portion of your `composer.json`

```
"deathnerd/php-wtforms":"0.5.2"
```

or if you're feeling froggy, pull in the cutting edge master release

```
"deathnerd/php-wtforms":"dev-master"
```

or run the following command from your favorite terminal for the stable version

```
composer require deathnerd/php-wtforms:0.5.2
```

or for the bleeding edge dev release

```
composer require deathnerd/php-wtforms:dev-master
```

Note: The dev-master version is not guaranteed to be stable.

Quick Start
===========

[](#quick-start)

To create a simple login-form it's as simple as this:

### LogInForm.php

[](#loginformphp)

```
