承接 geniv/nette-order-control 相关项目开发

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

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

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-09-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固