Skip to content

sportakal/revenuecat-v1-api-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP library for Revenuecat api v1

Check official documentation (Revenuecat api v1)

Installation

Composer

Install dependencies with composer:

composer require sportakal/revenuecat-v1-api-php

Use composer autoload to include dependencies

require_once('vendor/autoload.php');

Usage

Create Options

Set you token to Options object

use Sportakal\RevenuecatV1ApiPhp\Options;

$options = new Options('your_bearer_token','your timezone (+3));

Make Request

Get or Create subscriber info from Revenuecat

use Sportakal\RevenuecatV1ApiPhp\Requests\GetOrCreateSubscriber;

$request = (new GetOrCreateSubscriber('app_user_id'));

$subscriber = $request->get($options);

return $subscriber;

Check for more examples /samples directory

TODOS

  • Get or Create Subscriber Endpoint
  • Delete Subscriber Endpoint
  • Add User Attribution Data Endpoint
  • Update Subscriber Attributes Endpoint
  • Create a Purchase Endpoint
  • Google Play: Refund and Revoke Subscription Endpoint
  • Google Play: Defer a Subscription Endpoint
  • Google Play: Refund and Revoke Purchase Endpoint
  • Grant a Promotional Entitlement Endpoint
  • Revoke Promotional Entitlements Endpoint
  • Override a Customer's Current Offering Endpoint
  • Remove a Customer's Current Offering Override Endpoint
  • Get Offerings Endpoint

Contributions are welcome!

About

It is a PHP package for api v1 version of Revenuecat.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages