Download the PHP package flikore/validator without Composer

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

Flikore Validator

A simple validation library

Build Status Coverage Status

Flikore Validator is a validation library for PHP aimed to be simple, powerful, object oriented and extensible. It also focus on code and objects reuse, both in the library itself and in the projects that rely on the Validator.

There are many others validators for PHP, of course. Respect/Validation, for example, is very thorough and has a lot of validators ready to be used. The system for error messages, however, is problematic and was one of the reasons for Flikore Validator to arise. Valitron is very simple and minimalistic, but it validates only arrays (not single values) and doesn't work with objects like Respect and Flikore do.

Instalation

Composer

Composer is the preferred method to install this validator. Simply add to your composer.json:

Run composer install, then include the autoload file in your project:

Installing with Git

An alternative is to create a submodule instead of cloning the repository. This way you don't need to push this library to your own repository and can also update it more easily:

Download

You can also download the tarball (or the zipball) and set it up in one of your project folders.

How to use

To show how simple it is to use, see the following example:

For more examples and information, see the usage page.

Also, see the examples folder, as it shows most (if not all) of the features.

Extensibility

New validators can be added simply by extending the base class.

Available validators

Currently, there are the following validator classes (click to see the API documentation):

Contributing

Flikore Validator is an open source project and, for now, maintained by a single person (George Marques). If you want to help, there are many ways to do so.

Issues

The easiest way is to open an issue on GitHub. It'll be checked soon and updated within reason. There are some personal goals to this project, so not all suggestions can be achieved.

Pull request

If you are a developer and want to contribute with code, first understand that this project follows the TDD practice, so you need to ship your code with the unit tests. After that, just send a pull request on GitHub and it'll be looked.

Check the guidelines in the CONTRIBUTE.md file.


All versions of validator with dependencies

PHP Build Version
Package Version
No informations.
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 flikore/validator contains the following files

Loading the files please wait ....