jeffersongoncalves/laravel-partnerstack
Laravel PartnerStack provides a simple integration with the PartnerStack API, letting you manage partners, track referrals, and handle rewards directly from your Laravel application with configurable credentials and fluent methods.
composer require <vendor>/laravel-partnerstack
php artisan vendor:publish --tag=partnerstack-config
.env using the names documented in config/partnerstack.php. Clear cached config after changing them:
php artisan config:clear
config/partnerstack.php for auth, base URL, and environment options.A sensible first use case is a read-only smoke test: resolve the client in php artisan tinker or a temporary Artisan command and list partnerships or customers. Verify credentials and response shape before wiring writes or webhooks. Then add one webhook endpoint in a non-production environment and confirm signature verification and payload logging.
syncCustomer(), recordTransaction(), or listActivePartnerships() rather than letting controllers call package resource methods directly. This limits upgrade pain from a 1.0 package.payload column for debugging and replay. Map into your own DTOs/models for domain use.2xx quickly and process asynchronously.Http::fake() for HTTP-level fakes, and keep fixture payloads for webhook signature tests. Assert that your adapter maps package responses into your own models correctly.composer.json, read the changelog before upgrading, and keep package calls behind an adapter. Expect possible API-surface adjustments as the package matures.php artisan config:clear or rebuild the config cache.429 responses and Retry-After headers. Use exponential backoff and avoid large synchronous loops in a single request.$request->all() or a reserialized array, verification can fail. Read the raw content and verify before JSON decoding.How can I help you explore Laravel packages today?