2017 © Pedro Peláez
 

library php-sdk

Freemius PHP SDK

image

freemius/php-sdk

Freemius PHP SDK

  • Sunday, July 1, 2018
  • by freemius
  • Repository
  • 2 Watchers
  • 2 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Freemius PHP SDK

This SDK is a wrapper for accessing the API. It handles the endpoint's path and authorization signature generation., (*1)

As a plugin or theme developer using Freemius, you can access your data via the developer scope or plugin scope. If you only need to access one product, we recommend using the plugin scope. You can get the product's credentials in SETTINGS -> Keys. If you need to access multiple products, use the developer scope. To get your credentials, click on My Profile at the top right menu and you'll find it in the Keys section., (*2)

  define( 'FS__API_SCOPE', 'developer' );
  define( 'FS__API_ENTITY_ID', 1234 );
  define( 'FS__API_PUBLIC_KEY', 'pk_YOUR_PUBLIC_KEY' );
  define( 'FS__API_SECRET_KEY', 'sk_YOUR_SECRET_KEY' );

  // Init SDK.
  $api = new Freemius_Api(FS__API_SCOPE, FS__API_ENTITY_ID, FS__API_PUBLIC_KEY, FS__API_SECRET_KEY);

  // Get all products.
  $result = $api->Api('/plugins.json');

  // Load 1st product data.
  $first_plugin_id = $result->plugins[0]->id;
  $first_plugin = $api->Api("/plugins/{$first_plugin_id}.json");

  // Update title.
  $api->Api("/plugins/{$first_plugin_id}.json", 'PUT', array(
    'title' => 'My New Title',
  ));

The Versions

01/07 2018

dev-master

9999999-dev https://freemius.com

Freemius PHP SDK

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.2

 

php sdk freemius

18/12 2017

dev-develop

dev-develop https://freemius.com

Freemius PHP SDK

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.2

 

php sdk freemius

25/10 2017

dev-feature/added-support-for-generating-signed-url

dev-feature/added-support-for-generating-signed-url https://freemius.com

Freemius PHP SDK

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.2

 

php sdk freemius