Download the PHP package jeffersongoncalves/laravel-partnerstack without Composer
On this page you can find all versions of the php package jeffersongoncalves/laravel-partnerstack. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jeffersongoncalves/laravel-partnerstack
More information about jeffersongoncalves/laravel-partnerstack
Files in jeffersongoncalves/laravel-partnerstack
Package laravel-partnerstack
Short Description PartnerStack partner and affiliate program API integration for Laravel
License MIT
Homepage https://github.com/jeffersongoncalves/laravel-partnerstack
Informations about the package laravel-partnerstack
Laravel PartnerStack
A Laravel client for the PartnerStack partner and affiliate program API. A fluent PartnerStack facade covers partnerships, customers, transactions, deals, actions, rewards, leads, groups and webhooks, authenticates every request with your public and secret keys as HTTP Basic credentials, and throws a PartnerStackException on a non-2xx response instead of returning a silent error array.
Features
- Partnerships —
listPartnerships(),getPartnership(),createPartnership(),updatePartnership() - Customers —
listCustomers(),getCustomer(),createCustomer(),updateCustomer(),deleteCustomer() - Transactions —
listTransactions(),getTransaction(),createTransaction(),deleteTransaction() - Deals —
listDeals(),getDeal(),createDeal(),updateDeal(),archiveDeal() - Actions —
listActions(),createAction() - Rewards —
listRewards(),createReward() - Leads —
listLeads(),getLead(),createLead(),updateLead() - Groups —
listGroups() - Webhooks —
listWebhooks(),getWebhook(),createWebhook(),deleteWebhook() - Thin by design — every method returns the raw decoded JSON response as an array, no DTOs
- Fails loud — a non-2xx API response throws
PartnerStackExceptioncarrying the API's error message and HTTP status code
Installation
You can install the package via composer:
Optionally publish the config file:
Configuration
Add to your .env:
Both keys live in your PartnerStack dashboard under Settings > Integrations > API keys.
Config Options
Usage
Every list*() method accepts the API's cursor pagination options — limit, starting_after, ending_before and order_by:
Partnerships
Customers
Transactions
Amounts are in cents.
Deals
Actions
Rewards
Amounts are in cents.
Leads
Groups
Webhooks
Handling errors
Testing
Static Analysis
Code Formatting
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
Please review our security policy on how to report security vulnerabilities.
Credits
- Jefferson Simão Gonçalves
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-partnerstack with dependencies
illuminate/http Version ^12.0|^13.0
illuminate/support Version ^12.0|^13.0
spatie/laravel-package-tools Version ^1.16