PHPackages                             azuracast/azuraforms - 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. azuracast/azuraforms

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

azuracast/azuraforms
====================

A modern, namespaced, configuration-driven forms engine for PHP.

1.2(6y ago)232.5k↑53.8%4[1 issues](https://github.com/AzuraCast/azuraforms/issues)MITPHPPHP &gt;=7.2

Since Feb 12Pushed 4y ago1 watchersCompare

[ Source](https://github.com/AzuraCast/azuraforms)[ Packagist](https://packagist.org/packages/azuracast/azuraforms)[ Docs](https://github.com/AzuraCast/azuraforms)[ RSS](/packages/azuracast-azuraforms/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (3)Used By (0)

AzuraForms
==========

[](#azuraforms)

AzuraForms is a lightweight, self-contained forms engine, analogous to Zend Forms or Symfony Forms (but without framework dependencies), that allows you to build forms as PHP arrays, then automate both the rendering of the form on the client-side and the server-side processing and validation of form input.

Some features of AzuraForms include:

- Automatic CSRF session tokens generated each time a form is rendered and checked upon submission.
- Built-in escaping of user input when displayed in forms
- Support for fieldsets
- The ability to specify a sub-array for each field, from which data will be populated and input will be stored
- Support for file uploads and verification of uploaded file type
- Automatic detection of the necessary "enctype" parameter for the form, based on whether file elements are present

By default, AzuraForms' HTML output uses the standard Bootstrap 3 form template style.

The original purpose of this project was to provide a lightweight forms engine to power the [AzuraCast](https://github.com/AzuraCast/AzuraCast) application. You can find good examples of even [very complex forms](https://github.com/AzuraCast/AzuraCast/blob/master/app/config/forms/station.conf.php) being rendered with AzuraForms in that application.

### Installing

[](#installing)

AzuraForms is a Composer package that you can include in your project by running:

```
composer require azuracast/azuraforms
```

### Quick Start

[](#quick-start)

The configuration array AzuraForms uses looks like this:

```
