Download the PHP package findologic/plentymarkets-rest-exporter-new without Composer

On this page you can find all versions of the php package findologic/plentymarkets-rest-exporter-new. 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 plentymarkets-rest-exporter-new

Plentymarkets REST exporter

GitHub Actions Tests codecov

Table of Contents

  1. Synopsis
  2. Requirements
  3. Installation
  4. Running the export
  5. Development
    1. Running the export
      1. Using a shopkey to run the export
      2. Configuration
      3. Debugging the export

Synopsis

This is a work in progress rewrite of the findologic/plentymarkets-rest-export.

The Plentymarkets REST API is being called to get all necessary product data for FINDOLOGIC. The data is then wrapped to generate a FINDOLOGIC-consumable XML/CSV file. In the case of XML this could be multiple files.

Requirements

Installation

  1. Run composer install to install all required dependencies.
  2. Copy .env to .env.local, and set the configuration for the shop, you want to export the data from.

Running the export

  1. Run bin/console export:start.
  2. When the export was successful, you may be able to find the exported CSV/XML file in the /export directory.

If you want to debug, read more about debugging the export.

Development

Directory structure

Running tests

Running tests is as simple as it gets. Either run composer test, or use your IDE to run the tests. When running them with the IDE you may want to include phpunit.xml.dist as alternative configuration file.

Using a shopkey to run the export

NOTE: Running an export with a shopkey requires the option IMPORT_DATA_URL to be set in your environment file!

You can also run the export for a specific shopkey by calling the export with an additional shopkey parameter or bin/console export:start [shopkey].

When a shopkey is supplied, the EXPORT_xxx environment variables may be ignored.

Configuration

Here is a short table that explains each configuration option. Configuration changes can be done in your environment files.

Configuration option Description
EXPORT_USERNAME The user which is used to authenticate to the REST API. It needs these permissions to successfully export.
EXPORT_PASSWORD The password of the API user.
EXPORT_DOMAIN The domain of the shop without protocol (http/https). E.g. www.your-shop.com
EXPORT_MULTISHOP_ID The multiShopId of the shop. Each language has their own multiShopId at Plentymarkets. It is also known as "Webstore ID".
EXPORT_AVAILABILITY_ID Products that have this availability id assigned, won't be exported.
EXPORT_PRICE_ID Id of the exported prices that should be shown.
EXPORT_RRP_ID Id of the recommended retail price that should be shown.
EXPORT_LANGUAGE Language of the shop. E.g. DE, EN, FR
EXPORT_UNAVAILABLE_VARIATIONS If active, unavailable variants will be exported.
EXPORT_REFERRER_ID Only options including this ID within "Referrers" will be exported. All properties will be exported, if not set.
EXPORT_ORDERNUMBER_PRODUCT_ID If active, the product ID will be exported as an order number.
EXPORT_ORDERNUMBER_VARIANT_ID If active, the variant ID will be exported as an order number.
EXPORT_ORDERNUMBER_VARIANT_NUMBER If active, the variant number will be exported as an order number.
EXPORT_ORDERNUMBER_VARIANT_MODEL If active, the variant model will be exported as an order number.
EXPORT_ORDERNUMBER_VARIANT_BARCODES If active, the variant barcodes will be exported as an order numbers.
EXPORT_FREE_TEXT_FIELDS If active, the free text fields will be exported as attributes.
EXPORT_DIMENSION_UNIT Unit for the configured length/width/height of the products.
EXPORT_WEIGHT_UNIT Unit for the configured weight of the products.
DEBUG Boolean that if set to true, will log all requests/responses inside of the debug folder.
IMPORT_DATA_URL Adding this to your config allows you to call the export with an additional shopkey parameter.

Debugging the export

If you want to debug the export, you can simply right-click bin/console inside of the IDE and select "Debug 'export (PHP Script)'".

Setting the environment variable "DEBUG" to true, will automatically create request/response files inside of the var/debug folder.
If you no longer need them, they can be cleared anytime running composer clear, or bin/clearExportFiles.


All versions of plentymarkets-rest-exporter-new with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
guzzlehttp/guzzle Version ^7.4.5
vasily-kartashov/log4php Version ^4.1
ext-json Version *
findologic/libflexport Version ^3.1
nesbot/carbon Version ^2.38
symfony/cache Version ^5.1
guzzlehttp/promises Version ^1.4
symfony/dotenv Version ^5.2
php-units-of-measure/php-units-of-measure Version ^2.1
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 findologic/plentymarkets-rest-exporter-new contains the following files

Loading the files please wait ....