PHPackages                             cakedc/utils - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. cakedc/utils

AbandonedArchivedCakephp-plugin[Utility &amp; Helpers](/categories/utility)

cakedc/utils
============

Utils Plugin for CakePHP

1.4.3(12y ago)307652.5k↓31.2%138[6 PRs](https://github.com/CakeDC/utils/pulls)3MITPHP

Since May 7Pushed 9y ago38 watchersCompare

[ Source](https://github.com/CakeDC/utils)[ Packagist](https://packagist.org/packages/cakedc/utils)[ Docs](http://cakedc.com)[ RSS](/packages/cakedc-utils/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (8)Used By (3)

Utils Plugin for CakePHP
========================

[](#utils-plugin-for-cakephp)

for cake 2.x

The utils plugin contain a lot of reusable components, behaviors and helpers. Here we will list and detail each component.

Behaviors
---------

[](#behaviors)

- Btree -
- CsvImport - adds the ability to import csv data to the model.
- Inheritable -
- Keyvalue - allows to get and save group of settings in key/value representation.
- List - provide a way to make collection ordered
- Lookupable - looks up associated records up based on a given field and its value
- Pingbackable -
- Publishable -
- Serializable - allows serialize/deserialize array data into large text field.
- Sluggable - implement slugs for model.
- SoftDelete - soft deleting for model.
- TinySluggable - creates tiny slugs similar to known url shorteners like bit.ly
- Toggleable - toggle field values

Libraries
---------

[](#libraries)

- Languages - List of languages that can be used in selects

Components
----------

[](#components)

- Archive - Creates the data for "archive" date ranges that can be used to generated links like "May 2010", "March 2010",...
- FormPreserver - Allow to keep form data between login redirect and returning back after login.
- Pingbacks -
- Referer - Allow to keep referer url inside the add/edit form to reuse it for redirect on success POST or submit.
- Utils -

Helpers
-------

[](#helpers)

- Cleaner - Allow to strip tags from input markup
- Gravatar - Gravatar Helper
- Tree - Generates nested representations of hierarchial data
- Place - Allows to display image and text placeholders

### CsvImport Behavior

[](#csvimport-behavior)

You can configure the Importable behavior using these options:

- delimiter - The delimiter for the values, default is ;
- enclosure - The enclosure, default is "
- hasHeader - Parse the header of the CSV file if it has one, default is true

The main method of this behavior is

```
