2017 © Pedro Peláez
 

library ym-api

YourMembership API PHP Library

image

phone2action/ym-api

YourMembership API PHP Library

  • Monday, January 30, 2017
  • by Ikstar
  • Repository
  • 21 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 100 % Grown

The README.md

ym-api

Scrutinizer Code Quality Build Status Code Coverage, (*1)

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 implements a PHP wrapper to work with http://www.yourmembership.com/company/api-reference/, (*2)

Laravel Installation (5.1+)

No Support for Versions below 5.1 (5.0 Untested), (*3)

Require this package with composer by adding the following to your composer file:, (*4)

{
"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, (*5)

P2A\YourMembership\YourMembershipServiceProvider::class,

You can publish the config file for this package, (*6)

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

Usage

Laravel

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

Other

Instantiate the client, (*7)

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

Make API calls using this client, (*8)

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

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

The Versions

30/01 2017

dev-master

9999999-dev

YourMembership API PHP Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Peter Arapov

laravel api php yourmembership

30/01 2017

0.2.2

0.2.2.0

YourMembership API PHP Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Peter Arapov

laravel api php yourmembership

18/01 2017

0.2.1

0.2.1.0

YourMembership API PHP Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Peter Arapov

laravel api php yourmembership

18/01 2017

0.2.x-dev

0.2.9999999.9999999-dev

YourMembership API PHP Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Peter Arapov

laravel api php yourmembership

12/01 2017

0.2

0.2.0.0

YourMembership API PHP Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Peter Arapov

laravel api php yourmembership