experteam / api-laravel-ebilling
Laravel library to manage common operations used in electronic billing processes
Installs: 595
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/experteam/api-laravel-ebilling
Requires
- php: ^8.1 || ^8.2
- ext-json: *
- ext-simplexml: *
- illuminate/database: ^9.0 || ^10.0 || ^11.0
- illuminate/support: ^9.0 || ^10.0 || ^11.0
- shalvah/laravel-jsend: ^2.1
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"
      }
    ]
  }
}