Generate unique Id

This page summarizes the projects mentioned and recommended in the original post on /r/PHPhelp

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • spec

    The canonical spec for ulid

  • You may also want to look at ULIDs

  • hashids

    A small PHP library to generate YouTube-like ids from numbers. Use it when you don't want to expose your database ids to the user.

  • Depending on your requirements, you may also want to look at libraries that allow you to generate an ID using an existing identifier such as hashids. Unlike UUIDs (or other random values) these are predictable (if you know enough values and their original IDs, or watch new ones being created, you can reverse-engineer the mapping) but can still serve as a short, obfuscated value.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts