Download the PHP package tanoconsulting/datavalidatorbundle without Composer

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

Data Validator Bundle

Goals

Allow checking integrity of data in a database, going beyond what the database schema definition enforces.

Allow checking the integrity of a set of files (WIP).

Usecase

There are many scenarios in which usage of the constraints configured in a database schema is not sufficient to enforce data integrity, such as f.e.:

In all those cases, a separate tool which can validate that the data stored in the database adheres to a set of rules can come in handy.

Requirements

Quick start

  1. the set of constraints can be defined in a yaml or json file. This sample shows the supported syntax, using yaml:

  2. run the validation command

    php bin/console datavalidator:validate:database --config-file=<my_schema_constraints.yaml>

    This presumes that your application has set up a database connection configuration doctrine named default. If that is not the case, you can run:

    php bin/console datavalidator:validate:database --config-file=<my_schema_constraints.yaml> --database=<mysql://user:pwd@localhost/mydb>

    If you want to list the validations constraints without validating them run:

    php bin/console datavalidator:validate:database --config-file=<my_schema_constraints.yaml> --dry-run

    By default the results show the number of database rows found which violate each constraint. To see the data of those rows instead, use:

    php bin/console datavalidator:validate:database --config-file=<my_schema_constraints.yaml> --display-data

Constraints currently supported

See the doc/samples folder for examples constraints of well-known applications' database schemas.

More advanced usage

Defining validation constraints in your code

Instead of using a dedicated configuration file on the command line, you can configure the validation constraints in code, either:

Creating your own constraint types

WIP

Troubleshooting

FAQ

Thanks

Code based on the Symfony/Validator component; thanks to all its developers!

License Latest Stable Version Total Downloads


All versions of datavalidatorbundle with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3|^8.0
ext-json Version *
doctrine/dbal Version ^2.11|^3.0
symfony/console Version ^5.0.0
symfony/dependency-injection Version ^5.0.0
symfony/event-dispatcher Version ^5.0.0
symfony/finder Version ^5.0.0
symfony/yaml Version ^5.0.0
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 tanoconsulting/datavalidatorbundle contains the following files

Loading the files please wait ....