Download the PHP package philharmonie/lexware-office-laravel without Composer
On this page you can find all versions of the php package philharmonie/lexware-office-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package lexware-office-laravel
Lexware Office Laravel Package
A Laravel package for seamless integration with the Lexware Office API. This package provides an elegant way to interact with Lexware Office services, including contacts and invoices management.
Requirements
- PHP ^8.2
- Laravel ^10.0|^11.0
- Guzzle ^7.0
Installation
You can install the package via composer:
Service Provider
The service provider is automatically registered using Laravel's auto-discovery feature. If you need to register it manually, add the following line to the providers array in config/app.php
:
Configuration
Publish the configuration file:
Add your Lexware Office API key to your .env
file:
Configuration Options
LEXOFFICE_API_KEY
- Your Lexware Office API key (required)LEXOFFICE_BASE_URL
- API base URL (default: https://api.lexware.io/v1)LEXOFFICE_TIMEOUT
- Request timeout in seconds (default: 30)LEXOFFICE_RETRY_ATTEMPTS
- Number of retry attempts for failed requests (default: 3)LEXOFFICE_CACHE_TTL
- Cache time-to-live in seconds (default: 300)LEXOFFICE_RATE_LIMITING_ENABLED
- Enable automatic rate limiting (default: true)LEXOFFICE_LOGGING_ENABLED
- Enable detailed API logging (default: false)
Usage
Contacts
Invoices
Dunning
Using Builders
The package provides fluent builders for creating invoices and related structures with comprehensive validation:
Error Handling
The package provides enhanced error handling with detailed exception information:
Advanced Usage
For advanced use cases, you can inject services directly:
Performance Features
The package includes several performance optimizations:
- Automatic Caching: GET requests to read-only endpoints are automatically cached
- Rate Limiting: Automatic throttling to stay within API limits (2 requests/second)
- Retry Logic: Automatic retry with exponential backoff for 5xx errors and rate limits
Testing
This will run:
- Code style checks (Pint)
- Static analysis (PHPStan)
- Unit tests (Pest)
- Refactoring checks (Rector)
Individual test commands:
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Phil Harmonie
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of lexware-office-laravel with dependencies
guzzlehttp/guzzle Version ^7.0
illuminate/http Version ^10.0|^11.0|^12.0
illuminate/support Version ^10.0|^11.0|^12.0