PHP Classes

I could not generate output

Recommend this page to a friend!

      PHP UUID Extension Functions  >  All threads  >  I could not generate output  >  (Un) Subscribe thread alerts  
Subject:I could not generate output
Summary:Package rating comment
Messages:2
Author:Rick Ruggiero
Date:2019-10-23 05:33:23
 

Rick Ruggiero rated this package as follows:

Utility: Not sure
Consistency: Not sure
Documentation: Insufficient

  1. I could not generate output   Reply   Report abuse  
Picture of Rick Ruggiero Rick Ruggiero - 2019-10-23 05:33:23
I could not generate output

  2. Re: I could not generate output   Reply   Report abuse  
Picture of Axel Pardemann Axel Pardemann - 2019-10-24 14:28:07 - In reply to message 1 from Rick Ruggiero
The package uses the package ramsey/uuid; the method StringFacade::uuid() returns a UuidInterface object as the tests suggest (https://github.com/norse-blue/php-string-extensions-uuid/blob/master/tests/Extensions/StringUuidTest.php).

Please refer to the underlying UUID package for further UUID capabilities: https://github.com/ramsey/uuid/blob/master/src/UuidInterface.php

I think your best bet is doing:
$uuid = (string) StringFacade::uuid();

or

$uuid = StringFacade::uuid()->getHex();

depending on your needs.

 
For more information send a message to info at phpclasses dot org.