basketin/basketin-api-php 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

basketin/basketin-api-php

Composer 安装命令:

composer require basketin/basketin-api-php

包简介

Monitoring and analyzing the shopping carts of customers, knowing the abandoned carts, and taking effective action with it.

README 文档

README

Install

composer require basketin/basketin-api-php

Usage

Set config

use Basketin\Api\Config;

$config = new Config([
    'basket' => '<basket_key:string>',
    'token' => '<token:string>',
    'customer_identity' => '<customer_identity:string>',
]);

Create an instance of the client

use Basketin\Api\BasketinApiClient;

$client = new BasketinApiClient($config);

Item model

Add new item to cart

$client->item->create([
    'quantity' => <quantity:int>,
    'price' => <price:decimal>,
    'product' => [
        'increment_id' => <product_id:int>,
        'name' => '<quantity:string>',
        'image' => '<image_url:string>',
    ],
]);

Destroy item from cart

$client->item->destroy([
    'product' => [
        'increment_id' => <product_id:int>,
    ],
]);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2022-09-16