承接 zero1/magento2-rest-client 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

zero1/magento2-rest-client

Composer 安装命令:

composer require zero1/magento2-rest-client

包简介

PHP rest client for Magento 2

README 文档

README

PHP rest client for Magento 2

Examples

More examples can be found in the examples directory.

$magento = new Magento2\Client(
    'https://www.mysite.com',
    'username',
    'password'
);

$products = $magento->getProducts([
    [['type_id', 'simple', 'eq']],
    [['status', 1, 'eq']],
    [['visibility', 1, 'gt']]
]);

get all simple, enabled and visible products

Changelog

  • 1.0.0
    Initial commit

  • 1.0.1
    Added the methods:

    • getStockItem
    • getCategories
    • getStoreViews
    • getStoreGroups
    • getCmsPages
  • 1.0.2

    • Added method getStoreConfiguration
    • added to docs
    • moved examples
    • added example
  • 1.0.3 Added the methods:

    • getProductBySku($sku)
    • setStockLevelForSku($sku, $quantity, $item_id)
    • loadOrder($id)
    • getOrders($filter)
    • getCustomer($id)
    • addOrderComment($orderId, $status, $message, $notify)
    • getAllProducts($filters)
    • getStockInfo($sku_or_product_id)
    • updateStock($sku_or_id, $stockdata)
    • getAllGiftCards
    • updateGiftCard($code, $balance, $expiry = null)
    • getGiftCardFromOrder($order_id)
  • 1.0.5 Added the methods:

    • getAllCategories($orderBy, $page, $limit)
    • getCustomer($customer_id)
    • getOrder($order_id)
    • getOrders($where, $orderBy, $page, $limit)
    • getProductBySku($sku)
    • setStockLevelForSku(($sku, $quantity, $item_id)
  • 1.0.6 Added the methods:

    • getStockStatuses($sku)
    • shipOrder($orderId, $items = [], $notify = true, $appendComment = true, $comment = [], $tracks = [], $packages = [], $arguments = [])
    • getOrderItems($where = [], $orderBy = null, $page = 1, $limit = 100)
    • Added the ability to supply custom configuration to the guzzle client
  • 1.0.7

    • Bumped Guzzle version to support newer apps.
  • 1.0.10 Replaced attribute methods:

    • getProductAttributeOptions($attribute = 'string')
    • getProductAttribute($attribute = 'string')
    • addProductAttributeLabel($attribute = 'string', $label = 'string')
    • deleteProductAttributeLabel($attribute = 'string', int $label_id)
  • 1.0.18

    • Refactor to allow use with custom endpoints, see example11
  • 1.0.19

    • Addition of "entity not found" exception, see example12
  • 1.0.20

    • Added update product example
    • Added get product attribute options example
    • Added update product function
  • 1.1.0

    • Added ability to pass in token manager, see example15
    • bug fix: getAllCategories will now recursively get all categories instead of just the first page
    • bug fix: getCategories invalid url endpoint resolved
    • feature: getProductAttributeOptions can now have a store code passed in
    • feature: addProductAttributeLabel can now be passed a list of "store labels" which should be added to the new attribute option
    • bug fix: setWebsiteForProduct invalid url endpoint resolved
    • feature: Tier prices can now be managed through: getTierPrices, removeTierPrices, setTierPrices
    • feature: products can now be added to categories via addProductToCategory
    • feature: media gallery entries can now be managed through: getMediaGalleryEntries, addMediaGalleryEntry, updateMediaGalleryEntry, deleteMediaGalleryEntry

zero1/magento2-rest-client 适用场景与选型建议

zero1/magento2-rest-client 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.09k 次下载、GitHub Stars 达 4, 最近一次更新时间为 2019 年 10 月 28 日, 在 PHP 生态内属于活跃度较高的组件。

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

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

围绕 zero1/magento2-rest-client 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

  • 总下载量: 2.09k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 10
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-10-28