geniv/nette-order-control
Composer 安装命令:
composer require geniv/nette-order-control
包简介
Order control class for Nette Framework
README 文档
README
Installation
$ composer require geniv/nette-order-control
or
"geniv/nette-order-control": ">=1.0.0"
require:
"php": ">=7.0.0"
Include in application
content of IOrderControl:
//const: IOrderControl::CURRENCY_CZK IOrderControl::CURRENCY_EUR IOrderControl::CURRENCY_USD IOrderControl::CURRENCY_GBP //method: setPrice(float $price): IOrderControl; setVat(float $vat): IOrderControl; setCurrency(string $currency): IOrderControl; getCurrency(): string; getPrice(): float; getVat(): float; getPriceVat($priceAndVat = false): float; getPriceTotal($priceAndVat = false): float; setPayment(string $name, float $price, float $vat): IOrderControl; getPaymentName(): string; getPaymentPrice(): float; getPaymentPriceVat($priceAndVat = false): float; setDelivery(string $name, float $price, float $vat): IOrderControl; getDeliveryName(): string; getDeliveryPrice(): float; getDeliveryPriceVat($priceAndVat = false): float; getOrderNumber(array $items, int $zeros = self::ZEROS): string;
php usage:
$orderControl = new OrderControl(); $orderControl->setPrice($this->price); $orderControl->setVat($this->vat); $orderControl->setCurrency($this->currency); $orderControl->setPayment($item['driver'], $item['price'], $this->vat); $orderControl->setDelivery($item['driver'], $item['price'], $this->vat);
latte usage:
{$orderControl->getPrice()} {$orderControl->getPriceVat(true)}
统计信息
- 总下载量: 49
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-09-13