Download the PHP package justbetter/laravel-exact-client without Composer
On this page you can find all versions of the php package justbetter/laravel-exact-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download justbetter/laravel-exact-client
More information about justbetter/laravel-exact-client
Files in justbetter/laravel-exact-client
Package laravel-exact-client
Short Description A client to interact with Exact
License MIT
Informations about the package laravel-exact-client
Laravel Exact Client
A client to communicate with Exact from your Laravel application.
Installation
Install the composer package.
Setup
Publish the configuration of the package.
Run the migrations.
Add the following keys to your .env
file:
Out of the box, the connection is called default
.
Middleware
By default, no middleware has been added to authorize with Exact. Update the middleware
in your configuration to add proper authentication and authorization.
Exact Apps
You have to create a new app in Exact Online. Make sure your account has the necessary permissions, otherwise you will be redirected back to the login page.
- Open the login page.
- Click on the login button in the section "Exact Online App Store"
- Register a new app.
Make sure the redirect URL is the callback URL of the application. This must be an HTTPS address.
Divisions in the configuration file must be unique across all connections.
Initiate Authentication
In order to initiate the authentication process with Exact, open the following link.
After finishing the process, you can check your connection by requesting all available divisions.
Tokens are stored in the database.
Retaining Access
Making calls to Exact will make sure the tokens remain valid. The package automatically refreshes the tokens when required. If you are not regularly making calls to Exact, you should add the command below to your scheduler. Otherwise, the refresh token may expire and you'll have to authenticate with Exact again. A refresh token is valid for 30 days.
Rate Limits
Exact is known for their strict rate limiting. It's generally recommended to distribute a load over a longer period of time. To prevent unnessecary failures further, this package includes a RateLimitMiddleware
which is a job middleware to automatically release jobs back on the queue if a rate limit has been exceeded.
Rate limits are stored in the database.
Quality
To ensure the quality of this package, run the following command:
This will execute three tasks:
- Makes sure all tests are passed
- Checks for any issues using static code analysis
- Checks if the code is correctly formatted
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Vincent Boon
- Ramon Rietdijk
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-exact-client with dependencies
guzzlehttp/guzzle Version ^7.5
laravel/framework Version ^11.0|^12.0
spatie/laravel-activitylog Version ^4.9