定制 kmatulewicz/sylius-baselinker 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kmatulewicz/sylius-baselinker

Composer 安装命令:

composer require kmatulewicz/sylius-baselinker

包简介

Baselinker API plugin for Sylius.

README 文档

README

This plugin is work in progress, do not use this plugin to other purpose then testing, especially do not use this plugin in production environment.

How to test plugin

The fastest method to run dev environment is to use docker:

docker compose up -d
docker compose exec app make init

Change BL_TOKEN in tests/Application/.env. Now you can set plugin in admin panel on your localhost: http://localhost/admin, login is sylius, password is the same as login. You can run sync commands:

docker compose exec app make symfony baselinker:orders:add
docker compose exec app make symfony baselinker:orders:payments
docker compose exec app make symfony baselinker:orders:statuses

or tests:

docker compose exec app make test

Installation

The plugin can be installed in an existing or new sylius-standard application.

  1. Run:

    composer require kmatulewicz/sylius-baselinker
  2. Check presence of plugin entry in config/bundles.php:

    SyliusBaselinkerPlugin\SyliusBaselinkerPlugin::class => ['all' => true],
    
  3. Add to config/packages/_sylius.yaml:

    - { resource: "@SyliusBaselinkerPlugin/Resources/config/config.yml" }
  4. Add to config/routes.yaml:

    sylius_baselinker:
        resource: "@SyliusBaselinkerPlugin/Resources/config/routing.yml"
  5. Add SyliusBaselinkerPlugin\Entity\OrderInterface and SyliusBaselinkerPlugin\Entity\OrderTrait to src/Entity/Order/Order.php. Final result should be similar to:

    // src/Entity/Order/Order.php
    // [...]
    use SyliusBaselinkerPlugin\Entity\OrderInterface;
    use SyliusBaselinkerPlugin\Entity\OrderTrait;
    // [...]
    class Order extends BaseOrder implements OrderInterface
    {
        use OrderTrait;
    }
  6. Add BL_TOKEN to your .env file. Token can be found in Baselinker > My Account > API. If you do not have a token already, create a new one. Final result should be similar to:

    BL_TOKEN=token_copied_from_baselinker
    
  7. Execute migrations:

    bin/console doctrine:migrations:migrate
  8. Rebuild the cache to display all new translations correctly:

    bin/console cache:clear
    bin/console cache:warmup
  9. Go to admin panel and set order source and statuses associations on Baselinker section.

Usage

This plugin provides commands:

  1. baselinker:orders:add Adds not synchronized shop orders to Baselinker.
  2. baselinker:orders:payments Adds to Baselinker payments done in shop after last synchronization.
  3. baselinker:orders:statuses Checks for status changes of synchronized orders. Applies shop order status change to corresponding Baselinker status.

kmatulewicz/sylius-baselinker 适用场景与选型建议

kmatulewicz/sylius-baselinker 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 7 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 04 月 03 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「sylius」 「sylius-plugin」 「baselinker」 「baselinker-api」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 kmatulewicz/sylius-baselinker 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 kmatulewicz/sylius-baselinker 我们能提供哪些服务?
定制开发 / 二次开发

基于 kmatulewicz/sylius-baselinker 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 7
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 8
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-04-03