Skip to content

Latest commit

 

History

History
56 lines (49 loc) · 1.12 KB

README.md

File metadata and controls

56 lines (49 loc) · 1.12 KB

PHP-ETL Prestashop plugin

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.