Download the PHP package vection-framework/validator without Composer

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

release QA PHPStan

Vection Validator

PHP Validator for data and schema validation

This vection component provides a data and schema validator for PHP. You can use it from validate simple values up to big data arrays via chained validators. This component also provides a schema based validation of data structures. The flexible and open closed aspect of vection components allows to extend and modify the most classes of this component or define custom validator classes. This component can be used for the following scenarios:

Installation

Vection Components supports only installation via composer. So first ensure your composer is installed, configured and ready to use.

Simple value validation

Data set validation by chained validators

Using custom validator implementation

Schema based data structure validation

The schema validator uses a json schema definition to validate the given data structure by json/yaml file, json/yaml strings or data array.

The base of each schema

The schema starts always with an object which must have properties and optional reusable template definitions.

String
Integer/Float
Object with fixed property names

Use @properties for fixed property names to ensure that this keys are set with an value.

Object with variable property names

Use @property for variable property names to allow multiple properties with different names but same property schema definition.

Array of properties

Use the array type to define an array property which contains elements by schema defined in @property.

Schema property validators

The schema definition can use the validators of this component to validate a schema property value.

Schema property templates

Use can use templates to reuse on different properties. The templates are defined at the root of the schema and is an object contains multiple names templates.


All versions of validator with dependencies

PHP Build Version
Package Version
Requires vection-framework/contracts Version dev-master
php Version ^7.2
ext-json Version *
ext-ctype Version *
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 vection-framework/validator contains the following files

Loading the files please wait ....