PHPackages                             zzal/cakephp-hash - 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. zzal/cakephp-hash

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

zzal/cakephp-hash
=================

XPath-like path syntax for complex arrays using awesome cakePHP’s Hash class

62.6k2PHP

Since May 22Pushed 13y ago1 watchersCompare

[ Source](https://github.com/zzal/cakephp-hash)[ Packagist](https://packagist.org/packages/zzal/cakephp-hash)[ RSS](/packages/zzal-cakephp-hash/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

cakephp-hash
============

[](#cakephp-hash)

**Please note that this package is in beta develpment phase.**

This is simply a wrapper package to help you use the awesome cakePHP’s Hash class in your non-cakePHP project (using composer). This helper class let you manipulate complex PHP arrays using Xpath-like syntax.

[See cakePHP documentation.](http://book.cakephp.org/2.0/en/core-utility-libraries/hash.html)

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

[](#installation)

Install this package through Composer. To do so, edit your project's `composer.json` file to require `zzal/cakephp-hash`.

```
"require": {
	"zzal/cakephp-hash": "*"
}

```

Then, add this inside the "autoload" section of this file:

```
"autoload": {
	"classmap": [
		…
	],
    "psr-0": {
    	"CakePHP\\Utility\\": "vendor/zzal/cakephp-hash/Hash"
    }

```

Finally, use Composer from the Terminal:

```
composer install

```

Basic Usage
===========

[](#basic-usage)

As Laravel 4 already have a class named Hash, I suggest that you use the cakePHP Hash class with an alias, like in the following example (routes.php):

```
