Skip to content

productsupcom/sample-connector-php-public

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample PHP Symfony connector

Create, configure, build, deploy connector in the Developer portal

Create connector

  • Login into the Dev portal
  • Add new connector with the following attributes:
    • Type: export or export-delta (Depending on the use case)
    • Execution mode: enviroment variables (Connectors will receive configurations from command line options)

Configure Export connector

  • Version control
    • Configure version control based on your VCS provider
  • Application
    • Command: php
    • Arguments bin/console app:export
    • Health check: --help
  • Individual configurations
    • Command option: SAMPLE_CONFIG; Field type: input
  • Export configuration
    • Attach appropriate channel and enable feedback file

Configure Export Delta connector

  • Version control
    • Configure version control based on your VCS provider
  • Application
    • Command: php
    • Arguments bin/console app:export-delta
    • Health check: --help
  • Export configuration
    • Attach appropriate channel and enable feedback file

Build, deploy connector

  • In the release configuration trigger build. If everything was configured correctly it should succeed.
  • Synchronize it with the runtime first, then with the platform

Connectors

This project contains 2 connectors:

  • Export (app:export) — Reads all products from the input file in batches, logs them, and writes feedback.
  • Export Delta (app:export-delta) — Reads products from the delta files (new, modified, unchanged, deleted) individually and writes feedback. Useful for processing only changes since the last run.

Requirements

  • PHP >= 8.4
  • Composer

Installing the Container API Client

The productsupcom/container-api-client package is hosted on GitHub. To install it, add the following to your composer.json:

  1. Add the repository:
"repositories": [
    {
        "type": "vcs",
        "url": "https://github.com/productsupcom/container-api-client"
    }
]
  1. Require the package:
"require": {
    "productsupcom/container-api-client": "*"
}

Then run composer install (or composer update).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors