PHPackages                             smartsolutionsitaly/cakephp-locale-type - 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. [Database &amp; ORM](/categories/database)
4. /
5. smartsolutionsitaly/cakephp-locale-type

ActiveCakephp-plugin[Database &amp; ORM](/categories/database)

smartsolutionsitaly/cakephp-locale-type
=======================================

Locale type for CakePHP

1.0.1(6y ago)0352MITPHP

Since Sep 3Pushed 6y agoCompare

[ Source](https://github.com/smartsolutionsitaly/cakephp-locale-type)[ Packagist](https://packagist.org/packages/smartsolutionsitaly/cakephp-locale-type)[ Docs](https://github.com/smartsolutionsitaly/cakephp-locale-type)[ RSS](/packages/smartsolutionsitaly-cakephp-locale-type/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (1)Versions (3)Used By (2)

cakephp-locale-type
===================

[](#cakephp-locale-type)

[![LICENSE](https://camo.githubusercontent.com/ad0a306b85b04cb131dc95aa18f0d66349c3811ee180b1b6b4b4eff12c5caae9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f736d617274736f6c7574696f6e736974616c792f63616b657068702d6c6f63616c652d747970652e737667)](LICENSE)[![packagist](https://camo.githubusercontent.com/c0798d65a92e694bb127becca7914c3294b1a0e2e3552e716192d09d7e3df4ab/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b61676973742d736d617274736f6c7574696f6e736974616c7925324663616b657068702d2d6c6f63616c652d2d747970652d627269676874677265656e2e737667)](https://packagist.org/packages/smartsolutionsitaly/cakephp-locale-type)[![issues](https://camo.githubusercontent.com/4c66e8bc7e583aacb5e16e54d3de7eafd411be2c22d9d735fd76f1b0a6d10aba/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f736d617274736f6c7574696f6e736974616c792f63616b657068702d6c6f63616c652d747970652e737667)](https://github.com/smartsolutionsitaly/cakephp-locale-type/issues)[![CakePHP](https://camo.githubusercontent.com/fc9bbc2657f6a0eb38db6e6c0ef4fa43fd571fd65ad6c5eb4131bc028b1e5876/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f43616b655048502d332e362532422d627269676874677265656e2e737667)](https://github.com/cakephp/cakephp)

Locale type for [CakePHP](https://github.com/cakephp/cakephp)

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

[](#installation)

You can install *cakephp-locale-type* into your project using [Composer](https://getcomposer.org).

```
$ composer require smartsolutionsitaly/cakephp-locale-type
```

Setup
-----

[](#setup)

Insert at the bottom of your *config/bootstrap.php* file the following line:

```
Type::map('locale', 'SmartSolutionsItaly\CakePHP\Database\Type\LocaleType');
```

And add or edit the method \_*initializeSchema* in your *Table* classes.

```
protected function _initializeSchema(\Cake\Database\Schema\TableSchema $schema)
{
    $schema->setColumnType('your_column_name', 'locale');

    return $schema;
}
```

License
-------

[](#license)

Licensed under The MIT License For full copyright and license information, please see the [LICENSE](LICENSE)Redistributions of files must retain the above copyright notice.

Copyright
---------

[](#copyright)

Copyright (c) 2018-2019 Smart Solutions S.r.l. ()

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~262 days

Total

2

Last Release

2545d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e7ea26c285d2fb8797369adeb31e5771d4613baafa25bee6293125fd76a9fc51?d=identicon)[smartsolutions](/maintainers/smartsolutions)

---

Top Contributors

[![DevSmartSolutions](https://avatars.githubusercontent.com/u/26815179?v=4)](https://github.com/DevSmartSolutions "DevSmartSolutions (6 commits)")

---

Tags

typedatabasecakephplocale

### Embed Badge

![Health badge](/badges/smartsolutionsitaly-cakephp-locale-type/health.svg)

```
[![Health](https://phpackages.com/badges/smartsolutionsitaly-cakephp-locale-type/health.svg)](https://phpackages.com/packages/smartsolutionsitaly-cakephp-locale-type)
```

###  Alternatives

[dereuromark/cakephp-databaselog

A CakePHP plugin for storing and viewing application logs in the database

44165.0k2](/packages/dereuromark-cakephp-databaselog)[webparking/laravel-type-safe-collection

This package provides type-safe extension of the laravel collection, forcing a single type of object.

378.2k](/packages/webparking-laravel-type-safe-collection)[imsamurai/cakephp-serializable-behaviour

Behavior for saving and reading serialized data from/into database

147.7k3](/packages/imsamurai-cakephp-serializable-behaviour)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
