Download the PHP package wenprise/forms without Composer

On this page you can find all versions of the php package wenprise/forms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package forms

wenprise-forms

Extend Nette Forms for WordPress use.

Basic usage: Nette Form

Features

Requirements

Installation

Option A: Install as a Composer library

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

Composer library mode

WordPress plugin mode

Quick Start (Minimal Working Example)

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

Usage

Quick start

Forms includes its own HTTP request handling flow, so instantiate it before head_sent, usually in the init action.

Create a Form instance

``

Frontend Assets

Some fields depend on JavaScript/CSS widgets (for example: Slider, Chosen, Date Picker, Signature, Star Rating, Autocomplete, Chained Select).

Security Notes

Set Required

Add rule

Rule Documentation

Add field description

With Html

Set condition display

Control width

setWidth() supports both Bootstrap-based renderers and TailwindGridFormRender.

You can also define responsive widths with breakpoint names:

Or use the shorthand form:

The shorthand above means:

With DefaultFormRender('vertical') and InlineFormRender(), setWidth() is mapped to Bootstrap-style classes such as rs-col-md-4.

With TailwindGridFormRender('vertical'), setWidth() is mapped to grid span classes such as rs-grid-form__span-md-4.

DefaultFormRender('horizontal') keeps each field full width by design, so width settings are ignored there.

Repeater

Use addRepeater() to build repeatable field groups.

addRepeater() arguments:

Submitted values are returned as nested arrays and can be stored by the built-in datastore layer.

Multiple Submit Button

Use html in label or description

Set Datastore

Custom Settings Page Example

Use OptionsDatastore to build a WordPress admin settings page quickly.

Tab Groups

Use tab groups to split long forms into multiple panels.

Tabs are rendered automatically through the existing render flow ($form->render() / echo $form), so no extra render method is required.

Submit buttons created inside tab groups are rendered outside tab panes automatically, so the save action stays visible.

You can also use underscore naming method:

Stepper Groups

Use stepper groups to render a progress bar with previous and next step actions.

You can also use underscore naming method:

If you render inside a shortcode callback, return the form HTML instead of echoing:

Fields

nonce field

``

WordPress Tinymce editor

Settings

``

Ajax uploader

Uploader backend sample.

``

Slider input

Setting

``

Data Picker

Setting

``

Color Picker

Setting

``

Chosen

``

Multi Chosen

``

Signature Field

``

Star rating input

``

Image Select

``

Autocomplete Input

Source is an array or a url returns an array.

If Source is an ajax url, the backend need return data as bellow.

Table input

``

Group Input

Set a prefix or suffix for text input.

``

SMS input

Send SMS code

Backend Example

Captcha Input

``

Chained Select

``

Captcha backend sample.

``

``


All versions of forms with dependencies

PHP Build Version
Package Version
Requires ext-json Version *
php Version >=8.3
nette/forms Version ^3.2
nette/utils Version ^4.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package wenprise/forms contains the following files

Loading the files please wait ...