gpupo/markethub-bundle

此软件包已被废弃且不再维护。未建议替代软件包。

巴西市场SDK集成

6.3.0 2024-04-10 19:55 UTC

README

Symfony 6应用程序的市场SDK集成

Build Status Actions Status

兼容性

版本 > 3,仅支持PHP 8或更高版本。版本 > 2,仅支持PHP 7或更高版本。版本1.x使用PHP > 5.3。

可用的集成

  • B2W (v1, v2)
  • Cnova (v1)
  • Netshoes (v1)
  • Mercado Livre (v1, v2)

安装

使用 Composer

composer require gpupo/markethub-bundle

注册软件包

<?php
// config/bundles.php

Gpupo\MarkethubBundle\Bridge\Symfony\Bundle\MarkethubBundle::class => ['all' => true],

版权和许可证

本项目遵循MIT许可证条款。

此组件遵循MIT许可证

有关版权和许可证的信息,您必须阅读随此源代码一起分发的许可证文件

许可证摘要

必需

  • 许可证和版权声明

允许

  • 商业使用
  • 修改
  • 分发
  • 再许可
  • 禁止

禁止

  • 责任保证

设置

config/parameters.yml

parameters:
    #...
    markethub_submarino_api_token: 'MyApiToken'

config/config_dev.yml

markethub:
    submarino:
        api_token: 'MySandbox@ApiToken'

config/packages/markethub.yaml

markethub:
    submarino:
        api_token: %markethub_submarino_api_token%
        api_version: 'api'

可用服务

(请将%nome_marketplace%视为需要填充的值)

  • markethub.%nome_marketplace%.factory
  • markethub.%nome_marketplace%.client
  • markethub.%nome_marketplace%.product.manager
  • markethub.%nome_marketplace%.product.sku.manager
  • markethub.%nome_marketplace%.order.manager

可用构造器

  • createProduct
  • createSku
  • createOrder

命令

查看产品信息

./bin/console  markethub:mercadolivre:catalog:product:view MLB23375818902

开发

git clone --depth=1  git@github.com:gpupo/MarkethubBundle.git markethub-bundle
cd markethub-bundle;
ant;

自定义phpunit配置

cp phpunit.xml.dist phpunit.xml;

自定义参数!

提示:请检查在var/log/main.log中生成的日志