PHPackages                             loungeup/resgate-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. loungeup/resgate-sdk

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

loungeup/resgate-sdk
====================

Resgate SDK for PHP

01.0k1PHP

Since Jan 11Pushed 3y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

Resgate SDK
===========

[](#resgate-sdk)

Getting Started
---------------

[](#getting-started)

### Installation

[](#installation)

Resgate Sdk requires PHP &gt;= 8.1.

```
composer require resgate-sdk/resgate
```

### Basic Usage

[](#basic-usage)

First thing to do, add message driver to config file service

```
...
    'message' => [
        'current' => 'resgate',
        'drivers' => [
            'resgate' => 'LoungeUp\Resgate\ResgateMessageDriver',
            'pure_nats' => 'class/message'
        ]
    ],
...
```

Update all Controllers in the service to extend AbstractNatsController

```
class SubscriptionsController extends AbstractNatsController
{
...
```

Request Object
--------------

[](#request-object)

```
$request->get("name"): string // get event subject by name
$request->all(): array // get all events subject

$request->getFiltersString(): string // get all query in the body ex: "filter=model&page=1
$request->getFilter("name"): string // get query in the body by name
$request->getFilters(): array // get all query in the body
```

Response Object
---------------

[](#response-object)

```
// Code error
define("RES_NOTFOUND", "system.notFound");
define("RES_INVALIDPARAMS", "system.invalidParams");
define("RES_INVALIDQUERY", "system.invalidQuery");
define("RES_INTERNALERROR", "system.internalError");
define("RES_METHODNOTFOUND", "system.methodNotFound");
define("RES_ACCESSDENIED", "system.accessDenied");
define("RES_TIMEOUT", "system.timeout");
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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/5a4b11750128a47015230b568e51a85e74efcd6b921ce9cd7bce777628f779fb?d=identicon)[loungeup-robot](/maintainers/loungeup-robot)

---

Top Contributors

[![adraax](https://avatars.githubusercontent.com/u/9017100?v=4)](https://github.com/adraax "adraax (4 commits)")[![ltressens](https://avatars.githubusercontent.com/u/1230814?v=4)](https://github.com/ltressens "ltressens (3 commits)")[![remyduthu](https://avatars.githubusercontent.com/u/36485585?v=4)](https://github.com/remyduthu "remyduthu (3 commits)")[![Nyalab](https://avatars.githubusercontent.com/u/721993?v=4)](https://github.com/Nyalab "Nyalab (1 commits)")

### Embed Badge

![Health badge](/badges/loungeup-resgate-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/loungeup-resgate-sdk/health.svg)](https://phpackages.com/packages/loungeup-resgate-sdk)
```

PHPackages © 2026

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