Download the PHP package tobento/app-validation without Composer

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

App Validation

Validation support for the app.

Table of Contents

Getting Started

Add the latest version of the app validation project running this command.

Requirements

Documentation

App

Check out the App Skeleton if you are using the skeleton.

You may also check out the App to learn more about the app in general.

Validator Boot

The validator boot does the following:

Validate Data

You can validate data using the . You can access the validator in several ways:

Check out the Validation Service - Validating section learn more about validating data in general.

Using the app

Using autowiring

You can also request the in any class resolved by the app.

Adding Rules

The Default Rules are available by default. You may add more rules by the following way:

You may check out the Rules section to learn more about adding rules.

Message Translation

Simply, install the App Translation bundle and boot the :

Messages will be translated based on the Configured Translator Locale.

By default, the Default Rules error messages are translated in and .

Check out the Add Translation section to learn how to add translations.

Make sure you define the resource name for rule error messages as configured on the Message Translator Modifier. The Message Parameter Translator Modifier uses the as resource name.

Http Validation

Http Requirements

The following app example shows the minimum requirements for the http validation.

First, install the App Http bundle:

In addition, you may install the App View bundle for view support:

Next, make sure the following boots are defined:

Using Validation Request

You may use the for validating the request input.

By default, a will be thrown if validation fails. The exception will be handled by the if booted. See Http Validation Error Handler Boot.

You may check out the following links for its documentation:

Manually handling validation

Http Validation Error Handler Boot

The http error handler boot does the following:

When the incoming HTTP request is expecting a JSON response, the error handler will return a 422 Unprocessable Entity HTTP response with the following format:

Otherwise, the error handler will return a redirect response by using the defined parameter from the or if not defined using the uri:

Furthermore, you may create a custom Error Handler or add an Error Handler With A Higher Priority of as defined on the .

Live Validation

In progress...

Credits


All versions of app-validation with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
tobento/app Version ^1.0
tobento/app-migration Version ^1.0
tobento/service-validation Version ^1.0
tobento/service-message Version ^1.0.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 tobento/app-validation contains the following files

Loading the files please wait ....