dwsla/service-mpx

A PHP 5.4 library for accessing MPX services from ThePlatform (mpx.theplatform.com)

Installs: 2 654

Dependents: 0

Watchers: 6

Forks: 1

Language: PHP

3.0.1 2015-07-27 14:34 UTC

README

service-mpx

A PHP 5.3 library to access MPX services from The Platform

Requirements

Installation

In your composer.json, add the following require directive:

{
    "require" : {

        // other requirements
        // here

        // this library
        "dwsla/service-mpx" : "master-dev"
    }
}

Then run:

$ composer update

Components

MediaFeed

@todo

Authentication

@todo

FeedConfig

@todo

Development/Testing

To run the unit-tests:

$ git clone git@github.com:dwsla/service-mpx
$ cd ./service-mpx
$ composer install --dev
$ ./bin/phpunit -c ./tests/config/phpunit.xml ./tests/unit

To run the integration tests copy the file ./tests/config/mpx/local.php.dist to ./tests/config/mpx/local.php. The populate some values for user and pass (for the AuthenticationServiceTest) and feed urls (for the MediaFeedServiceTest).

Then run:

$ ./bin/phpunit -c ./tests/config/phpunit.xml ./tests/integration