Download the PHP package retargeting/retargeting-sdk without Composer

On this page you can find all versions of the php package retargeting/retargeting-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package retargeting-sdk

Retargeting SDK

Overview

Retargeting SDK is a software development tool for E-Commerce platforms that simplifies the implementation of Retargeting extension.

Minimum requirements

The Retargeting SDK requires at least PHP version 7.1.0 or greater.

How to install

Clone the repository in your platform root folder.

Example

Product class for sendProduct implementation

Sample request

Sample response

Method Type Required Description
setId Number or text Required The product item identifier, ie. itemcode. It should identify to the sold product, but not necessarily some specific variant of the product. Must be unique in your site.
setName Text Required The product name
setUrl URL Required Complete URL of the item. Must start with http:// or https://.
setImg URL Required Complete URL of an image of the item.
setPrice Number or text Required Current product price. If the product is on promotion (price is reduced) then this parameter gets the value of the price before promotion was applied to the product (old price).
setPromo Number or text Optional Promotional price (new price). When the product isn’t on promotion (no reduced price), send value 0.
setBrand Object Required Details about product brand. If the product does not belong to any brand, send false value. The object containing brand details, has the following properties: id, name.
brand.id Number or text Required The brand item identifier.
brand.name Text Required Brand name
setCategory Object Required An object that contain details about products category. The object should contain the following properties: id, name, parent
category.id Number or text Required The category identifier
category.name Text Required Category name
category.parent Number, text, false Required Id of parent category. If there isn’t any parent category, send false value.
setBreadcrumb Array Required Array containing all the parent categories of the category to which the product belongs (in this array you must not add the product category). If the category does not have a parent category (category.parent is set false), send an empty array. Each parent category is sent as object and contains the following properties: id, name, parent.
breadcrumb.id Number or text Required Category id
breadcrumb.name Text Required Category Name
breadcrumb.parent Number, text, false Required Id of parent category. If there isn’t any parent category, send false value.
setInventory Object Required Inventory details
inventory.variations True/False Required True for products with variations. False for products without variations.
inventory.stock True/False/Object Required For product with variations, you should send an object with stock for each variations.
setAdditionalImages Object Required All product images can be assigned here. Accepts an object of urls.
callback_function Function Optional With this parameter you can define a function that runs itself after the action’s parent function executes

All versions of retargeting-sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.0
ext-json Version *
ext-openssl Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package retargeting/retargeting-sdk contains the following files

Loading the files please wait ....