Download the PHP package sllh/iso-codes-validator without Composer

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

IsoCodesValidator

Symfony validator wrapper of IsoCodes project.

Latest Stable Version Latest Unstable Version License Dependency Status Reference Status

Total Downloads Monthly Downloads Daily Downloads

Build Status AppVeyor Status Scrutinizer Code Quality Code Climate Coverage Status SensioLabsInsight

Installation

First of all, you need to require this library through composer:

After this, you can use it as is.

If you are using it on a Symfony project, you should read the following instructions for a better integration.

As a Symfony bundle

If your project is not using Symfony Full Stack, you must add the following dependencies:

Translations

If you wish to use default validator messages translations in this bundle, you have to make sure you have translator enabled in your config.

Enable the bundle

Usage

IsoCodesValidator is based on Symfony Validator library.

Manual usage

Create and use IsoCodes constraints by using the Symfony Validation class:

With annotations

Validation of objects is possible using "constraint mapping". With such a mapping you can put constraints onto properties and objects of classes. Whenever an object of this class is validated, its properties and method results are matched against the constraints.

Constraints reference

Constraints classes can be found on src/Constraints.

All works "as is" without any options unless message.

Only ZipCode constraint accept a country option to limit validation ('all' by default).

Please note that some IsoCodes classes are already implemented on Symfony Validator component. It's up to you to decide which one to use.

If you think an IsoCodes class is missing, feel free to open an issue or make a PR.

License

This bundle is under the MIT license. See the complete license on the LICENSE file.

TODO


All versions of iso-codes-validator with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0
ronanguilloux/isocodes Version ^2.3.4
symfony/translation Version ^4.4 || ^5.0
symfony/validator Version ^4.4 || ^5.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 sllh/iso-codes-validator contains the following files

Loading the files please wait ....