PHPackages                             pieceofcake2/localized - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Localization &amp; i18n](/categories/localization)
4. /
5. pieceofcake2/localized

ActiveCakephp-plugin[Localization &amp; i18n](/categories/localization)

pieceofcake2/localized
======================

CakePHP 2 Localized Plugin

v2.7.1(7mo ago)00MITPHPPHP ^8.0CI passing

Since Oct 5Pushed 7mo agoCompare

[ Source](https://github.com/pieceofcake2/localized)[ Packagist](https://packagist.org/packages/pieceofcake2/localized)[ RSS](/packages/pieceofcake2-localized/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelogDependencies (7)Versions (2)Used By (0)

CakePHP 2 Localized plugin
==========================

[](#cakephp-2-localized-plugin)

[![GitHub License](https://camo.githubusercontent.com/1285937f39f31d5184c3f84ae61de1aff3b6ccc909bba5f5a64ce7a2d12da42d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f70696563656f6663616b65322f6c6f63616c697a65643f6c6162656c3d4c6963656e7365)](LICENSE)[![Packagist Version](https://camo.githubusercontent.com/ebc929dcfabe06cf8e4c0a9dd64901a942c16ac618fcace5f06f905509fe1996/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70696563656f6663616b65322f6c6f63616c697a65643f6c6162656c3d5061636b6167697374)](https://packagist.org/packages/pieceofcake2/localized)[![PHP](https://camo.githubusercontent.com/a274cba09e90085ad404070ef876603edf349a23dbb9d195a4d35f5576ad11d0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f70696563656f6663616b65322f6c6f63616c697a65642f7068703f6c6f676f3d706870266c6f676f436f6c6f723d253233464646464646266c6162656c3d504850266c6162656c436f6c6f723d25323337373742423426636f6c6f723d253233464646464646)](https://camo.githubusercontent.com/a274cba09e90085ad404070ef876603edf349a23dbb9d195a4d35f5576ad11d0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f70696563656f6663616b65322f6c6f63616c697a65642f7068703f6c6f676f3d706870266c6f676f436f6c6f723d253233464646464646266c6162656c3d504850266c6162656c436f6c6f723d25323337373742423426636f6c6f723d253233464646464646)[![CakePHP](https://camo.githubusercontent.com/92860b4902ca0cdfb38d710e8a64660a157665d6b5ac07dde05a789185f7b08e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f70696563656f6663616b65322f6c6f63616c697a65642f70696563656f6663616b65322f63616b657068703f6c6f676f3d63616b65706870266c6f676f436f6c6f723d253233464646464646266c6162656c3d43616b65504850266c6162656c436f6c6f723d25323344333343343326636f6c6f723d253233464646464646)](https://camo.githubusercontent.com/92860b4902ca0cdfb38d710e8a64660a157665d6b5ac07dde05a789185f7b08e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f70696563656f6663616b65322f6c6f63616c697a65642f70696563656f6663616b65322f63616b657068703f6c6f676f3d63616b65706870266c6f676f436f6c6f723d253233464646464646266c6162656c3d43616b65504850266c6162656c436f6c6f723d25323344333343343326636f6c6f723d253233464646464646)[![CI](https://camo.githubusercontent.com/2460483305ec545f37c0af3b97278395207834170d17ea48072d8946412e33d7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f70696563656f6663616b65322f6c6f63616c697a65642f43492e796d6c3f6c6162656c3d4349)](https://github.com/pieceofcake2/localized/actions/workflows/CI.yml)[![Codecov](https://camo.githubusercontent.com/5a2a9f8c1b10767491abbff40599e4fd8c64348c07100a417dfbf6581212f2b3/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f67682f70696563656f6663616b65322f6c6f63616c697a65643f6c6162656c3d436f766572616765)](https://codecov.io/gh/pieceofcake2/localized)

**This is forked for CakePHP2.**

This plugin contains various localized validation classes for specific countries.

Requirements
------------

[](#requirements)

The master branch has the following requirements:

- CakePHP 2.1.0 or greater.
- PHP 8.0 or greater.

Installation
------------

[](#installation)

Install the plugin with [Composer](https://getcomposer.org/):

```
composer require pieceofcake2/localized
```

Then load the plugin in `app/Config/bootstrap.php`:

```
CakePlugin::load('Localized');
```

Model validation
----------------

[](#model-validation)

Localized validation classes can be used for validating model fields.

```
