Encode model IDs to JSON:API resource IDs.

Maintainers

👁 lindyhopchris

Package info

github.com/laravel-json-api/hashids

pkg:composer/laravel-json-api/hashids

Statistics

Installs: 114 906

Dependents: 6

Suggesters: 0

Stars: 5

Open Issues: 0

v3.3.0 2026-05-13 08:11 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 04529dc040a84492203512b2698b548e5dcccc7e

  • Cloud Creativity Ltd <info.woop@cloudcreativity.co.uk>
  • Christopher Gammie <contact.woop@gammie.co.uk>

laraveljsonapiJSON-APIjsonapi.org

This package is auto-updated.

Last update: 2026-06-13 08:19:23 UTC


README

Encode model keys to JSON:API resource ids using vinkla/hashids. This is a plugin for Laravel JSON:API.

Installation

Install using Composer

composer require laravel-json-api/hashids

This will also install vinkla/hashids. After installing, you will need to publish the configuration for that package:

php artisan vendor:publish --provider="Vinkla\Hashids\HashidsServiceProvider"

Refer to the README in that package for more configuration information.

License

Laravel JSON:API is open-sourced software licensed under the MIT License.