Skip to content

CakePHP ExposePublic UUIDs, internal integer keys

Add a public lookup identifier without changing your database relations.

Expose public identifier

Keep integer primary keys for internal joins and use a separate UUID in public URLs. The default UUIDv4 generator adds no timestamp or record counter to the identifier. Your application still needs authentication and authorization for private records.

Released under the MIT License.