experteam/api-laravel-ebilling
Composer 安装命令:
composer require experteam/api-laravel-ebilling
包简介
Laravel library to manage common operations used in electronic billing processes
README 文档
README
Laravel library to manage common operations used in electronic billing processes.
It includes:
- Document request manager: manage document requests and retrieve them by document ID.
Install
Run the following commands to install:
composer require experteam/api-laravel-ebilling
Update
Run the composer command to update the package:
composer update experteam/api-laravel-ebilling
Use
After installing the package, you should run the migration command to create the necessary tables in your database.
php artisan migrate
this will create the following tables:
- document_requests
Document Request Manager
You can use the Document Request Manager to store and retrieve document requests:
// Store a document request $documentRequest = DocumentRequestManager::store($documentId, $service, $observation); // Get document requests by document ID $documentRequests = DocumentRequestManager::getByDocumentId($documentId);
API Endpoints
The package provides the following API endpoints:
GET /api/document-requests/{documentId}: Get all document requests for a specific document ID.
Example response:
{
"success": true,
"data": {
"requests": [
{
"id": 1,
"document_id": 123,
"service": "example_service",
"times": [
"2025-07-23T18:57:00.000000Z"
],
"observation": "Example observation",
"created_at": "2025-07-23T18:57:00.000000Z",
"updated_at": "2025-07-23T18:57:00.000000Z"
}
]
}
}
License
统计信息
- 总下载量: 1.1k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-04-24