Download the PHP package jakuborava/affilbox-client without Composer
On this page you can find all versions of the php package jakuborava/affilbox-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jakuborava/affilbox-client
More information about jakuborava/affilbox-client
Files in jakuborava/affilbox-client
Package affilbox-client
Short Description API client for Affilbox
License MIT
Homepage https://github.com/jakuborava/affilbox-client
Informations about the package affilbox-client
Affilbox Client for Laravel
A Laravel package providing a fluent API client for the Affilbox affiliate marketing platform. Supports PHP 8.3+ and Laravel 11/12.
Installation
Publish the config file:
Add your credentials to .env:
Usage
You can use the Facade or inject the client via dependency injection:
You can also pass credentials directly:
Test Connection
Dashboard
Instance
Campaigns
Conversions
List conversions:
Add a conversion:
Change a conversion:
Partners
List partners:
Add a partner:
Invoices
List invoices:
Request billing:
Upload an invoice:
DTOs
All DTOs use readonly properties. Dates are Carbon instances.
| DTO | Key Properties |
|---|---|
DashboardDTO |
clicks, conversions, commission, pending, payment, total |
InstanceDTO |
domain, currency, paymentMinimum, licence, locked, terminated, expire |
CampaignDTO |
id, name, active, commission, fixCommission, cookieValidity, trackingCode, conversionCode |
ConversionDTO |
id, createDate, confirmDate, campaignName, value, sales, state, transactionId, coupon |
PartnerDTO |
person (PersonDTO), address (AddressDTO), company (CompanyDTO) |
InvoiceDTO |
id, created, issueDate, dueDate, supplier, customer, vs, paid, items |
AddPartnerResponseDTO |
instance, url, apiKey, login, password |
Enums
ConversionState
| Case | Value |
|---|---|
Waiting |
waiting |
Rejection |
rejection |
Authorized |
authorized |
Invoiced |
invoiced |
Error Handling
All exceptions extend AffilboxClientException, so you can catch them individually or as a group:
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
- Jakub Orava
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of affilbox-client with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^11.0||^12.0