PHPackages                             superbase-io/superbase-sdk-php - 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. [API Development](/categories/api)
4. /
5. superbase-io/superbase-sdk-php

ActiveLibrary[API Development](/categories/api)

superbase-io/superbase-sdk-php
==============================

SuperBase Backend-as-a-Service Client SDK for PHP

36PHP

Since Aug 17Pushed 11y ago1 watchersCompare

[ Source](https://github.com/superbase-io/superbase-sdk-php)[ Packagist](https://packagist.org/packages/superbase-io/superbase-sdk-php)[ RSS](/packages/superbase-io-superbase-sdk-php/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Introduction
============

[](#introduction)

SuperBase.io is a Backend-as-a-Service. More information on

This repository contains the PHP SDK For SuperBase.io

Installation
============

[](#installation)

Add `superbase/superbase-sdk-php` to your `require` key in your `composer.json` file. Then `update` your vendor directory by running:

```
composer update

```

Configuration
=============

[](#configuration)

The SuperBase SDK needs to know the following information to connect to SuperBase:

- apikey
- apisecret
- backend
- datacenter

The simplest solution is to create an ``.ini` file in one of the following locations:

- `~/.superbase/config`
- `/etc/superbase.conf`

An example configuration may look like this:

```
[default]
apikey = MY_API_KEY
apisecret = MY_API_SECRET
backend = MY_BACKEND_CODE
datacenter = MY_DATACENTER_CODE

```

This information can be found on your SuperBase.io Dashboard

Usage example
=============

[](#usage-example)

```
```php
use SuperBaseSdk\Common\SuperBase;

// Enable autoloading through Composer
require_once (__DIR__ . '/../../vendor/autoload.php');

// Instantiate the SuperBase helper class
$superbase = new SuperBase();

// This will load the configuration from a superbase config file (see above)
// Optionally provide a filename to specify a non-default filename
$config = $superbase->getConfig();

// Instantiate a client for the User-service
$userclient = $superbase->getClient('user', $config);

// Retrieve the test user
$user = $userclient->getUser('joe');

echo "Loaded " . $user->getDisplayName() . "!\n";

```

Check the `examples/` directory for more examples.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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/1db66b320db18b8036ea68211b7d8a39e7c6da97e6fd29f59a50380ebb69d0bb?d=identicon)[joostfaassen](/maintainers/joostfaassen)

---

Top Contributors

[![joostfaassen](https://avatars.githubusercontent.com/u/411113?v=4)](https://github.com/joostfaassen "joostfaassen (1 commits)")

### Embed Badge

![Health badge](/badges/superbase-io-superbase-sdk-php/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M475](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M452](/packages/google-gax)

PHPackages © 2026

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