Download the PHP package ray/web-form-module without Composer

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

Ray.WebFormModule

Scrutinizer Code Quality Code Coverage Build Status

An aspect oriented web form module powered by Aura.Input and Ray.Di.

Getting Started

Installation

Composer install

$ composer require web-form-module

Module install

Usage

Form class

We provide two methods on self-initializing form class, one is init() method where we add an input field on form and apply fileters and rules. The other method method is submit() where it submit data. See more detail at Aura.Input self-initializing forms.

Controller

We annotate the methods which web form validation is required with @FormValidation. We can specify form object property name with name and failiure method name with @onFailure.

View

You can render entire form html when __toString is given.

or render input element basis.

CSRF Protections

You can provide your custom AntiCsrf class. See more detail at Aura.Input

Validation Exception

When we install Ray\WebFormModule\FormVndErrorModule as following,

A Ray\WebFormModule\Exception\ValidationException will be thrown. We can echo catched exception to get application/vnd.error+json media type.

More detail for vnd.error+jsoncan be add with @VndError annotation.

This optional module is handy for API application.

Demo

$ php -S docs/demo/1.csrf/web.php

All versions of web-form-module with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
ray/di Version ^2.7
aura/input Version ^1.2
aura/filter Version ^2.3|3.x-dev
aura/html Version ^2.5
ray/aura-session-module Version ^1.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 ray/web-form-module contains the following files

Loading the files please wait ....