Composable Commerce PHP SDKPHP SDK
  • Namespace
  • Class
  • Tree

Namespaces

  • Commercetools
    • Commons
      • Helper
    • Core
      • Builder
        • Request
        • Update
      • Cache
      • Client
        • Adapter
        • OAuth
      • Error
      • Helper
        • Annotate
        • State
          • Renderer
        • Subscriber
          • Log
      • Model
        • ApiClient
        • Cart
        • CartDiscount
        • Category
        • Channel
        • Common
        • Customer
        • CustomerGroup
        • CustomField
        • CustomObject
        • DiscountCode
        • Extension
        • Inventory
        • Message
        • Order
        • OrderEdit
        • Payment
        • Product
          • Search
        • ProductDiscount
        • ProductSelection
        • ProductType
        • Project
        • Review
        • ShippingMethod
        • ShoppingList
        • State
        • Store
        • Subscription
        • TaxCategory
        • Type
        • Zone
      • Request
        • ApiClients
        • CartDiscounts
          • Command
        • Carts
          • Command
        • Categories
          • Command
        • Channels
          • Command
        • CustomerGroups
          • Command
        • Customers
          • Command
        • CustomField
          • Command
        • CustomObjects
        • DiscountCodes
          • Command
        • Extensions
          • Command
        • GraphQL
        • InStores
        • Inventory
          • Command
        • Me
          • Command
        • Messages
        • OrderEdits
          • Command
          • StagedOrder
            • Command
        • Orders
          • Command
        • Payments
          • Command
        • ProductDiscounts
          • Command
        • Products
          • Command
        • ProductSelections
          • Command
        • ProductTypes
          • Command
        • Project
          • Command
        • Query
        • Reviews
          • Command
        • ShippingMethods
          • Command
        • ShoppingLists
          • Command
        • States
          • Command
        • Stores
          • Command
        • Subscriptions
          • Command
        • TaxCategories
          • Command
        • Types
          • Command
        • Zones
          • Command
      • Response

Classes

  • CurrencyFormatter
  • DefaultCorrelationIdProvider
  • Uuid

Interfaces

  • CorrelationIdProvider
  • CurrencyFormatterInterface

Class Uuid

Namespace: Commercetools\Core\Helper
Located at Core/Helper/Uuid.php

Methods summary

public static
# active( )

return bool

return bool

public static string
# uuidv4( )

Return a UUID (version 4) using random bytes Note that version 4 follows the format: xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx where y is one of: [8, 9, A, B]

Return a UUID (version 4) using random bytes Note that version 4 follows the format: xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx where y is one of: [8, 9, A, B]

We use (random_bytes(1) & 0x0F) | 0x40 to force the first character of hex value to always be 4 in the appropriate position.

For 4: http://3v4l.org/q2JN9 For Y: http://3v4l.org/EsGSU For the whole shebang: http://3v4l.org/BkjBc

Returns

string

Link

https://paragonie.com/b/JvICXzh_jhLyt4y3
https://creativecommons.org/licenses/by-sa/4.0/
PHP SDK API documentation generated by ApiGen