Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Php Sdk Laravel Package

commercetools/php-sdk

Deprecated PHP SDK for commercetools Composable Commerce. Provides native PHP models/helpers, IDE autocompletion, object mapping, i18n, and an OAuth2 client with caching and async/concurrent request support. Requires PHP 5.6+ (Guzzle).

View on GitHub
Deep Wiki
Context7
v2.22.0

update deprecation announcement

v2.21.0

Features

  • docs: update naming to match new branding initiative
v2.19.0

Bug Fixes

  • Customer: made password field as optional field (bf4d5a0)
  • Project: fix optional flag for SearchIndexingConfigurationValues (710019e)

Features

  • ApiClient: add property for token validity (0b43652)
  • ApiClient: support shipping matching location adding sort (d073700)
  • Order: support order payment added message (28e0f92)
  • ProductSelection: product selection extended with custom fields (ff839ae)
  • Store: add missing update action (2283fca)
v2.18.0

Bug Fixes

  • Models added optional flag to field definitions of all models

Features

  • Order: add update actions to set the delivery in the custom fields for order and order edit (083b4d8)
  • ProductSelection: new feature about product selection (1d7b7f5)

Full Changelog: https://github.com/commercetools/commercetools-php-sdk/compare/v2.17.0...v2.18.0

v2.17.1-beta.2

Bug Fixes

  • JsonObject fields are marked optional by default
v2.17.0

Features

  • Cart: add key in Cart (d3f24c4)
  • Cart: add new field productkey (ccd77b8)
  • Cart: add test for replicate cart in store (ec6390d)
  • Cart: introduce more small features (ba45fc5)
  • Cart: support new update action setLineItemSupplyChannel (87887cb)
  • Customer: add anonymousCart field (4c45b41)
  • Delivery: add field param (c7ad278)
  • Error: add querytimeout error (ec13853)
  • Error: add querytimeout error (153cc0b)
  • Head: support Head method for products (6a02a6b)
  • Message: add field in InventoryEntryQuantitySetMessage (7008f32)
  • Message: add new class as useProvidedIdentifiers for ContainerAndKey (3d332fd)
  • Message: add new message for products (1e6e5ad)
  • Message: support oldState to OrderStateTransitionMessage and support store messages (b56c7ed)
  • Order: support new update actions setReturnItemCustom as for order as for order edit (d2e3879)
  • Order: support setReturnInfoAction and related message (b34aa6b)
  • Order: support update actions for Order and Order Edit to SetParcelCustom (0124793)
  • Project: add new actions and add customer message (e97e521)
  • Project: fix failed test (b8357d0)
  • ShipingMethod: add custom field and related action in shipping method (5a9a3f9)
  • ShippingMethod: support localizedName and related action (50dbb24)
  • UserAgent: modify user agent (aa7f055)
v2.16.0

Features

  • Channel: support set address custom update actions for channel and customers(371b47d)
v2.15.0

Features

  • ShoppingList: support store for shopping lists (8808ed1)
v2.14.0

Features

  • Store support Custom fields for stores
  • Cart support cart replicate for stores

Bug Fixes

  • ErrorResponse: add getter for inner exception (96413a7), closes #601
v2.13.0

Store: support distribution and supply channel for update actions (6cfdcb7)

v2.12.1

2.12.1 (2020-10-30)

Bug Fixes

  • Client: fix adapter factory to correctly identify the GuzzleAdapter (221b690)
v2.12.0

Features

  • Error: add response body to exception message for BadRequest (a0511ab)
  • Order: migrate the first tests and create the fixture (39b16f2)
  • Project: support country taxRate fallback (35001b8)
  • Project: support language used in stores error (d170ea6), closes #578
  • Guzzle support Guzzle 7
v2.11.1

Fix deprecation warning for CartByCustomerIdGetRequest

v2.11.0

Features

  • Error: add helper methods to retrieve errors from exceptions (fd09c89)
  • Error: improve message for unknown ApiException (24a91ad)
  • Message: support InventoryEntryQuantitySet message (043aebe)
  • Search: add helper method to retrieve facets from search response (2a24040)
v2.10.0

Bug Fixes

  • Query: fix query predicate variables to be forward compatible (bb50caa)

Features

  • ApiClient: oauth handler maps authentication errors to ApiException (7a2e887)
  • Config: remove legacy hostnames (27f3769), closes #537
  • CustomerAddress: add addressKey to actions and add one test (04b453a)
  • CustomerStore: add set add remove action for store in customer and add tests (cedb0b0)
  • InventoryEntry: add message for InventoryEntryCreated (5c7319f)
  • OrderStore: add setStore action and message (b375bfe)
  • ProductFixture: update all methods relative to Cart with Published Product (7c3fb2a)
  • ShippingMethods: add localized description to shippingMethods (747179d)
  • Store: add Languages field to store (b74172f)
v2.9.0

Bug Fixes

  • Cart: fix serialization of cart draft (024b8fd)
  • OAuth: fix oauth refresh token URL (0bf801d)

Features

  • ApiClient: add deleteAt to feldDefinition method (d2b6b35)
  • ApiClientDraft: add deleteDaysAfterCreation in fieldDefinitions (4ee7f07)
  • ClientFactory: add option to inject middleware to HttpClients (734fe63)
  • ClientFactory: create HttpClient with CTP client compatible request signature (3a55d24)
  • Customer: support stores for customer (5eee954)
  • Draft: add factory methods in draft classes for ApiClient and Asset and Cart (bc0f616)
  • ImportOrder: support store for order import (175953c), closes #499
  • InStoreRequest: add request to InStoreRequests to add new shipping method endpoint (ee7620f)
  • Me: support me/shopping-lists endpoint (fc52e82)
  • Message: add messages ProductAddedToCategory and ProductRemovedFromCategory (673b4cf)
  • Order: add refusedGift field (7532e38)
  • Product: add discounted field to PriceDraft (b3c44fe)
  • Query: add support for parametrized queries (b3bc4ad), closes #505
v2.8.0

Features

  • CartDiscount: support key attribute (641a8e0)
  • Client: add client factory for direct usage of guzzle http client (40a0bd0)
  • ClientLogging: add CreatedBy and LastModifieldBy fields (b64d199)
  • ClientLogging: support setting X-External-User-ID header (bc863c7)
  • Extension: support timeoutInMs (92fcc1b)
  • InStore: allow only valid in-store endpoints (b263181)
  • Me: add MeCartDeleteRequest (b42424a)
  • ProductDiscount: support key attribute (a06a00d)
  • Project: support external OAuth (0522fe0), closes #474
  • Response: add method to extract guzzle promise (bb75909)
  • Store: support in-store requests (526d0ba)
  • Store: support Store model (a166426)
  • Type: add new type update actions (0e5774c), closes #489
v2.7.0

Bug Fixes

  • GraphQL: fix GraphQL requests without variables (fa9d376)
  • LineItemImportDraft: add missing field distributionChannel (52d2ff0)

Features

  • Discounts: add setValidFromAndUntil action (c226e1f)
  • Error: add error codes for BadRequest (9012d5d)
  • ExternalTaxRateDraft: add field includedInPrice (2771f2d), closes #451
  • Message: add new messages for ProductPriceDiscounts (fc876f7), closes #445
  • Message: add OrderDeleted Message (22ab652)
  • Messages: set MessagesConfiguration at Project (5389c23), closes #443
  • Order: support setCustomerId (756811d)
  • PasswordResetToken: support ttlMinutes for token (ebe6d77)
  • ProductAddVariantAction: support field assets (ce591e8)
  • ProductType: support changeAttributeOrderByName action (dd52af8), closes #453
  • ShippingInfoImportDraft: add ShippingInfoImportDraft representation (bde4473), closes #449
  • ShippingMethod: support Reference expansion (bd745f7)
  • Subscription: add changeDestination update action (b0fbb04), closes #437
  • Subscription: add subscription status (a2ff2e1), closes #436
  • UserProvidedIdentifiers: support UserProvidedIdentifiers at Messages & Subscriptions (aeece56)
  • Zone: support Key on shipping Zones (d331cff), closes #448
v2.6.0

Bug Fixes

  • RequestBuilder: fix OrderEditApplyRequest (252f319)
  • SetCustomShippingMethodAction: fix type of shippingRate property (ce1afa4)
  • Subscription: fix typo in SQS destination (cbf1dae)
  • TLS Check: update urls for TLS 1.2 check (f006006)

Features

  • OrderEdit: support order edits (d25e3ed)
  • ApiClients: add support for managing api clients (93b62de)
  • Order: add support for CustomLineItemReturnItem (82ebfdf)
  • Payment: support anonymousId (4dd0e3e)
v2.5.1

Bug Fixes

  • Money: fix fraction digits type (f870109), closes #429
v2.5.0

Features

  • Cart: support multiple shipping addresses (20014da)
  • Extension: support API extensions (9ca58c8), closes #365
  • Money: support high precision money (95722b9), closes #410
  • Order: support multiple shipping addresses (d98c259)
  • OrderFromCart: support state, orderState, shipmentState at OrderCreateFromCart (5fd4375), closes #412 #417
  • ProductDiscount: add setValidFromAndUntil update action (1e54656)
  • ProductDiscounts: add endpoint for Matching ProductDiscount (9258a62)
  • Request: add GDPR dataErasure flag (5d35ea1), closes #411
  • ShoppingList: support AnonymousId on ShoppingList owner (efd2565)
  • Subscription: add Google Cloud PubSub destination (585501a), closes #418
  • Subscription: add modifiedAt to change subscription payloads (602303a), closes #416
  • Subscription: add payloadNotIncluded to message delivery (60e207b), closes #413
v2.4.0

Bug Fixes

  • Guzzle5Adapter: fix applying client options to guzzle5 http client (e735afd)

Features

  • Attribute: enhance getting attribute by name from attributes collection (5d6ef10)
  • Builder: add request and update actions builder DSL (3a55e6d)
  • Cart: Support cart replication (52d9448), closes #392
  • CartDiscount: support MultiBuyDiscount on custom line items (f53d0b5), closes #389
  • Message: add customer messages (2f8c91d), closes #391
  • OAuthManager: add configuration options for internal HTTP client (5746c4a), closes #395
  • ProductType: support product type changeAttributeName & changeEnumKey (#397) (8994315), closes #393
  • ProductType: support product type removeEnumValues update action (2bf3e13), closes #388
v2.3.0

Bug Fixes

  • Context: fix setting of uninitialized properties in context object (adbb71f), closes #379
  • Query: fix undesired sort of query parameter sort (f22bd65), closes #386

Features

  • CartDiscount: support cart discount stacking mode (64f18b8), closes #354
  • CartDiscount: support multi buy discounts (5207c2b), closes #353
  • Context: add interface for CurrencyFormatter (b35abff)
  • CustomObject: add CustomObjectByIdGetRequest (2194d3e)
  • DiscountCode: support custom fields for discount codes (80aa86f), closes #352
  • DiscountCode: support validFrom and validUntil for discount codes (523929a), closes #367
  • DiscountCode: support groups for discount codes (53a8f05), closes #362
  • Order: support delivery update actions (d033399), closes #369
  • Order: support get/update/delete order by orderNumber (dc1a101), closes #356
  • Order: support parcel delivery items (6f35c31), closes #357
  • Cart: support tax calculation mode (2ef543b), closes #376
  • Payment: support get/update/delete payment by key (da32ce6), closes #349
  • State: add constant for state role return (b713135), closes #363
  • Order: support address for order deliveries (8ef8dea), closes #366
  • Client: support client instantiation with preconfigured bearer token (d93a455), closes #359
  • CartDiscount: support custom field for cart discounts (a8325c1), closes #373
  • CustomerGroup: support custom field for customer groups (23d1737), closes #360
  • Assets: support key for assets (a3c9ea0), closes #371
  • Cart: support origin for carts and orders (37db8de), closes #361
  • Product: support revertStagedVariantChanges (18d0be2), closes #372
  • ProductDiscount: support validFrom and validUntil for product discounts (c75e53c), closes #368
  • ProductType: support changeAttributeConstraint update action (52932d8), closes #370
  • ShippingMethod: support setPredicate on shipping methods (ec2fce5), closes #375
  • Product: support staged flag for product meta update actions (b60aab0), closes #358
  • ShippingMethod: support shipping rate tiers (#384) (7611315), closes #355
  • ShoppingList: support add line item by SKU (7172e1c), closes #374
  • Customer: support updateProductData of cart on customer login (555ccb3), closes #377
v2.2.1
  • Update cache adapter dependencies
v2.2.0

Bug Fixes

  • Me: fix MeUpdateRequest constructor (e96a2d1)
  • Message: fix object hierarchy for PaymentTransactionStateChanged message (b4ec4a2)
  • StateTransitionMessage: fix type of state in StateTransitionMessage (2bb1efd)

Features

  • Cart: support add line item by sku (3b81973), closes #341
  • Cart: support external tax amount (95e5547), closes #347
  • Cart: support setAnonymousId (1a1e472), closes #338
  • Cart: support setCustomerGroup update action (80c72ec), closes #343
  • Client: add configuration options for guzzle (18dbd00), closes #345
  • Client: support creation of correlation id at client side (124c004), closes #328
  • CustomField: add type safe getter for field in field container (732f861)
  • Customer: support setKey for customers (211573d), closes #342
  • CustomerGroup: support field key functionality (57e803c), closes #330
  • Message: add ProductVariantDeleted, ProductDeleted and ProductRevertedStagedChanges message (f7291ae), closes #332
  • Product: add typed getter for product attribute value (34afcdd)
  • Product: support scope for product publish (9d0b5aa), closes #340
  • Project: support change of project settings (347ecb6), closes #350
  • ShippingMethod: add support for shipping method predicate (19ea63e), closes #348
  • ShippingMethod: support shipping method by key functionality (3ba9596), closes #329
  • Subscription: support azure service bus destination (58ad977), closes #331
  • TaxCategory: support setKey for tax categories (6c41b97), closes #339
v2.1.0

Features

  • Cart: support external price for line items (3a9d972), closes #322
  • CartDiscount: support free gift line item (ad58116), closes #325
  • Category: support category key functionality (d2b63dd), closes #326
  • Customer: add get customer by email token request (8de3b30)
  • Customer: add salutation to customer (c1c65fd), closes #324
  • Messages: add OrderPaymentStateChanged message (6afb611), closes #312
  • Messages: add PaymentStatusInterfaceCodeSet message (c5e0531), closes #313
  • Messages: add ProductImageAdded message (0e14d97), closes #314
  • Payment: support key for payments (1f40cef), closes #315
  • ProductType: add change inputHint update action (af666f6), closes #323
  • ShippingMethod: add isMatching flag to shipping rates (c6b4328)
v2.0.0

Bug Fixes

  • AssetDraft: correct type for custom field object (abc0afd)
  • Collection: fix iterator for unset elements of collections (#307) (5687380), closes #307
  • Customer: fix create email token request with TTL (8367ef6)
  • ImageUpload: fix product image upload (445b2f4)
  • ProductSuggest: fix suggestion parameters (d9652df), closes #310

Code Refactoring

  • OAuth: change scope of getCacheAdapter method (c6b27ec)
  • ProductSearch: disable markMatchingVariants by default (41711a8)

Features

  • Product: support tiered pricing (93802cd), closes #303
  • Cache: support PSR-16 cache implementations (c3ceac7), closes #297
  • Client: add logLevel configuration option (8aa457a), closes #300
  • Client: add possibility for additional headers when executing request (74c5a15)
  • ShoppingList: add SetDeleteDaysAfterLastModificationAction (d31b839)
  • Subscription: add getter for message to message subscription payload (daa2558), closes #308

BREAKING CHANGES

  • PHP minimum version is now 5.6

  • guzzle/log-subscriber has been removed as a dependency

  • AssetDraft: AssetDraft requires CustomFieldObjectDraft instead of CustomFieldObject

    Before:

    $assetDraft = AssetDraft::of()->setCustom(CustomFieldObject::of());
    

    After:

    $assetDraft = AssetDraft::of()->setCustom(CustomFieldObjectDraft::of());
    
  • OAuth: Manager::getCacheAdapter() method scope has been changed from public to protected

  • ProductSearch: markMatchingVariants has been disabled by default

    For performance reasons the markMatchingVariants flag has been disabled by default. In order to use markMatchingVariants feature please enable it explicit.

    Before:

    $request = ProductProjectionSearchRequest::of();
    

    After:

    $request = ProductProjectionSearchRequest::of()->markMatchingVariants(true);
    
  • Token caching is now using PSR-6 or PSR-16 cache adapters only. Removed classes:

    • AbstractCacheAdapter
    • ApcCacheAdapter
    • ApcuCacheAdapter
    • CacheAdapterInterface
    • DoctrineCacheAdapter
    • NullCacheAdapter
    • PhpRedisCacheAdapter

    Use an appropiate PSR-6 or PRS-16 cache adapter as a replacement. The SDK uses the cache\apcu-adapter as default or if available the cache\filesystem-adapter

  • Deprecations have been removed

    • FileRequest
      • use FileUploadRequest
    • CustomerChangeNameAction
      • use CustomerSetFirstNameAction, CustomerSetLastNameAction, CustomerSetMiddleNameAction or CustomerSetTitleAction
    • ProductSetSkuNotStageableAction
      • use ProductSetSkuAction
  • Context doesn't extend Pimple\Container anymore

  • Pimple has been removed as a dependency

DEPRECATION NOTE

The class Commercetools\Commons\Helper\PriceFinder has been deprecated. Please use the price selection functionality of the platform. E.g. ProductProjectionSearchRequest::of()->currency('EUR')->country('DE')

v1.7.1

Bug Fixes

  • Collection: fix unset of entries in collections (ad9a9d6)
  • ProductSuggest: fix suggestion parameters (6d4477b), closes #310
v2.0-RC1

Bug Fixes

  • AssetDraft: correct type for custom field object (abc0afd)
  • Customer: fix create email token request with TTL (8367ef6)

Code Refactoring

  • OAuth: change access scope of getCacheAdapter method (c6b27ec)
  • ProductSearch: disable markMatchingVariants by default (41711a8)

Features

  • Cache: support PSR-16 cache implementations (c3ceac7), closes #297

BREAKING CHANGES

  • AssetDraft: AssetDraft requires CustomFieldObjectDraft instead of CustomFieldObject

    Before:

    $assetDraft = AssetDraft::of()->setCustom(CustomFieldObject::of());
    

    After:

    $assetDraft = AssetDraft::of()->setCustom(CustomFieldObjectDraft::of());
    
  • OAuth: Manager::getCacheAdapter() method scope has been changed from public to protected

  • ProductSearch: markMatchingVariants has been disabled by default

    For performance reasons the markMatchingVariants flag has been disabled by default. In order to use markMatchingVariants feature please enable it explicit.

    Before:

    $request = ProductProjectionSearchRequest::of();
    

    After:

    $request = ProductProjectionSearchRequest::of()->markMatchingVariants(true);
    
  • PHP minimum version is now 5.6

  • Token caching is now using PSR-6 or PSR-16 cache adapters only. Removed classes:

    • AbstractCacheAdapter
    • ApcCacheAdapter
    • ApcuCacheAdapter
    • CacheAdapterInterface
    • DoctrineCacheAdapter
    • NullCacheAdapter
    • PhpRedisCacheAdapter

    Use an appropiate PSR-6 or PRS-16 cache adapter as a replacement. The SDK uses the cache\apcu-adapter as default or if available the cache\filesystem-adapter

  • Deprecations have been removed

    • FileRequest
      • use FileUploadRequest
    • CustomerChangeNameAction
      • use CustomerSetFirstNameAction, CustomerSetLastNameAction, CustomerSetMiddleNameAction or CustomerSetTitleAction
    • ProductSetSkuNotStageableAction
      • use ProductSetSkuAction
  • Context doesn't extend Pimple\Container anymore

  • Pimple has been removed as a dependency

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
anousss007/vigilance
supportpal/eloquent-model
ardenexal/fhir-models
laravel-at/laravel-image-sanitize
romalytar/yammi-audit-log-laravel
ardenexal/fhir-validation
arshaviras/weather-widget
laravel-chronicle/core
sunchayn/nimbus
daikazu/eloquent-salesforce-objects
unseen-codes/chat
romalytar/yammi-jobs-monitoring-laravel
kisame76/filament-db-table-state
nqxcode/laravel-lucene-search
dpfx/laravel-livewire-wizards
workos/workos-php-laravel
sofa/laravel-global-scope
nawasara/auth-primitives
adhocrat-io/arkhe-main
make-dev/orca-harpoon