Download the PHP package drw/php-form without Composer

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

As a web programmer, you know form is an integral part of the web(infact, the web engine, almost all we do is based on form). Now, to create a complete form that is not easily hackable, you need to include csrftoken, escaping to prevent XXS attacks, and the potential complications of handling one-to-many relationships they’re really too tedious to code from scratch every time, and, if you forget the csrftoken or a call to htmlspecialchars, you have a security hole. So, I created this Form plugin that has methods for many of the elements that a form can contain, and you can easily add additional methods as needed.

Usage Installing the plug-in You can install the plug-in in two ways through

  1. composer composer require drw/php-form(recommended)
  2. You can download the package, extract it and it include or require it

Supported HTML input type The supported input types include The form start: begins the form and outputs the opening <form ...> tag, with two optional arguments. The first is an array of values to be displayed, indexed by field name. Typically, it’s the$_POST array from another form submittal or a row retrieved from the database. The second argument is the action, but almost always you want to go back to the same file. The csrftoken is placed into every form.

form end finishes the form. The text method: text($field, $label/*could be null*/, $len/* default is 50*/, $placeholder/* Could also be null*/, $break/*default is true*/, $password/*this incdicates if the field is password or text*/, $value )

The label method: label($field, $label/*the label could be null*/, $break/*break could be true or false*/)

The button method: button($field, $label/*The label could be null*/, $break/*default is true but coud also be false)

The hspace method: hspace(/*It recieve no parameter*/)

The checkbox method: checkbox($field, $label/*this parameter could also be null*/, $break/*break could be true or false*/)

The radio method: radio($field, $label/*this parameter could also be null*/, $value, $break/*break could be true or false*/)

The date plugin date($field, $label/*this parameter could also be null*/, $break/*break could be true or false*/)

This is an example of how to use it.

require __DIR__ . '/path/to/file';// Supposing you use the second method to use this plugin,


All versions of php-form with dependencies

PHP Build Version
Package Version
No informations.
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 drw/php-form contains the following files

Loading the files please wait ....