ramsey/uuid ? reverse-engineered prompt

Reverse engineered prompt

Build me a PHP library for generating and working with UUIDs. I want it to be easy to install with Composer, simple to use in a normal PHP app, and cleanly organized so people can create UUIDs, parse them from strings, format them, and compare them without a lot of hassle.

Please include good documentation and a few examples, plus tests so it feels solid. Make it work well with modern PHP 8 code, and keep the public API clear and friendly for developers who just want to drop it into a project and start using it. If there are current best practices or updated UUID details I should follow, look up the latest docs online if you need to.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab