PHP code example of audithsoftworks / uuid-doctrine-odm
1. Go to this page and download the library: Download audithsoftworks/uuid-doctrine-odm library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
audithsoftworks / uuid-doctrine-odm example snippets
php
use Doctrine\ODM\MongoDB\Types\Type;
Type::registerType('ramsey_uuid', \AudithSoftworks\Uuid\Doctrine\ODM\UuidType::class);
Type::registerType('ramsey_uuid_binary', \AudithSoftworks\Uuid\Doctrine\ODM\UuidBinaryType::class);