php-etl/prestashop-plugin

Plugin for Prestashop Extractor and Loader

Installs: 34

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:gyroscops-plugin

dev-main / 0.1.x-dev 2023-08-24 09:15 UTC

This package is auto-updated.

Last update: 2024-04-24 10:58:47 UTC


README

The Prestashop plugin aims at connecting a Prestashop API to ETL pipelines.

Read the complete and up-to-date documentation online.

Installation

composer require php-etl/prestashop-plugin

Quick start

Building an extractor

prestashop:
  client:
    url: 'https://prestashop.example.com'
    api_key: 'abc1234'
  extractor:
    type: 'products'
    method: 'all'
    options:
      columns:
        - 'id'
        - 'product_type'
        - 'price'
      filter:
        id: '[1,10]'
      sorters:
        id: ASC
      id_shop: 1
      id_group_shop: 1
      languages:
        from: 1
        to: 3
      price:
        my_price:
          product_attribute: 25

Building a loader

prestashop:
  client:
    url: 'https://prestashop.example.com'
    api_key: 'abc1234'
  loader:
    type: 'products'
    method: 'create'
    options: 
      id_shop: 1
      id_group_shop: 1

Read the online documentation for more details.