Download the PHP package pricemotion/sdk without Composer

On this page you can find all versions of the php package pricemotion/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 sdk

Pricemotion SDK

This SDK is used internally for Pricemotion's integrations with different e-commerce systems. It may also be used by customers to integrate with custom or unsupported systems.

Currently this SDK does not provide a complete interface for Pricemotion's API. What it does contain is logic for handling webhook requests, and for processing the XML returned by the Pricemotion API.

Links:

Getting started

Installation is easy, whether you use Composer or not.

With Composer

Run:

composer require pricemotion/sdk

Make sure that vendor/autoload.php is required in your scripts.

Without Composer

Download the source code from the Releases page on GitHub.

Extract it.

Require autoload.php in your scripts.

Dependency injection

If you use a framework that supports automatic dependency injection (autowiring) such as Symfony, or have manually integrated a dependency container such as PHP-DI in your project, you should be able to use it to automatically initialize most of the classes in this SDK.

Handling webhooks

A cache is required for storing Pricemotion's public keys, so that they do not have to retrieved on each request. Any cache that implements Symfony's cache contract is supported.

For example, you might install symfony/cache using Composer and initialize it as follows:

With the cache ready, you can decode incoming webhook requests as follows:

Using product data

Getting the EAN:

Getting the product name:

Getting the price statistics:

Getting the offers ranked from lowest to highest price:


All versions of sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
ext-json Version *
ext-sodium Version *
ext-dom Version *
ext-curl 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 pricemotion/sdk contains the following files

Loading the files please wait ....