CakePHP 框架的工具

Mark Scherer 2cf36094f3 Fix 10 年之前
config 08482a8b0d Short array syntax 11 年之前
docs 91c86e217a Use Shim plugin 11 年之前
src 8a7166d17a Fix tests. 10 年之前
tests 2cf36094f3 Fix 10 年之前
.coveralls.yml 7a03eaee62 another test 11 年之前
.editorconfig bea1810f43 editorconfig 11 年之前
.gitattributes 7586a20dc2 README 11 年之前
.gitignore 060e946e96 Refactor tests. 11 年之前
.scrutinizer.yml 987acd04dd update bootstrap 11 年之前
.travis.yml 8bf4bc01c0 coveralls 11 年之前
README.md fe28b91814 Move RssView into own plugin. 11 年之前
composer.json c46eb19bab Merge pull request #141 from dereuromark/cake3-updates 10 年之前
phpunit.xml.dist dacdaa3b36 More tests. 11 年之前

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 (not even alpha), please be careful with using it.

Planned Release Cycle:

Dev (currently), Alpha, Beta, RC, 1.0 stable (incl. tagged release then).

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:

  • find('first') and find('count')
  • Model::$validate, Model::$primaryKey, Model::$displayField and Model relations as properties
  • Set/Multibyte class, Session component and a cut down version of JsHelper

Installation & Docs

TODOs

  • Move more 2.x stuff to 3.x