PHPackages                             diningclubgroup/membership-api-client-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. diningclubgroup/membership-api-client-php

ActiveLibrary[API Development](/categories/api)

diningclubgroup/membership-api-client-php
=========================================

Client library for interacting with the DCG membership API

1.0.4(8y ago)23.3kMITPHP

Since Jan 24Pushed 8y ago10 watchersCompare

[ Source](https://github.com/diningclubgroup/membership-api-client-php)[ Packagist](https://packagist.org/packages/diningclubgroup/membership-api-client-php)[ Docs](https://github.com/diningclubgroup/membership-api-client-php)[ RSS](/packages/diningclubgroup-membership-api-client-php/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (3)Versions (7)Used By (0)

README
======

[](#readme)

Running tests
-------------

[](#running-tests)

```
make build
make test

```

Usage
-----

[](#usage)

```
$c = Client::init(
    "https://membership.dcg.local",
    "file://jwtRS256.key",
    42 // Consumer ID
);

// list cancellation reasons
$res = $c->cancellationReasons()->fetch();

// list card usages for a membership
$res = $c->membership($membershipId)->cardUsage()->fetch();

// fetch a specific card usage
$res = $c->membership($membershipId)->cardUsage($cardUsageId)->fetch();

// create card usage
$res = $c->membership($membershipId)->cardUsage()->create($usage);

// delete card usage
$c->membership($membershipId)->cardUsage($cardUsageId)->delete();

// list customers
$res = $c->customer()->fetch();

// fetch customer by id
$res = $c->customer($customerId)->fetch();

// delete a customer
$res = $c->customer($customerId)->delete();

```

### Not yet implemented

[](#not-yet-implemented)

```
// update card usage
$res = $c->membership($membershipId)->cardUsage($cardUsageId)->update();

// create a customer
$res = $c->customer()->create();

// update a customer
$res = $c->customer($id)->update();

```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 78.9% 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 ~24 days

Total

5

Last Release

2936d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d525b64a15bef90de8d22b83712c54f0c58ce686d0e021b81f1ea4cbf1108914?d=identicon)[diningclubgroup](/maintainers/diningclubgroup)

---

Top Contributors

[![j4y-funabashi](https://avatars.githubusercontent.com/u/12499625?v=4)](https://github.com/j4y-funabashi "j4y-funabashi (45 commits)")[![webbgeorge](https://avatars.githubusercontent.com/u/3473169?v=4)](https://github.com/webbgeorge "webbgeorge (12 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/diningclubgroup-membership-api-client-php/health.svg)

```
[![Health](https://phpackages.com/badges/diningclubgroup-membership-api-client-php/health.svg)](https://phpackages.com/packages/diningclubgroup-membership-api-client-php)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[fschmtt/keycloak-rest-api-client-php

PHP client to interact with Keycloak's Admin REST API.

4684.7k2](/packages/fschmtt-keycloak-rest-api-client-php)[mvdnbrk/dhlparcel-php-api

DHL Parcel API client for PHP

3957.9k5](/packages/mvdnbrk-dhlparcel-php-api)[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)
