PHPackages                             alexanderzon/hashids - 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. alexanderzon/hashids

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

alexanderzon/hashids
====================

Fork from hashids/hashids: Generate hashids like YouTube or Bitly from numbers to obfuscate your database primary ids, or navigate to the right shard.

2.0.0(11y ago)06581MITPHPPHP &gt;=5.3.0

Since Jul 22Pushed 11y ago1 watchersCompare

[ Source](https://github.com/AlexanderZon/hashids.php)[ Packagist](https://packagist.org/packages/alexanderzon/hashids)[ Docs](http://hashids.org/php)[ RSS](/packages/alexanderzon-hashids/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (9)Used By (1)

[![hashids](https://camo.githubusercontent.com/94d096abc53fdb3e191d11e91d4ce71667aec74fc4d56f87ef053deccac90ccb/687474703a2f2f7777772e686173686964732e6f72672e73332e616d617a6f6e6177732e636f6d2f7075626c69632f696d672f686173686964732e706e67 "Hashids")](https://camo.githubusercontent.com/94d096abc53fdb3e191d11e91d4ce71667aec74fc4d56f87ef053deccac90ccb/687474703a2f2f7777772e686173686964732e6f72672e73332e616d617a6f6e6177732e636f6d2f7075626c69632f696d672f686173686964732e706e67)

======

Full Documentation
------------------

[](#full-documentation)

A small PHP class to generate YouTube-like ids from numbers. Read documentation at

[![hashids](https://camo.githubusercontent.com/f86c703426c6ed9ebfcfb7442909ed6f8b6622c26d49f163d87b2a0c4ac46285/68747470733a2f2f6170692e7472617669732d63692e6f72672f6976616e616b696d6f762f686173686964732e7068702e737667 "Hashids")](https://travis-ci.org/ivanakimov/hashids.php)

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

[](#installation)

You can install Hashids thru [Composer](http://getcomposer.org) (packagist has [hashids/hashids](https://packagist.org/packages/hashids/hashids) package). In your `composer.json` file use:

```
{
    "require": {
        "alexanderzon/hashids": "2.0.*"
    }
}
```

And run: `php composer.phar install`. After that you can require the autoloader and use Hashids:

```
