PHPackages                             jorenvanhocht/hashify - 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. jorenvanhocht/hashify

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

jorenvanhocht/hashify
=====================

Quickly create a (database unique) string.

v3.0(9y ago)11.7kMITPHP

Since Mar 25Pushed 9y ago1 watchersCompare

[ Source](https://github.com/jorenvh/Hashify)[ Packagist](https://packagist.org/packages/jorenvanhocht/hashify)[ RSS](/packages/jorenvanhocht-hashify/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (3)Dependencies (2)Versions (5)Used By (0)

Hashify
=======

[](#hashify)

This Laravel package makes it easy to generate random strings from a given charset. It can also generate database table and/or column unique strings.

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

[](#installation)

This package can be installed through Composer.

```
composer require jorenvanhocht/hashify
```

You must register the service provider.

```
// config/app.php
'provider' => [
    ...
    jorenvanhocht\Hashify\Providers\HashifyServiceProvider::class,
    ...
];
```

This package also comes with a facade, which provides an easy way to call the class.

```
// config/app.php
'aliases' => [
    ...
    'Hashify'    => jorenvanhocht\Hashify\Facades\Hashify::class,
    ...
];
```

You can publish the config file of this package with this command:

```
php artisan vendor:publish --provider="jorenvanhocht\Hashify\HashifyServiceProvider"
```

The following config file will be published in `config/hashify.php`

```
