Download the PHP package maplephp/form without Composer

On this page you can find all versions of the php package maplephp/form. 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 form

MaplePHP - Form builder

Create advanced, consistent and secure forms and validations.

1. Initiate

It is recommended that you make a copy off AbstractFormFields class, make it to a regualar class, rename it and extend it to the real AbstractFormFields abstract class. Then you can start making and adding your own custom input fields.

Basic: You can either quick create one field form the fields template

$fields->[FIELD_TYPE]->[ARG1]->[ARG2]->get(); FIELD_TYPE: Method name from Form\Templates\Fields ARG: Chainable arguments like input name, fields attributes, validations and so on.

Advance:

Use the form compiler for advance consistent form creation and validation. Works really great in frameworks and large applications.

Create fields

Field config

type (string)

Expects defined form type key Example: text, textarea, date, select, checkbox, radio and more. Required

label (string)

Define a input label Example: Email address

description (string)

Define a input label Example: We need your email to…

attr (array)

Add html attributens to field Example:

items (array)

Add checkbox, radio or select list items. Example:

Is required for field types like select, checkbox and radio.

validate (array)

Add validation to form field Example:

The exclamation point before the email key means that it will only validate email if it is filled in else skip or do the other validation.

config (multidimensional array)

Pass on custom data for a custom field. Example:

Examples:

1. Create form with array

Build a whole form with array as bellow

2. Set values if you want

If you have values from for example the database (accepts multidimensional array and object)

3. Build the form

You will allways need to build the form before read or validations.

4. Read form

Now you can read the form.

5. Validate form

Now you can read the form.


All versions of form with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
maplephp/dto Version ^1.0
maplephp/validate Version ^1.0
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 maplephp/form contains the following files

Loading the files please wait ....