PHPackages                             phone2action/ym-api - 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. phone2action/ym-api

AbandonedArchivedLibrary[API Development](/categories/api)

phone2action/ym-api
===================

YourMembership API PHP Library

0.2.2(9y ago)08521MITPHPPHP &gt;=7.0.0

Since Jan 12Pushed 9y ago6 watchersCompare

[ Source](https://github.com/phone2action/ym-api)[ Packagist](https://packagist.org/packages/phone2action/ym-api)[ RSS](/packages/phone2action-ym-api/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (3)Dependencies (5)Versions (5)Used By (0)

ym-api
======

[](#ym-api)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/450defe897babf1e355a71f1501b75ad7c8df1bd518438d4b5d51800c792d53e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f70686f6e6532616374696f6e2f796d2d6170692f6261646765732f7175616c6974792d73636f72652e706e673f623d6465762d6d6173746572)](https://scrutinizer-ci.com/g/phone2action/ym-api/?branch=dev-master) [![Build Status](https://camo.githubusercontent.com/e48f346df8c42247b2e19da72a3873cb600d4163f66b807de7f6282983a8d6de/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f70686f6e6532616374696f6e2f796d2d6170692f6261646765732f6275696c642e706e673f623d6465762d6d6173746572)](https://scrutinizer-ci.com/g/phone2action/ym-api/build-status/dev-master) [![Code Coverage](https://camo.githubusercontent.com/74265272726d6b73a91536b38928855371018f5dc5d11f671eb7435a0169891c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f70686f6e6532616374696f6e2f796d2d6170692f6261646765732f636f7665726167652e706e673f623d6465762d6d6173746572)](https://scrutinizer-ci.com/g/phone2action/ym-api/?branch=dev-master)

Your Membership API Client for PHP
==================================

[](#your-membership-api-client-for-php)

### This package in a work in progress, we currently use this package for development of an integration with YourMembership.

[](#this-package-in-a-work-in-progress-we-currently-use-this-package-for-development-of-an-integration-with-yourmembership)

This package implements a PHP wrapper to work with

### Laravel Installation (5.1+)

[](#laravel-installation-51)

No Support for Versions below 5.1 (5.0 Untested)

Require this package with composer by adding the following to your composer file:

```
{
"require": {
    "phone2action/ym-api": "dev-master"
},
"repositories": [

        {
            "type": "vcs",
            "url": "https://github.com/phone2action/ym-api"
        }
    ]
}
```

After updating composer, add the service provider to the `providers` array in `config/app.php`

```
P2A\YourMembership\YourMembershipServiceProvider::class,
```

You can publish the config file for this package

```
php artisan vendor:publish --provider="P2A\YourMembership\YourMembershipServiceProvider"
```

### Usage

[](#usage)

#### Laravel

[](#laravel)

```
$client = app(P2A\YourMembership\YourMembershipClient::class,[$apiKey,$saPasscode]);
```

#### Other

[](#other)

Instantiate the client

```
$guzzleClient = new \GuzzleHttp\Client();
$client = new P2A\YourMembership\YourMembershipClient($guzzleClient, $apiKey, $saPasscode)

```

Make API calls using this client

```
$response = $client->makeCall('Session.Create')->toArray();
echo $response['SessionID'];

$response = $client->makeCall('Session.Create')->toObject();
echo $response->SessionID;
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60% 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 ~6 days

Total

4

Last Release

3439d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/979913?v=4)[Peter Arapov](/maintainers/Ikstar)[@Ikstar](https://github.com/Ikstar)

---

Top Contributors

[![Ikstar](https://avatars.githubusercontent.com/u/979913?v=4)](https://github.com/Ikstar "Ikstar (6 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (2 commits)")[![chefboyarsky](https://avatars.githubusercontent.com/u/7320022?v=4)](https://github.com/chefboyarsky "chefboyarsky (1 commits)")[![tlshaheen](https://avatars.githubusercontent.com/u/385724?v=4)](https://github.com/tlshaheen "tlshaheen (1 commits)")

---

Tags

phpapilaravelyourmembership

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/phone2action-ym-api/health.svg)

```
[![Health](https://phpackages.com/badges/phone2action-ym-api/health.svg)](https://phpackages.com/packages/phone2action-ym-api)
```

###  Alternatives

[smodav/mpesa

M-Pesa API implementation

16467.9k1](/packages/smodav-mpesa)[mozex/anthropic-laravel

Laravel integration for the Anthropic API: facade, config publishing, install command, testing fakes, messages, streaming, tool use, thinking, and batches.

74331.3k1](/packages/mozex-anthropic-laravel)[simplestats-io/laravel-client

Analytics for Laravel. Track visitors, registrations, and payments. Discover which channels actually drive revenue, not just traffic. Server-side, GDPR compliant, ad-blocker proof.

5019.3k](/packages/simplestats-io-laravel-client)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

783.8k](/packages/scriptdevelop-whatsapp-manager)[dariusiii/tmdb-laravel

Laravel Package for TMDB ( The Movie Database ) API. Provides easy access to the wtfzdotnet/php-tmdb-api library.

1821.2k](/packages/dariusiii-tmdb-laravel)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)

PHPackages © 2026

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