spinbits/sylius-baselinker-plugin
Composer 安装命令:
composer require spinbits/sylius-baselinker-plugin
包简介
Baselinker Plugin for Sylius.
关键字:
README 文档
README
Sylius Baselinker Plugin
Need help ?
Drop us a message hello@spinbits.io
Overview
This plugin is used to connect Sylius and Baselinker. Baselinker can be used as an integrator and management platform for your e-commerce. It allows to offer your products on many platforms like Ebay, Amazon or Allegro. Baselinker can help you automate sale processes with almost 16000 different providers.
Details
This package is implementation of communication with BaseLinker Connector ("integration file"). For further details please refer to https://developers.baselinker.com/shops_api/
After installation your Baselinker connector url will be available under path: /baselinker-connector of your shop.
Baselinker Configuration
- Login to your Baselinker account: https://login.baselinker.com/
- Click integrations: https://panel-b.baselinker.com/list_integrations.php

- Configure your integration as showed below. Remember to replace your shop domain in url.

- Copy communication password and set it your
.envfile as showed below:BASELINKER_PASSWORD='example-password-change-it'
Sylius Quickstart Installation
Follow the steps to install the plugin on your Sylius application:
-
Run
composer require spinbits/sylius-baselinker-plugin. -
Import route into your routing file:
spinbits_baselinker_plugin: resource: "@SpinbitsSyliusBaselinkerPlugin/Resources/config/admin_routing.yml" -
Import trait to your Order entity:
src/Entity/Order/Order.phpuse Spinbits\SyliusBaselinkerPlugin\Entity\Order\OrderTrait; class Order extends BaseOrder { use OrderTrait; -
Import trait to your ProductRepository entity:
src/Repository/ProductRepository.phpuse Spinbits\SyliusBaselinkerPlugin\Repository\BaseLinkerProductRepositoryInterface; use Spinbits\SyliusBaselinkerPlugin\Repository\ProductsRepositoryTrait; use Sylius\Bundle\CoreBundle\Doctrine\ORM\ProductRepository as BaseProductRepository; class ProductRepository extends BaseProductRepository implements BaseLinkerProductRepositoryInterface { use ProductsRepositoryTrait; }Make sure there is repository replace with your namespace in
config/packages/_sylius.yamlsylius_product: resources: product: classes: repository: App\Repository\ProductRepository
-
Set Baselinker password:
.envBASELINKER_PASSWORD='example-password' -
Imports Plugin XML config file:
<imports> <import resource="@SpinbitsSyliusBaselinkerPlugin/Resources/services.xml"/> </imports>Or in
config/services.yaml:imports: - { resource: '../vendor/spinbits/sylius-baselinker-plugin/src/Resources/config/services.xml' }
-
Run migrations:
bin/console doctrine:migrations:migrate
Test plugin:
Basic tests
in order to test plugin you should
- replace
localhostwith your sylius domain - replace
example-passwordwith your baselinker password
You may get supported methods:
curl -X POST -d 'bl_pass=example-password&action=SupportedMethods' http://localhost/baselinker-connector
You may get version of integration:
curl -X POST -d 'bl_pass=example-password&action=FileVersion' http://localhost/baselinker-connector
Using Baslinker tester
go to:
https://developers.baselinker.com/shops_api/index.php?tester=1
and follow the instructions.
Help
If you need some help with Sylius development, don't hesitate to contact us directly. You can send us an email at office@spinbits.io
spinbits/sylius-baselinker-plugin 适用场景与选型建议
spinbits/sylius-baselinker-plugin 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.6k 次下载、GitHub Stars 达 6, 最近一次更新时间为 2021 年 12 月 27 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「sylius」 「sylius-plugin」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 spinbits/sylius-baselinker-plugin 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 spinbits/sylius-baselinker-plugin 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 spinbits/sylius-baselinker-plugin 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Implementation of the Omnibus Directive for Sylius application.
Bulk export of sylius resources
Sylius plugin that integrates Addwish
Setono example plugin for Sylius.
Will translate fragments of text automatically
Use price tiers in your Sylius store.
统计信息
- 总下载量: 2.6k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-12-27
