bayindir / product-feeder-system
Product feeder system
dev-main
2022-03-27 23:56 UTC
Requires
- php: >=8.1
This package is not auto-updated.
Last update: 2025-07-01 13:45:09 UTC
README
Installation
You can install the package via composer:
composer require bayindir/product-feeder-system
Usage
1.1 Use with facade for all platforms
<?php include_once "vendor/autoload.php"; use Src\Concrete\CimriManager; use Src\Concrete\FacebookManager; use Src\Concrete\GoogleManager; use Src\Facades\Platforms; $products = [ [ "id" => 1, "name" => "productName", "category" => "categoryName", ], [ "id" => 2, "name" => "productName2", "category" => "categoryName2", ], [ "id" => 2, "name" => "productName3", "category" => "categoryName3", ] ]; $instance = new Platforms(new FacebookManager(), new CimriManager(), new GoogleManager()); return $instance->exporter($products);
1.2 Or use concretes for a specific platforms
$instance = new FacebookManager(); //or CimriManager, or GoogleManager return $instance->exportFile($products);