Download the PHP package hyperlab/laravel-dimona without Composer
On this page you can find all versions of the php package hyperlab/laravel-dimona. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hyperlab/laravel-dimona
More information about hyperlab/laravel-dimona
Files in hyperlab/laravel-dimona
Package laravel-dimona
Short Description Interact with Dimona in Laravel
License MIT
Homepage https://github.com/hyperlab/laravel-dimona
Informations about the package laravel-dimona
Interact with Dimona in Laravel
This package provides an easy way to interact with the Dimona API in Laravel applications.
Installation
You can install the package via composer:
You can publish and run the migrations with:
You can publish the config file with:
This is the contents of the published config file:
Usage
Configuration
First, configure your Dimona API credentials in the .env
file:
For multiple clients, you can configure them in the config/dimona.php
file:
Basic Usage
Implement the DimonaDeclarable
interface and use the HasDimonaPeriods
trait in your model:
Then, pass a model instance to the Dimona
facade to declare a Dimona:
Events
This package dispatches the following events:
DimonaPeriodCreated
This event is dispatched when a new DimonaPeriod is created.
DimonaPeriodStateUpdated
This event is dispatched when a DimonaPeriod's state is updated.
Testing
Mocking the Dimona API
For testing code that interacts with the Dimona API, you can use the MockDimonaApiClient
class:
See the mock documentation for more details.
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
- Hyperlab
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-dimona with dependencies
firebase/php-jwt Version ^6.11
illuminate/contracts Version ^10.0||^11.0||^12.0
spatie/laravel-package-tools Version ^1.16