PHPackages                             wenprise/forms - 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. wenprise/forms

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

wenprise/forms
==============

Extend Nette Forms for WordPress use.

v3.1.3(1mo ago)6817MITPHPPHP &gt;=8.3

Since Dec 30Pushed 3w ago1 watchersCompare

[ Source](https://github.com/iwillhappy1314/wenprise-forms)[ Packagist](https://packagist.org/packages/wenprise/forms)[ RSS](/packages/wenprise-forms/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (10)Dependencies (4)Versions (99)Used By (0)

wenprise-forms
==============

[](#wenprise-forms)

Extend Nette Forms for WordPress use.

Basic usage: [Nette Form](https://doc.nette.org/en/forms/standalone)

Features
--------

[](#features)

- Supports both Composer library mode and WordPress plugin mode
- Extends Nette Forms with WordPress-ready fields and UI widgets
- Includes form validation, conditional display, datastore integration, and AJAX-friendly inputs

Requirements
------------

[](#requirements)

- PHP `>=8.3`
- `ext-json`
- `nette/forms ^3.2`
- `nette/utils ^4.1`
- WordPress `>=6.0` (recommended)

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

[](#installation)

### Option A: Install as a Composer library

[](#option-a-install-as-a-composer-library)

```
composer require wenprise/forms
```

### Option B: Install as a WordPress plugin

[](#option-b-install-as-a-wordpress-plugin)

1. Clone or download this repository into `wp-content/plugins/wenprise-forms`.
2. Run `composer install` inside the plugin directory.
3. Activate `Wenprise Forms` in WordPress admin.

Runtime Modes
-------------

[](#runtime-modes)

### Composer library mode

[](#composer-library-mode)

- Your project is responsible for loading Composer autoload.
- Your code decides when and where to bootstrap the form objects.

### WordPress plugin mode

[](#wordpress-plugin-mode)

- Plugin entry file `wenprise-forms.php` loads `vendor/autoload.php` automatically.
- Plugin bootstraps with `new \Wenprise\Forms\Init();`.

Quick Start (Minimal Working Example)
-------------------------------------

[](#quick-start-minimal-working-example)

Forms has its own HTTP request handling flow. Instantiate it before `head_sent`, usually on `init`.

```
