Generating unique key code using PHP

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

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

    :snowflake: A PHP library for generating universally unique identifiers (UUIDs). (by ramsey)

  • php-ulid

    A PHP port of alizain/ulid with some minor improvements.

    If you want sortable uuid, you can use something like https://github.com/robinvdvleuten/php-ulid If you simply don't want the database id to be sent/seen by the client, you can use something like https://github.com/krowinski/tinyID to encode it into a string based on the characters you want

  • 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.

  • tinyID

    Shorten and obfuscate IDs

    If you want sortable uuid, you can use something like https://github.com/robinvdvleuten/php-ulid If you simply don't want the database id to be sent/seen by the client, you can use something like https://github.com/krowinski/tinyID to encode it into a string based on the characters you want

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