PHPackages                             rips/connector - 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. rips/connector

ActiveLibrary[API Development](/categories/api)

rips/connector
==============

RIPS API connector package

3.4.0(6y ago)45.7k2[2 PRs](https://github.com/rips/php-connector/pulls)1BSD-3-ClausePHP

Since Oct 19Pushed 3y ago4 watchersCompare

[ Source](https://github.com/rips/php-connector)[ Packagist](https://packagist.org/packages/rips/connector)[ RSS](/packages/rips-connector/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (29)Used By (1)

RIPS Connector
--------------

[](#rips-connector)

A simple PHP interface for easy access to the RIPS API.

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

[](#installation)

Use composer to include the package:

```
composer require rips/connector:~3.4

```

OR add the following to composer.json and run `composer update`

```
"rips/connector": "~3.4"

```

Usage
=====

[](#usage)

```
use RIPS\Connector\API;
use RIPS\Connector\Exceptions\ClientException;
use RIPS\Connector\Exceptions\ServerException;

$config = ['base_uri' => 'http://localhost:8000'];

// Initialize with config in constructor
$api = new API('email', 'password', $config);

// Or initialize manually
$api = new API();
$api->initialize('email', 'password', $config);

try {
	// Get all users
	$users = $api->users->getAll()->getDecodedData();

	// Create new organization
	$org = $api->orgs->create([
		'name'       => 'My New Org',
		'validUntil' => '2018-08-03T15:23:04.286Z'
	]);
} catch (ClientException $e) {
	// 400 error
} catch (ServerException $e) {
	// 500 error
}

```

Most methods will return a `Response` object. To get the actual data call the method `getDecodedData()`. This returns either a `stdClass` object or an array of `stdClass` objects.

Config/Options
==============

[](#configoptions)

The following config options are available:

```
'base_uri' (required, default: http://localhost:8080): API URL
'timeout' (optional, default: 100): Timeout of request in seconds
'connect_timeout' (optional, default: 10): Number of seconds to wait while trying to connect to server
'oauth2' (optional): OAuth2 configuration, see OAuth2 Config

```

OAuth2Config
------------

[](#oauth2config)

The following options are available as associative array under the oauth2 key:

```
'enabled' (required): Use OAuth2 instead of legacy auth
'client_id' (required): Client id for the login client
'store_token' (optional, default: false): Flag if the OAuth2 tokens should be stored on disk
'token_file_path' (optional): The file location for the token file
'access_token' (optional, default: ""): If already present a accesstoken to use for login

```

Testing
=======

[](#testing)

Testing is done with phpunit. You can [install phpunit globally](https://phpunit.de/manual/current/en/installation.html) or use the composer installed executable in `vendor/bin/phpunit`.

Abstract classes use stubs found in test/Stubs.

Run the tests by executing phpunit in the root directory of the project:

With global install:

```
phpunit

```

With composer install:

```
vendor/bin/phpunit

```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 82% 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.

###  Release Activity

Cadence

Every ~35 days

Recently: every ~78 days

Total

25

Last Release

2286d ago

Major Versions

2.16.0 → 3.0.02019-01-04

### Community

Maintainers

![](https://www.gravatar.com/avatar/64f96573e068d89f6263a0790a37f0b78a4cf3712a282b38ddb236378d690e4e?d=identicon)[rips](/maintainers/rips)

---

Top Contributors

[![rips-hb](https://avatars.githubusercontent.com/u/19571184?v=4)](https://github.com/rips-hb "rips-hb (219 commits)")[![rips-fk](https://avatars.githubusercontent.com/u/35495012?v=4)](https://github.com/rips-fk "rips-fk (33 commits)")[![rips-mb](https://avatars.githubusercontent.com/u/19571188?v=4)](https://github.com/rips-mb "rips-mb (15 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rips-connector/health.svg)

```
[![Health](https://phpackages.com/badges/rips-connector/health.svg)](https://phpackages.com/packages/rips-connector)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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