PHPackages                             dev4press/freemius-php-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. dev4press/freemius-php-sdk

ActiveLibrary

dev4press/freemius-php-sdk
==========================

Freemius PHP SDK

02↑2900%PHP

Since Aug 1Pushed todayCompare

[ Source](https://github.com/dev4press/freemius-php-sdk)[ Packagist](https://packagist.org/packages/dev4press/freemius-php-sdk)[ RSS](/packages/dev4press-freemius-php-sdk/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Freemius PHP SDK
================

[](#freemius-php-sdk)

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

Requests from `Freemius` use an internal Guzzle client with explicit timeout, redirect, TLS, error-response, and multipart options. The legacy cURL implementation is available as `Freemius\SDK\Legacy\Freemius` for compatibility comparisons, and both implementations use Composer's CA bundle for HTTPS certificate verification. Existing integrations that customized the public `$CURL_OPTS` property or passed a cURL handle to `MakeRequest()` must migrate to the Guzzle request configuration; the cURL handle argument is no longer supported. The SDK keeps the cURL extension requirement because Guzzle 6 uses its cURL handler by default.

Install the SDK with Composer and include Composer's autoloader:

```
require_once __DIR__ . '/vendor/autoload.php';
```

To run the integration tests, copy `.env.example` to `.env` and fill in the real Freemius credentials. The `.env` file is ignored by Git. In CI, provide the same variables as secret environment variables instead of creating a file.

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 -&gt; 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.

```
  define( 'FS_API__SCOPE', 'developer' );
  define( 'FS_API__PRODUCT_ID', 1234 );
  define( 'FS_API__PRODUCT_PUBLIC_KEY', 'pk_YOUR_PUBLIC_KEY' );
  define( 'FS_API__PRODUCT_SECRET_KEY', 'sk_YOUR_SECRET_KEY' );

  // Init SDK.
  $api = new Freemius\SDK\Freemius(FS_API__SCOPE, FS_API__PRODUCT_ID, FS_API__PRODUCT_PUBLIC_KEY, FS_API__PRODUCT_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',
  ));
```

###  Health Score

22

↑

LowBetter than 21% of packages

Maintenance65

Regular maintenance activity

Popularity3

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 Bus Factor1

Top contributor holds 55% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7a9b8c7dee77daacd0065119d41a4e1b28cad0904a63bc55779abc196aef71a3?d=identicon)[dev4press](/maintainers/dev4press)

---

Top Contributors

[![vovafeldman](https://avatars.githubusercontent.com/u/6830121?v=4)](https://github.com/vovafeldman "vovafeldman (22 commits)")[![dev4press](https://avatars.githubusercontent.com/u/337934?v=4)](https://github.com/dev4press "dev4press (5 commits)")[![fajardoleo](https://avatars.githubusercontent.com/u/16242034?v=4)](https://github.com/fajardoleo "fajardoleo (4 commits)")[![swashata](https://avatars.githubusercontent.com/u/1623381?v=4)](https://github.com/swashata "swashata (3 commits)")[![Mte90](https://avatars.githubusercontent.com/u/403283?v=4)](https://github.com/Mte90 "Mte90 (2 commits)")[![bahiirwa](https://avatars.githubusercontent.com/u/7713923?v=4)](https://github.com/bahiirwa "bahiirwa (2 commits)")[![DanieleAlessandra](https://avatars.githubusercontent.com/u/4690419?v=4)](https://github.com/DanieleAlessandra "DanieleAlessandra (1 commits)")[![alberto-freemius](https://avatars.githubusercontent.com/u/209594472?v=4)](https://github.com/alberto-freemius "alberto-freemius (1 commits)")

### Embed Badge

![Health badge](/badges/dev4press-freemius-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/dev4press-freemius-php-sdk/health.svg)](https://phpackages.com/packages/dev4press-freemius-php-sdk)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
