定制 schenke-io/laravel-invoice 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

schenke-io/laravel-invoice

最新稳定版本:v0.2.17

Composer 安装命令:

composer require schenke-io/laravel-invoice

包简介

Currency and Invoices in Laravel

README 文档

README

Laravel Invoice

Handling of:

  • Currency
  • Invoice

Currency

Public methods of Currency

method summary
fromAny static constructor from any value
fromFloat static constructor from a float value
fromCents static constructor from cents
vatFromGross VAT amount from the gross price, given a VAT rate.
vatFromNet Calculate the VAT amount from the net price, given a VAT rate.
fromGrossToNet convert a gross value to a net value using VAT
fromNetToGross Convert a net value to a gross value using VAT
toFloat exports to float
str exports to formatted currency string
plus adds two objects
minus subtracts two objects
times multiplies the object by a factor
toLivewire exports to Livewire format
fromLivewire static constructor from Livewire format
isEmpty Check if the object is empty (zero)

InvoiceNumericData

Public methods of InvoiceNumericData

method summary
addWeight take the weight in grams and add it to the total weight
addLine cent based calculation to avoid numeric glitches
vats formats the VAT values in a readable format
payMe show pay me information
isEmpty the total is zero
invoiceViewData data for blade templates

Custom invoice

To build a custom invoice you first generate a class which extends LineViewBase and implements InvoiceLineView.

This class should define the column-alignment.

Then you start a new instance of InvoiceViewData and fill its public data. The __construct() method must declare public variables same name as the keys in columns().

统计信息

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

GitHub 信息

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

其他信息

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