CakePHP 框架的工具

Mark Scherer cd1317b5f8 saveAll() is now part of shim 10 years ago
config 791f64fd20 Check before using deprecated Js helper 10 years ago
docs 3a9848a4f8 Improve Behavior docs 10 years ago
src cd1317b5f8 saveAll() is now part of shim 10 years ago
tests 253309f1fe more tests 10 years ago
.editorconfig bea1810f43 editorconfig 11 years ago
.gitattributes 4d5e02f4b3 Git attributes 10 years ago
.gitignore 060e946e96 Refactor tests. 11 years ago
.scrutinizer.yml 987acd04dd update bootstrap 11 years ago
.travis.yml 1e74cdefe6 use v5.5 for coveralls 10 years ago
README.md 143a84dfd8 Coveralls 10 years ago
composer.json b5a1a78b18 fixes for 3.1 10 years ago
phpunit.xml.dist dacdaa3b36 More tests. 11 years ago

README.md

CakePHP Tools Plugin

Build Status Coverage Status Minimum PHP Version License Total Downloads Coding Standards

A CakePHP 3.x Plugin containing several useful tools that can be used in many projects.

Version notice

This cake3 branch only works for CakePHP3.x - please use the master branch for CakePHP 2.x! It is still dev (no stable release yet), please be careful with using it.

What is this plugin for?

Enhancing the core

  • Auto-trim on POST (to make - not only notEmpty - validation working properly).
  • Disable cache also works for older IE versions.
  • With $this->Flash->message() you can have colorful (success, warning, error, ...) flash messages. They also can stack up (multiple messages per type) which the core currently doesn't support.
  • Provide enum support as "static enums"
  • Default settings for Paginator, ... can be set using Configure.
  • Provided a less error-prone inArray() method when using Utility class.

Additional features

  • The Passwordable behavior allows easy to use password functionality for frontend and backend.
  • Tree helper for working with (complex) trees and their output.
  • Ajax Views for better responses (Ajax also comes with an optional component).
  • Slugged and Reset behavior
  • The Text, Time, Number libs and helpers etc provide extended functionality if desired.
  • AuthUser, Timeline, Typography, etc provide additional helper functionality.
  • Email as a wrapper for core's Email adding some more usefulness and making debugging/testing easier.

Providing 2.x shims

This plugin for the Cake 3 version also contains some 2.x shims to ease migration of existing applications from 2.x to 3.x:

  • See Shim plugin for details on most of the provided shims.
  • Cut down version of JsHelper and a few more things.

Installation & Docs

TODOs

  • Move more 2.x stuff to 3.x