Download the PHP package zauberfisch/silverstripe-uid-dataobject without Composer
On this page you can find all versions of the php package zauberfisch/silverstripe-uid-dataobject. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download zauberfisch/silverstripe-uid-dataobject
More information about zauberfisch/silverstripe-uid-dataobject
Files in zauberfisch/silverstripe-uid-dataobject
Package silverstripe-uid-dataobject
Short Description SilverStripe module for adding an unique id (UUID) to a DataObject
License BSD-3-Clause
Informations about the package silverstripe-uid-dataobject
SilverStripe UID DataObject Extension
Utility/DataExtension for adding an unique ID (UUID or custom UID) to a DataObject.
Maintainer Contact
- Zauberfisch [email protected]
Requirements
- php >=7.4
- silverstripe/framework >=4
- ramsey/uuid >=4
Installation
composer require "zauberfisch/silverstripe-uid-dataobject"
- rebuild manifest (flush)
Documentation
Using UUID "Universally unique identifier" v4 (random)
This will generate unique IDs like 1ee9aa1b-6510-4105-92b9-7171bb2f3089
.
Using UUID "Universally unique identifier" v1 (time & MAC based)
This will generate unique IDs like 123e4567-e89b-12d3-a456-426614174000
.
NOTE that UUID v1 uses the current time, along with the MAC address (or node) for a network interface on the local machine. This means it is possible to uniquely identify the machine on which this
UUID was created. Keep that in mind when using v1 UUIDs in any user facing context.
Using custom unique IDs
This will generate unique IDs like abc-1ee9aa1b
.
This is useful if want shorter unique IDs or your own optional prefix/suffix. An example usecase is for use in URLSegments like /job-offers/abc-1ee9aa1b
.
All versions of silverstripe-uid-dataobject with dependencies
silverstripe/framework Version ^4.5 || ^5.0
ramsey/uuid Version ^4