Download the PHP package linmad/structure-type-validation without Composer

On this page you can find all versions of the php package linmad/structure-type-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 structure-type-validation

Structure Type Validation

Build Status Coverage Status

Light and simple structure validator. Do validation of yours structures as expected.

Where to use

Generally, if need to work with huge or complex structures and need to be sure the key and value types exist as expected. For example, you work with some API. Your system receives structure, the you must it validate and ways of that is different. One of that way is my, you can create a list of mandatory keys and types to validate structure. It' allows you to cut of wrong work, before executing heavy manipulation with data, for example serialization to object.

How it works

Analyzer will compare your structure with your structure mapping with strict types. Then if it founds some mismatches it will put error to bucket and after process you can view errors in bucket. In the end, you will receive a boolean and from that you can understand if structure valid as expected mapping.

In other words, it simply walks in your tree and checks needed keys exist and value type are correct.

Example of usage

For example, for your needs given some data in structure:

And you want to use like "schema", "map" or "structure" to overlay it. For example your map:

So, in your structure map key "order_description" not mandatory and you can accept it or skip. But others keys are strict and mandatory, so you didn't allow pass invalid data to your system.


All versions of structure-type-validation with dependencies

PHP Build Version
Package Version
Requires php Version >=7
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 linmad/structure-type-validation contains the following files

Loading the files please wait ....