tallieutallieu/dry-ecommerce 问题修复 & 功能扩展

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

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

tallieutallieu/dry-ecommerce

最新稳定版本:1.2.1

Composer 安装命令:

composer require tallieutallieu/dry-ecommerce

包简介

E-commerce package

README 文档

README

E-commerce platform

Installation

composer require tallieutallieu/dry-ecommerce

Register the service provider

<?php

$app = new \Oak\Application();

$app->register([
    \Tnt\Ecommerce\EcommerceServiceProvider::class,
]);

$app->bootstrap();
Config options
Name Default
payment \Tnt\Ecommerce\Payment\NullPayment::class

Careful! Payment can be set from configuration. the default value of the "payment" config property provides a default NullPayment which basically gives everything away for free. For more info on payments check out the topic payments below.

Concepts

  • Buyable
  • Cart
  • Discount & Coupon
  • Fulfillment
  • Customer
  • Order
  • Payment
  • Stock
  • Tax

Buyable

Documentation coming soon

Cart

<?php

$cart = $app->get(CartInterface::class);

$cart->add($buyable, 2);
$cart->remove($buyable);
$cart->clear();
$items = $cart->items();

$cart->setFulfillment($shipping);
$fulfillment = $cart->getFulfillment();
$fulfillmentCost = $cart->getFulfillmentCost();

$cart->addDiscount($discountCode);
$discountCode = $cart->getDiscount();

$subTotal = $cart->getSubTotal();
$total = $cart->getTotal();
$reduction = $cart->getReduction();

$order = $cart->checkout($customer);

Discount & Coupon

Documentation coming soon

Fulfillment

Documentation coming soon

Customer

Documentation coming soon

Order

Documentation coming soon

Payment

Documentation coming soon.

Available payment packages:

Stock

Documentation coming soon

Tax

Documentation coming soon

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2023-11-16