audithsoftworks / uuid-doctrine-odm
Allow the use of a ramsey/uuid UUID as Doctrine ODM field type.
Installs: 789
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 7
Open Issues: 0
pkg:composer/audithsoftworks/uuid-doctrine-odm
Requires
- php: ^7.3
- ext-mongodb: *
- doctrine/mongodb-odm: ^2.1
- ramsey/uuid: ^4.0
Requires (Dev)
- phpunit/phpunit: ^9.2
- roave/security-advisories: dev-master
README
Allow the use of a ramsey/uuid UUID as Doctrine ODM field type.
Install
Via Composer
$ composer require audithsoftworks/uuid-doctrine-odm
Usage
<?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);
Change log
Please see CHANGELOG for more information what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CONDUCT for details.
Credits
- Shahriyar Imanov (v2.x and v3.x)
- Johan de Ruijter (v1.x)
- All Contributors
License
The MIT License (MIT). Please see License File for more information.