承接 marshmallow/priceable 相关项目开发

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

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

marshmallow/priceable

最新稳定版本:v3.2.1

Composer 安装命令:

composer require marshmallow/priceable

包简介

Package for handeling prices

关键字:

README 文档

README

alt text

Marshmallow Products

Deze package gaat alle logica houden voor producten. Producten zullen in het algemeen gebruikt worden in combinatie met de Cart of Ecommerce package.

Installatie

composer require marshmallow/priceable

Vendor Publish

...

php artisan vendor:publish --provider="Marshmallow\Priceable\PriceableServiceProvider" --tag="config" --force

Methods

Currency::getUserCurrent();
Currency::getExceptUserCurrent()

Routes

@foreach (\Marshmallow\Priceable\Models\Currency::get() as $currency)
    <a href="{{ route('set-currency', $currency) }}">
        {{ $currency->name }}
    </a>
@endforeach

Available methods

currentPrice() isDiscounted() discountedFrom()

CURRENCY=eur

php artisan db:seed --class=Marshmallow\Product\Database\Seeds\VatRatesSeeder

To do

php artisan marshmallow:resource Price Priceable php artisan marshmallow:resource VatRate Priceable php artisan marshmallow:resource Currency Priceable php artisan marshmallow:resource PriceType Priceable

Tests

Priceable is_can_make_use_of_the_price_facade

Currency //

VAT //

Price it_has_one_currency it_has_one_vat_rate it_makes_use_of_default_vatrate_id it_makes_use_of_default_currency_id it_calculates_including_price_correctly_from_excluding_amount it_calculates_excluding_price_correctly_from_excluding_amount it_calculates_vat_amount_correctly_from_excluding_amount it_calculates_including_price_correctly_from_including_amount it_calculates_excluding_price_correctly_from_including_amount it_calculates_vat_amount_correctly_from_including_amount it_returns_a_carbon_instance_for_valid_from it_returns_a_carbon_instance_for_valid_till

Extra

factory(Marshmallow\Product\Models\Product::class, 10)->create();

Tests during development

php artisan test packages/marshmallow/priceable ...

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-04-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固