Skip to content

SphereMall/PHP-MS-Client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SphereMall Gateway PHP SDK

Official PHP SDK for integrating with SphereMall Product. Official documentation

Version 2.8.18.2

  • Added possibility to delete some parameters from Elastic FilterBuilder

Version 2.8.18.1

  • Fixed filter builder for "isMain" parameters to elasticserch facets

Version 2.8.17

  • Added filter builder for "isMain" parameters to elasticserch facets

Version 2.8.15

  • Exclude negative factor items from elasticsearch response (using SortBuilder)

Version 2.8.14.1

  • Minor changes in CorrelationsResourse for preparing elsaticsearch query

Version 2.8.14

  • Add channels resource

Version 2.8.13.1

  • Changes in ObjectMaker for included
  • Changes in ProductsMapper, DocumentsMapper, EntityGroupsMapper and CategoriesMapper

Version 2.8.12

  • ObjectMaker extended with included to be able to find nested relationships (for example MediaEntities -> Media)

Version 2.8.11

  • Add boost support for ElasticSearch queries: WildCardQuery, TermsQuery, DistanceQuery, RangeQuery

Version 2.8.10.1

  • Add deleteDocumentFromIndex method to ElasticResource resource

Version 2.8.9

  • Add WebSites and WebSiteSettings resources

Version 2.8.6

Implementation of updates for comments entity:

Version 2.8.5

Implementation of:

Version 2.8.4.8

Extend OrderFinalized with deliveryTime

Version 2.8.4.7

Fix DistanceQuery (added possibility to set field name)

Version 2.8.4.6

Fix correlation resource when use withMeta

Version 2.8.4.5

Fix entity factors set() method

Version 2.8.4.4

Fix for multi price range params

Version 2.8.4.3

Add AttributeRangeConfig

Version 2.8.4.2

Fix OrdersMaker signature

Version 2.8.4.1

Change filter builder config bug

Check success response refactored

HttpHelper refactored for checking port in url

ObjectMaker refactored (temporary solution) to get all included, not only from relations

Fix url-s for elastic resource

Implement JsonSerializable for Entity

Update work with filter params for elasticfilter

! This version is compatible with MS Indexer >= 2.5.4 !

Update correlation resource for working with elasticsearch

! This version is compatible with MS Grapher >= 2.3.4.5 !

Add CRUD wrapping for Marketing microservice

Add CRUD wrapping for Marketing microservice

created Categories and EntityGroups resource

Extend attribute entity with attributeTypeId

Add CRUD wrapping for CatalogItemAttributes

!!! Indexer Microservice version: 2.4.0 +

=======

Installation

You can install the package manually or by adding it to your composer.json:

{
  "require": {
      "spheremall/ms-client": "^1.0"
  }
}

Instantiating the SDK Client:

Pass in the configuration to the client:

$client = new Client([
            'gatewayUrl' => 'API_GATEWAY_URL',
            'clientId'   => 'API_CLIENT_ID',
            'secretKey'  => 'API_SECRET_KEY'
        ]);

Using the client with base Resources functionality