k2oumais/lei
最新稳定版本:1.0.2
Composer 安装命令:
composer require k2oumais/lei
包简介
LEI generator and validator
关键字:
README 文档
README
A package to generate and validate a LEI (Legal Entity Identifier).
Installation
You can install the package via composer:
composer require k2oumais/lei
You can publish the config file with:
php artisan vendor:publish --tag="lei-config"
This is the contents of the published config file:
return [ /* |-------------------------------------------------------------------------- | LEI Prefix |-------------------------------------------------------------------------- | | This is the Local Operating Unit (LOU) code. | */ 'lou_code' => env('LEI_LOU_CODE', '1234'), /* |-------------------------------------------------------------------------- | LEI Reserved |-------------------------------------------------------------------------- | | This is the reserved value of an LEI. | */ 'reserved' => env('LEI_RESERVED_VALUE', '00'), ];
Usage
$lei = new K2ouMais\Lei\Lei(); // Generate a LEI $generatedLei = $lei->generate(); // 123400V9I8UWAKBIWH79 // Validate a LEI $validateLei = $lei->validate('123400V9I8UWAKBIWH79'); // true $validateLei = $lei->validate('12340013KCVCMU58YY44'); // false
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 15
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-03-12