pieceofcake2 / cakeplus
Cake plus is cakephp plugin and provides some functions for CakePHP.
Installs: 42
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 15
Open Issues: 0
Type:cakephp-plugin
Requires
- php: ^8.0
- composer/installers: *
- pieceofcake2/cakephp: ^2.10
Requires (Dev)
- cakephp/cakephp-codesniffer: ^5.0
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^9.6
- pieceofcake2/app: ^2.1
- pieceofcake2/phpstan-cakephp2: ^0.2.1
Replaces
- ichikaway/cakeplus: ^2.0
README
This is forked for CakePHP2.
Cakeplus is cakephp plugin and provides some functions for CakePHP.
Installation
composer require pieceofcake2/cakeplus
Feature
We will provide functions as follow.
Component
HtmlEscape
- Execute Html Escape and nl2br to Array Data (Option: you can set no escape list in Array Data)
Behavior
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
- set validation error messages with gettext __()
ValidationPatterns
- Summarize multiple validation pattern for writing validation define easily.
Helper
FormScreen
- Auto create hidden tag