定制 unopim/bagisto-connector 二次开发

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

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

unopim/bagisto-connector

Composer 安装命令:

composer require unopim/bagisto-connector

包简介

UnoPim Bagisto Connector enables users to link their Bagisto store to the UnoPim platform, allowing for seamless synchronization and management of product information.

README 文档

README

The UnoPim-Bagisto Connector enables seamless integration between UnoPim 2.0 and Bagisto, allowing you to synchronize data effortlessly.

✨ Features

  • 🗂 Export Categories: Export categories from UnoPim as collections in Bagisto.
  • 🛠️ Attributes Sync: Transfer attributes from UnoPim to Bagisto with ease.
  • 👨‍👩‍👧 Export Families: Export families from UnoPim to Bagisto.
  • 📦 Product Export: Export products, including simple and configurable ones, from UnoPim to Bagisto.
  • Bulk API: Leverage a bulk API for faster product exports.
  • 🗄️ Media Sync: Sync product images and videos from UnoPim to Bagisto.
  • ☁️ AWS S3 Compatibility: Fully compatible with AWS S3 for image storage and management.

✅ Requirements

  • UnoPim: 2.1.x
  • PHP: 8.3+
  • Bagisto with REST API installed (2.x.x)

🛠️ Installation with Composer (recommended)

UnoPim 2.0 ships with Laravel 12-style auto-discovery, so the service provider is registered automatically through composer.json (extra.laravel.providers). You only need to require the package and run the installer.

  1. Require the package

    composer require unopim/bagisto-connector
  2. Run the package installer

    The package ships an artisan command that runs the migrations, publishes assets, and clears caches in one step:

    php artisan bagisto-package:install

    Pass --no-interaction (e.g. in CI) to accept the default for the migration prompt.

  3. (Optional) Verify the provider is registered

    Auto-discovery should add the provider for you. If you want to confirm, check that bootstrap/providers.php resolves the package via composer dump-autoload — there is no entry to add by hand in UnoPim 2.0.

⚙️ Installation without Composer

Use this path only if you need to load the package from the local packages/ directory (for example when forking or developing the connector).

  1. Place the package

    Download and extract the connector. Rename the folder to Bagisto and move it into packages/Webkul/ of your UnoPim 2.0 project, so the final path is:

    packages/Webkul/Bagisto
    
  2. Register the namespace

    Open the project's root composer.json and add the package namespace under autoload.psr-4:

    "autoload": {
        "psr-4": {
            "Webkul\\Bagisto\\": "packages/Webkul/Bagisto/src"
        }
    }
  3. Register the service provider

    UnoPim 2.0 follows the Laravel 12 bootstrap layout — providers live in bootstrap/providers.php, not in config/app.php.

    Open bootstrap/providers.php and add the provider to the returned array:

    <?php
    
    return [
        // ...other providers,
        Webkul\Bagisto\Providers\BagistoServiceProvider::class,
    ];
  4. (Alternative) Register as a path repository

    If you keep the package in packages/Webkul/Bagisto and still want to install it via Composer (so auto-discovery handles the provider), register a path repository in the project's composer.json and require it:

    composer config repositories.bagisto '{"type":"path","url":"packages/Webkul/Bagisto","options":{"symlink":true}}' --json
    composer require unopim/bagisto-connector:"*@dev"
  5. Refresh autoload and run the installer

    composer dump-autoload
    php artisan bagisto-package:install
    php artisan optimize:clear

    The installer covers migrate, vendor:publish --tag=unopim-bagisto-connector, and optimize:clear for you. Run them individually only if you want fine-grained control:

    php artisan migrate
    php artisan vendor:publish --tag=unopim-bagisto-connector
    php artisan optimize:clear

🔁 Enable Queue Operations

The connector dispatches export jobs onto Laravel queues. Make sure a worker is running:

php artisan queue:work --queue=default,system,completeness

If queue:work is supervised by a process manager (Supervisor, systemd, etc.), restart it after upgrading the connector so the new code is picked up:

sudo service supervisor restart

🌐 Bagisto Requirement: REST API

The connector talks to Bagisto via its REST API. Install the API on the Bagisto side before configuring credentials in UnoPim.

  1. Reference repositoryunopim/bagisto-rest-api
  2. Installation docsBagisto REST API docs
  3. Compatibility — install the 2.x.x line that matches your Bagisto version.

📞 Support

For any issues or inquiries, please contact our support team.

unopim/bagisto-connector 适用场景与选型建议

unopim/bagisto-connector 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 87 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 05 月 09 日, 在 PHP 生态内属于活跃度较高的组件。

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

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

围绕 unopim/bagisto-connector 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-05-09