.. _installation: ====================== Installing ramsey/uuid ====================== Requirements ############ ramsey/uuid |version| requires PHP 7.2. Using the latest version of PHP is highly recommended. ramsey/uuid requires the `json `_ extension, which is normally enabled by default. ramsey/uuid also requires the `pcre `_ and `spl `_ extensions. These standard extensions are enabled by default and cannot be disabled without patching PHP's build system and/or C sources. ramsey/uuid recommends installing the `ctype `_, `gmp `_, or `bcmath `_ extensions. While not required, these extensions improve the performance of ramsey/uuid. Composer ######## The only supported installation method for ramsey/uuid is `Composer `_. Use the following command to add ramsey/uuid to your project dependencies: .. code-block:: bash composer require ramsey/uuid