butopea/vue-storefront-opencart-vsbridge
Composer 安装命令:
composer require butopea/vue-storefront-opencart-vsbridge
包简介
Vue Storefront Connector Extension for OpenCart
README 文档
README
Compatible with: OpenCart 2.3.0.2
API Base URL: https://site_url/vsbridge/
API Credentials:
- Username: OC API Name
- Password: OC API Key
- Secret Key: Must be generated in VS Bridge module settings
- Token Format: JWT
Installation:
- Add the following line in the extra section of your OpenCart's composer.json:
Make sure to change the destination folder to match your upload/public folder.
"extra": { "filescopier": [ { "source": "vendor/butopea/vue-storefront-opencart-vsbridge/src", "destination": "upload", "debug": "true" } ] }
Notes about the source and destination paths:
- The destination element must be a folder. if the destination folder does not exists, it is recursively created using
mkdir($destination, 0755, true)- If the destination folder is not an absolute path, the relative path is calculated using the vendorDir path (
$project_path = \realpath($this->composer->getConfig()->get('vendor-dir').'/../').'/';)- The source element is evaluated using the php function
\glob($source, GLOB_MARK)and a recursive copy is made for every result of this function into the destination folder
- Run the following command to add the required composer packages, including the VS Bridge itself:
composer require butopea/vue-storefront-opencart-vsbridge
- Add the URL rewrite rule for VS Bridge (Nginx example):
location /vsbridge { rewrite ^/(.+)$ /index.php?route=$1 last; }
- Install the extension in OpenCart (Extensions -> Modules) and generate a secret key
This extension will create its own tables in the database. An overview of the database changes can be found here.
- Get the Vue Storefront OpenCart Indexer to import your data into ElasticSearch.
You need to whitelist your indexer's IP address in OpenCart at oc_url/admin/index.php?route=user/api
Tests:
- Edit
tests/test.phpand add the credentials and settings - Run
php tests/test.php
Development:
We're currently in the early stages of getting all the features working and would love other OpenCart developers to join in with us on this project!
If you found a bug or want to contribute toward making this extension better, please fork this repository, make your changes, and make a pull request.
Credits:
Made with ❤ by Butopêa
Support:
Please ask your questions regarding this extension on Vue Storefront's Slack https://vuestorefront.slack.com/ You can join via this invitation link.
License:
This extension is completely free and released under the MIT License.
butopea/vue-storefront-opencart-vsbridge 适用场景与选型建议
butopea/vue-storefront-opencart-vsbridge 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 259 次下载、GitHub Stars 达 17, 最近一次更新时间为 2019 年 11 月 06 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「opencart」 「vue-storefront」 「vsbridge」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 butopea/vue-storefront-opencart-vsbridge 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 butopea/vue-storefront-opencart-vsbridge 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 butopea/vue-storefront-opencart-vsbridge 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
OpenCart 2.x hacked to allow SVG support
Eloquent support for OpenCart models
Open Cart API
Библиотека для подключения классов Yii к OpenCart
Class for work with Opencart database
OpenCart 2
统计信息
- 总下载量: 259
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 17
- 点击次数: 11
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-11-06