yearul/lara-invoice
Composer 安装命令:
composer require yearul/lara-invoice
包简介
The Laravel Invoice Number Generator is a powerful and flexible package that simplifies the process of generating unique invoice numbers within Laravel applications. It provides a convenient solution for managing invoice numbers, ensuring they are unique, sequential, and customizable according to yo
关键字:
README 文档
README
This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
Laravel Version 10.*
Description
Title: Laravel Invoice Number Generator
The Laravel Invoice Number Generator is a powerful and flexible package that simplifies the process of generating unique invoice numbers within Laravel applications. It provides a convenient solution for managing invoice numbers, ensuring they are unique, sequential, and customizable according to your specific requirements.
Features:
Unique Invoice Number Generation: The package generates unique invoice numbers to avoid conflicts and ensure accurate record-keeping.
Sequential Numbering: The invoice numbers are generated in a sequential manner, making it easier to track and organize invoices.
Customizable Formats: You can define custom formats for your invoice numbers, allowing you to incorporate various elements such as prefixes, suffixes, date formats, and sequential numbering patterns.
Integration with Laravel Ecosystem: The package seamlessly integrates with Laravel, leveraging its powerful features and ecosystem. It utilizes Laravel's model events and database migrations for easy setup and configuration.
Configurable Options: The package provides various configuration options, including the ability to set the initial invoice number, configure the length of invoice numbers, define prefix and suffix values, and specify the date format.
Multiple Invoice Number Generators: You can create multiple invoice number generators with different configurations to handle specific use cases within your application. For example, you might have separate invoice numbering for different branches or departments.
Extensible and Customizable: The package is designed to be extensible, allowing you to customize its functionality to meet your specific needs. You can override default behaviors, implement your own generation algorithms, or extend existing classes.
Well-documented and Supported: The Laravel Invoice Number Generator package is thoroughly documented, providing clear instructions on installation, configuration, and usage. Additionally, it benefits from an active community and ongoing support to address any issues or questions you may have.
By using the Laravel Invoice Number Generator package, you can streamline your invoicing process, ensure accurate and unique invoice numbers, and improve overall organization and tracking of your financial records.
Installation
You can install the package via composer:
composer require yearul/lara-invoice
You can publish the config file with:
php artisan vendor:publish --tag="lara-invoice-config"
This is the contents of the published config file:
return [ /* |-------------------------------------------------------------------------- | Invoice NO Generator Config |-------------------------------------------------------------------------- | | This is the config file for Invoice NO generator. You can override | this config file by placing it in your application's config directory | and change the values as per your need. | */ /* |-------------------------------------------------------------------------- | Default Pad Length |-------------------------------------------------------------------------- | | If no pad length is provided to the generate method, this value will be used | */ "pad_len" => 5, /* |-------------------------------------------------------------------------- | Default Prefix |-------------------------------------------------------------------------- | | If no prefix is provided to the generate method, this value will be used | */ "prefix" => "YEA", /* |-------------------------------------------------------------------------- | Default year and year_val |-------------------------------------------------------------------------- | | If no year and year_val is provided to the generate method, this value will be used | */ "year" => true, "year_val" => date('Y'), /* |-------------------------------------------------------------------------- | Default pad string |-------------------------------------------------------------------------- | | If no pad string is provided to the generate method, this value will be used | */ "pad_string" => 0, // 0, #, *, $.......etc /* |-------------------------------------------------------------------------- | Default pad_direction |-------------------------------------------------------------------------- | | If no pad_direction is provided to the generate method, this value will be used | */ "pad_direction" => STR_PAD_LEFT, // STR_PAD_LEFT, STR_PAD_RIGHT ];
Optionally, you can publish the views using
php artisan vendor:publish --tag="lara-invoice-views"
Usage
use Yearul\LaraInvoice\LaraInvoice; // import this in the top of the class $value = LaraInvoice::generate(2); // 2 is input value echo $value; //Output YEA-2023-00002 //Generate Method // generate($input, $pad_len = null, $pad_string = null, $prefix = null, $year = null) // the generate method received 5 value, $input value is mandatory and others value not mandatory( thoes can get from config file and also Manual Input)
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
yearul/lara-invoice 适用场景与选型建议
yearul/lara-invoice 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 304 次下载、GitHub Stars 达 2, 最近一次更新时间为 2023 年 05 月 11 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「invoice」 「laravel」 「yearul」 「lara-invoice」 「invoice number」 「lara invoice number generator」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 yearul/lara-invoice 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 yearul/lara-invoice 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 yearul/lara-invoice 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Easy invoice generation using Laravel Eloquent
Laravel MPdf : Easily generate PDF files with arabic support
Szamlazz.hu integration for Laravel
Modern PHP 8.3+ BOLT 11 Lightning Network invoice encoder/decoder
Alfabank REST API integration
Library to generate PDF invoices - Fork for french format
统计信息
- 总下载量: 304
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 18
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-05-11