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

ActiveLibrary

qranio-com/hashids
==================

Generate hashes like YouTube or Bitly from numbers to obfuscate your database IDs, or navigate to the right shard.

06PHP

Since May 21Pushed 11y ago8 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

[![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 hashes from numbers. Read documentation at

[![hashids](https://camo.githubusercontent.com/e1a9c5129047b2ae9d7edf08e0f25f7fdcaf9bf3a9dc41f00b205ae726380f58/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6976616e616b696d6f762f686173686964732e7068702e706e67 "Hashids")](https://camo.githubusercontent.com/e1a9c5129047b2ae9d7edf08e0f25f7fdcaf9bf3a9dc41f00b205ae726380f58/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6976616e616b696d6f762f686173686964732e7068702e706e67)

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

[](#installation)

You can either `require()` the lib yourself, or use [Composer](http://getcomposer.org) (packagist has [hashids/hashids](https://packagist.org/packages/hashids/hashids) package).

In your `composer.json` file use:

```
{
    "require": {
        "hashids/hashids": "*"
    }
}
```

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

```
