PHPackages                             pieceofcake2/cakeplus - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. pieceofcake2/cakeplus

ActiveCakephp-plugin[Validation &amp; Sanitization](/categories/validation)

pieceofcake2/cakeplus
=====================

Cake plus is cakephp plugin and provides some functions for CakePHP.

v2.0.2(10mo ago)0321↓95.2%MITPHPPHP &gt;=8.0CI passing

Since Oct 5Pushed 10mo agoCompare

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

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

Cakeplus (CakePHP 2 Plugin)
===========================

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

[![GitHub License](https://camo.githubusercontent.com/f93095992310b9e3282ecd75c522fea0deda5504c7814c271ca9106868790820/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f70696563656f6663616b65322f63616b65706c75733f6c6162656c3d4c6963656e7365)](LICENSE)[![Packagist Version](https://camo.githubusercontent.com/44123a4c2a4b4748241110f1d141ac9b3a36a815e7497d9f959a4ab8957d2139/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70696563656f6663616b65322f63616b65706c75733f6c6162656c3d5061636b6167697374)](https://packagist.org/packages/pieceofcake2/cakeplus)[![PHP](https://camo.githubusercontent.com/d924c680304c3a76da880e9de74d58c37ce6e26689c6d311cb68a8d29361d292/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f70696563656f6663616b65322f63616b65706c75732f7068703f6c6f676f3d706870266c6f676f436f6c6f723d253233464646464646266c6162656c3d504850266c6162656c436f6c6f723d25323337373742423426636f6c6f723d253233464646464646)](https://camo.githubusercontent.com/d924c680304c3a76da880e9de74d58c37ce6e26689c6d311cb68a8d29361d292/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f70696563656f6663616b65322f63616b65706c75732f7068703f6c6f676f3d706870266c6f676f436f6c6f723d253233464646464646266c6162656c3d504850266c6162656c436f6c6f723d25323337373742423426636f6c6f723d253233464646464646)[![CakePHP](https://camo.githubusercontent.com/90c9159bc29342d8f61ee790d09d79bd1e42d69fc401a48b58f9fed8ecaf34ec/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f70696563656f6663616b65322f63616b65706c75732f70696563656f6663616b65322f63616b657068703f6c6f676f3d63616b65706870266c6f676f436f6c6f723d253233464646464646266c6162656c3d43616b65504850266c6162656c436f6c6f723d25323344333343343326636f6c6f723d253233464646464646)](https://camo.githubusercontent.com/90c9159bc29342d8f61ee790d09d79bd1e42d69fc401a48b58f9fed8ecaf34ec/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f70696563656f6663616b65322f63616b65706c75732f70696563656f6663616b65322f63616b657068703f6c6f676f3d63616b65706870266c6f676f436f6c6f723d253233464646464646266c6162656c3d43616b65504850266c6162656c436f6c6f723d25323344333343343326636f6c6f723d253233464646464646)[![CI](https://camo.githubusercontent.com/abcfb7ddf458f411320846cc3f04a54bfc1badb867905f20f06eea4609d82ecd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f70696563656f6663616b65322f63616b65706c75732f43492e796d6c3f6c6162656c3d4349)](https://github.com/pieceofcake2/cakeplus/actions/workflows/CI.yml)[![Codecov](https://camo.githubusercontent.com/8d2c6661ee19f5fbd85c04de9e42e37594b3221f77c0d862b85d8c123713ca2d/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f67682f70696563656f6663616b65322f63616b65706c75733f6c6162656c3d436f766572616765)](https://codecov.io/gh/pieceofcake2/cakeplus)

**This is forked for CakePHP2.**

Cakeplus is cakephp plugin and provides some functions for CakePHP.

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

[](#installation)

```
composer require pieceofcake2/cakeplus

```

Feature
-------

[](#feature)

We will provide functions as follow.

### Component

[](#component)

#### HtmlEscape

[](#htmlescape)

- Execute Html Escape and nl2br to Array Data (Option: you can set no escape list in Array Data)

### Behavior

[](#behavior)

#### AddValidationRule

[](#addvalidationrule)

- Check number of Multi byte character.
- Check difference between 2 fields.
- Check Japanese Hiragana only input.
- Check Japanese Katakana only input.
- Check Japanese Zenkaku only input.
- Check space and Multibyte space only input.

#### ValidationErrorI18n

[](#validationerrori18n)

- set validation error messages with gettext \_\_()

#### ValidationPatterns

[](#validationpatterns)

- Summarize multiple validation pattern for writing validation define easily.

### Helper

[](#helper)

#### FormScreen

[](#formscreen)

- Auto create hidden tag

###  Health Score

31

—

LowBetter than 65% of packages

Maintenance54

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 78% 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 ~1 days

Total

3

Last Release

312d ago

PHP version history (2 changes)v2.0.1PHP ^8.0

2.x-devPHP &gt;=8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/578548?v=4)[TSURU](/maintainers/ttsuru)[@ttsuru](https://github.com/ttsuru)

---

Top Contributors

[![ichikaway](https://avatars.githubusercontent.com/u/91244?v=4)](https://github.com/ichikaway "ichikaway (71 commits)")[![k1LoW](https://avatars.githubusercontent.com/u/57114?v=4)](https://github.com/k1LoW "k1LoW (14 commits)")[![ttsuru](https://avatars.githubusercontent.com/u/578548?v=4)](https://github.com/ttsuru "ttsuru (4 commits)")[![kaz29](https://avatars.githubusercontent.com/u/63869?v=4)](https://github.com/kaz29 "kaz29 (1 commits)")[![oppara](https://avatars.githubusercontent.com/u/10661?v=4)](https://github.com/oppara "oppara (1 commits)")

---

Tags

validationcakephpcakephp2

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/pieceofcake2-cakeplus/health.svg)

```
[![Health](https://phpackages.com/badges/pieceofcake2-cakeplus/health.svg)](https://phpackages.com/packages/pieceofcake2-cakeplus)
```

###  Alternatives

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.6k10](/packages/helsingborg-stad-municipio)[ichikaway/cakeplus

Cake plus is cakephp plugin and provides some functions for CakePHP.

52101.7k1](/packages/ichikaway-cakeplus)[admad/cakephp-i18n

A CakePHP plugin for I18n related tools.

4457.2k](/packages/admad-cakephp-i18n)[pressbooks/pressbooks-book

This theme is named after Canadian media theorist Marshall McLuhan, who coined the phrase “the medium is the message.” It is designed for academic writing and is also suitable for fiction. Headings are set in Cormorant Garamond, and body type is set in Lora.

226.7k](/packages/pressbooks-pressbooks-book)

PHPackages © 2026

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