2017 © Pedro Peláez
 

library mrp-php-sdk

This is a php SDK for the My Race Pass API

image

robert430404/mrp-php-sdk

This is a php SDK for the My Race Pass API

  • Tuesday, January 17, 2017
  • by robert430404
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

MyRacePass PHP SDK

Latest Stable Version Build Status License codecov Code Climate, (*1)

This package gives you a fluent interface to interact with the My Race Pass API V2. All endpoint's are supported and all of the request parameters are fully implemented. We return PHP Objects from the API for use inside of your application., (*2)

We are composer compatible, and are on packagist. We are open to pull requests and issues here on Github and would appreciate as much help as possible., (*3)

In order to install our package via Composer, please use the following command., (*4)

composer require robert430404/mrp-php-sdk

Or add this line to your composer.json, (*5)

"require": {
    "robert430404/mrp-php-sdk": "1.0.0"
}

Information About The MRP API V2

We have complete compatibility with The MRP API. The SDK will follow the same requirements that the API documentation describes for each endpoint., (*6)

Some Basic Documentation

More In Depth Documentation Can Be Found Here ** It is currently under development **, (*7)

The SDK's API Documentation Can Be Found Here ** Fully shows everything thats part of the SDK from traits to interfaces **, (*8)

Using the package in a standalone application is very simple. Instantiate an instance of the object and pass in your API key via the constructor. From there simply call methods from the object to create your call and get your data returned to you., (*9)

<?php

use mrpsdk\endpoints\points\PointsEndpoint;

class YourClass
{
    /**
     * @var PointsEndpoint
     */
    protected $pointsEndpoint;

    /**
     * YourClass constructor.
     */
    public function __construct()
    {
        $apiKey = 'XXXXXXX-XXXX-XXXXXX-XXXXXXXXXX';

        $this->pointsEndpoint = new PointsEndpoint($apiKey);
    }

    /**
     * Returns Data From The MRP API In Object Form From JSON
     * 
     * @return mixed
     */
    public function returnData()
    {
        $data = $this->pointsEndpoint      // Your Object
                     ->setScheduleId(1000) // Builds URL
                     ->setClassId(1000)    // Builds URL
                     ->getRequest();       // Sends Request And Returns Data

        return $data;
    }
}

The Versions

17/01 2017

dev-master

9999999-dev

This is a php SDK for the My Race Pass API

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Robert Joseph Cox Jr.

10/09 2016

dev-dev

dev-dev

This is a php SDK for the My Race Pass API

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Robert Joseph Cox Jr.

10/09 2016

1.0.0

1.0.0.0

This is a php SDK for the My Race Pass API

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Robert Joseph Cox Jr.