Download the PHP package boldlinestudios/laravel-revenuecat-api without Composer
On this page you can find all versions of the php package boldlinestudios/laravel-revenuecat-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download boldlinestudios/laravel-revenuecat-api
More information about boldlinestudios/laravel-revenuecat-api
Files in boldlinestudios/laravel-revenuecat-api
Package laravel-revenuecat-api
Short Description A package for Laravel backends to integrate with RevenueCat API v2 via typed methods and structured data objects.
License MIT
Homepage https://github.com/boldlinestudios/laravel-revenuecat-api
Informations about the package laravel-revenuecat-api
Laravel RevenueCat API
A Laravel package for the RevenueCat API v2, providing typed methods and structured data objects.
Note: This is not an official package of RevenueCat or Laravel.
Quick Example
For the full catalog of examples with code, see ENDPOINTS.md. For a complete reference of all API response data structures, see DATA.md.
Installation
You can install the package via composer:
Requirements
- PHP 8.2+
- Laravel 11+
Configuration
Publish the configuration file:
Add the following environment variables to your .env file:
Usage
You can call methods in two ways. Both return the same results, so use whichever feels clearer.
1) Endpoint-style
Organized by resource, similar to the REST API.
2) Convenience-style
Direct shortcut methods for common operations.
Endpoints
Available endpoints with full documentation and examples:
- Apps
- Customers
- Entitlements
- Invoices
- Offerings
- Packages
- Paywalls
- Products
- Projects
- Purchases
- Subscriptions
Response and Data Handling
- Most methods return data objects (
CustomerData, etc.). - List endpoints return a
ListPage<T>(ListPage<T>) wrapper for pagination.
See the full data object catalog DATA.md.
Data Objects
Data objects expose typed getters and a toArray() method:
See ProductData for all available methods.
ListPage & Pagination
See DATA.md.
List methods return a ListPage<T> that handles pagination automatically:
Advanced Pagination
Error Handling
Non-2xx responses throw typed exceptions matching RevenueCat’s error model:
BadRequestException(400)AuthenticationException(401)AuthorizationException(403)NotFoundException(404)ConflictException(409)ValidationException(422)RateLimitException(429)ServerErrorException(5xx)ApiResponseException(fallback for other errors)
Testing
Linting
Static Analysis
Contributing
Please see CONTRIBUTING.md for details.
License
Released under the MIT license.