PHPackages                             dereuromark/cakephp-hashid - 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. dereuromark/cakephp-hashid

AbandonedArchivedCakephp-plugin

dereuromark/cakephp-hashid
==========================

A CakePHP plugin to allow using hashids instead of numeric primary keys.

1.4.1(6y ago)3610.0k↓50%13MITPHPPHP &gt;=5.6

Since Jan 18Pushed 5y ago4 watchersCompare

[ Source](https://github.com/dereuromark/cakephp-hashid)[ Packagist](https://packagist.org/packages/dereuromark/cakephp-hashid)[ Docs](https://github.com/dereuromark/cakephp-hashid)[ RSS](/packages/dereuromark-cakephp-hashid/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (15)Used By (0)

Hashid Plugin for CakePHP
=========================

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

[![Build Status](https://camo.githubusercontent.com/420810f4713036a421f2324b4ad7d518e790934122bc6647a745b23a62bc5996/68747470733a2f2f6170692e7472617669732d63692e636f6d2f6465726575726f6d61726b2f63616b657068702d6861736869642e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/dereuromark/cakephp-hashid)[![Coverage Status](https://camo.githubusercontent.com/aa6290dee91ebbc36b61941831b304f79db00b3bf1dde482bb4627234ee60b3a/68747470733a2f2f636f6465636f762e696f2f67682f6465726575726f6d61726b2f63616b657068702d6861736869642f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/dereuromark/cakephp-hashid)[![Latest Stable Version](https://camo.githubusercontent.com/72298608c188b5788db4bec047c58c19accca860cbc74c60a06be3c33b400877/68747470733a2f2f706f7365722e707567782e6f72672f6465726575726f6d61726b2f63616b657068702d6861736869642f762f737461626c652e737667)](https://packagist.org/packages/dereuromark/cakephp-hashid)[![Minimum PHP Version](https://camo.githubusercontent.com/4cbdbfeca62402b9ca3d48503f2bf66fc9809569bcd6de47196d39fecff71e72/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230352e362d3838393242462e737667)](https://php.net/)[![License](https://camo.githubusercontent.com/7c7c5efe32fc0d5eb712ac307452a29e054d791110aaced138cd30cf77a5eea3/68747470733a2f2f706f7365722e707567782e6f72672f6465726575726f6d61726b2f63616b657068702d6861736869642f6c6963656e7365)](https://packagist.org/packages/dereuromark/cakephp-hashid)[![Total Downloads](https://camo.githubusercontent.com/e3d9354efe59b298e8567dc8c27dd38cd5b0d433e10f0122772d8f7af6034537/68747470733a2f2f706f7365722e707567782e6f72672f6465726575726f6d61726b2f63616b657068702d6861736869642f642f746f74616c2e737667)](https://packagist.org/packages/dereuromark/cakephp-hashid)[![Coding Standards](https://camo.githubusercontent.com/dbabe22710e675cb88cd0b12196f1477e2376dea497332775692cf1359a75918/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f63732d5053522d2d322d2d522d79656c6c6f772e737667)](https://github.com/php-fig-rectified/fig-rectified-standards)

Exposes [hashids](https://github.com/ivanakimov/hashids.php) as drop-in replacement for your numeric primary keys.

**DEPRECATED** This plugin is deprecated in favor of the more robust and future proof solution through exposing a dedicated field. See **[Expose plugin](https://github.com/dereuromark/cakephp-expose)**.

A CakePHP plugin to
-------------------

[](#a-cakephp-plugin-to)

- cloak the actual numeric primary key behind the record (assuming you use a non public salt) for URLs, APIs and alike
- build short unique IDs (Even PHP\_INT\_MAX `2.147.483.647` becomes `lXQAALg` for example, so `length
