0

I have some entities coming from an Oracle Database which uses SYS_GUID generated ids, I want to know if it is possible to generate similar identifiers using PHP for my new entities.

Of course, I don't have access to the DB, I need to create them using PHP only.

Update: I am using a Linux env

Thanks

Jason Aller
  • 3,541
  • 28
  • 38
  • 38
Taytay
  • 82
  • 7
  • Possible duplicate of [How to generate a new GUID?](https://stackoverflow.com/questions/21671179/how-to-generate-a-new-guid) – timclutton Nov 02 '17 at 15:30
  • Possible duplicate of [PHP function to generate v4 UUID](https://stackoverflow.com/questions/2040240/php-function-to-generate-v4-uuid) – Indent Nov 02 '17 at 15:43

1 Answers1

0

Just use PHP function com_create_guid

Indent
  • 4,675
  • 1
  • 19
  • 35