承接 mlsapi/mlsapi-php-sdk 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mlsapi/mlsapi-php-sdk

最新稳定版本:v1.0.2

Composer 安装命令:

composer require mlsapi/mlsapi-php-sdk

包简介

MLS API PHP Library

README 文档

README

Build Status Latest Stable Version Total Downloads License

The library provides convenient access to the MLS API functionality from applications written in the PHP language.

Requirements

PHP 7.x.x and later.

Dependencies

The library require the following extensions in order to work properly:

If you use Composer, these dependencies should be handled automatically. If you install manually, you'll want to make sure that these extensions are available.

Development

Get Composer. For example, on macOS:

brew install composer

Install dependencies:

composer install

Manual Testing

Set environment variables in terminal. For example, on macOS:

export username="your_username"
export password="your_password"

# The login credentials are for the prototype plan. Rate limiting applies.

Execute test:

composer update && composer validate
./vendor/bin/phpunit tests

Getting Started

Install

You can install the library via Composer. Run the following command:

composer require mlsapi/mlsapi-php-sdk

Usage

Simple usage requires you to init and authenticate.

use Mlsapi\Mlsapi\Client;

$sdk = Client::init($config); // guzzle config .
$sdk->authentication($username, $password); // return auth data.

Alternatively, you can save the token.

$sdk = Client::initWithToken($token);

Then, you can call the MLS API endpoint to retrieve data.

$sdk->teams()->getAll();
$sdk->teams()->getById($id);

// Additional API Endpoints
//
// teams
// players
// hist
// rtd
// assists
// offence
// topscorer
// fixtures
// standings
// news

The MLS API documentation is available here. If you need further assistance, don't hesitate to contact us.

License

This project is licensed under the MIT License.

Copyright

(c) 2020 - 2024 Hori Systems Limited. All Rights Reserved.

统计信息

  • 总下载量: 14
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-08-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固