# vinkla/laravel-hashids

A Hashids bridge for Laravel

Repository: https://github.com/vinkla/laravel-hashids
Canonical: https://ross.abutalabs.com/products/laravel-hashids
Language: PHP
License: MIT
License Family: permissive
Topics: php, hashids, laravel, composer
Last push: 2026-03-22T07:24:43+00:00

## Health v2 (maintenance only)
Score: 56/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 73, release rhythm 8, longevity 100
- inputs: {"age_days": 4229, "days_push": 164, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2057, forks 175 (observed 2026-08-28T04:06:09.916592+00:00)

## What it is
A Laravel bridge package for the Hashids library, letting you encode integer IDs into short, reversible, obfuscated strings and decode them back. It provides a manager with multiple configurable connections, a facade, and dependency injection support.

## Use cases
- obfuscate database ids in urls
- encode integer ids into short unique strings in laravel
- generate reversible non-sequential public identifiers
- hide auto-increment primary keys from api responses
- decode hashid strings back to integers in laravel

## When to choose
- you use Laravel and want Hashids integration with config, facades, and DI
- you need reversible, obfuscated numeric identifiers for public URLs or APIs

## When to avoid
- you are starting a new project - the Hashids author recommends Sqids instead
- you need cryptographically secure encryption rather than id obfuscation
- you don't use Laravel - use the underlying hashids library directly

## Facets
- artifact type: library
- maturity: maintenance
- function: serialization, developer-tools
- domain: web-development, backend, developer-tools
- platform: php
- tags: hashids, laravel-package, id-obfuscation, composer, laravel

## Member repositories
- vinkla/laravel-hashids (main) score 56

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:09.916592+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:57:11.273658+00:00, confidence not recorded.
  - readme: https://github.com/vinkla/laravel-hashids (fetched 2026-08-28T04:06:09.916592+00:00, sha 5eee7599b9b7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
