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 |
|
Rick Ruggiero - 2019-10-23 05:33:23
I could not generate output
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.
|