dwsla/service-mpx

此软件包已被废弃,不再维护。未建议替代软件包。

一个用于从 ThePlatform (mpx.theplatform.com) 访问 MPX 服务的 PHP 5.4 库

5.0.0 2018-07-02 02:56 UTC

README

一个用于从 The Platform 访问 MPX 服务的 PHP 5.3 库

要求

安装

在您的 composer.json 文件中,添加以下 require 指令

{
    "require" : {

        // other requirements
        // here

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

然后运行

$ composer update

组件

媒体源

@todo

身份验证

@todo

源配置

@todo

开发/测试

运行单元测试

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

运行集成测试,请将文件 ./tests/config/mpx/local.php.dist 复制到 ./tests/config/mpx/local.php。为用户名和密码(用于 AuthenticationServiceTest)和源 URL(用于 MediaFeedServiceTest)设置一些值。

然后运行

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