huwcbjones/rankings-db 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

huwcbjones/rankings-db

最新稳定版本:v0.3.1

Composer 安装命令:

composer require huwcbjones/rankings-db

包简介

Library to interact with British Swimming rankings database

README 文档

README

Rankings DB is a PHP library to provide a clean interface to interact with the British Swimming rankings database.

Install

Via Composer:

$ composer require huwcbjones/rankings-db *

Basic Usage

<?php

// This file is generated by Composer
require_once __DIR__ . '/vendor/autoload.php';

$client = new \RankingsDB\RankingsClient($personal_key, $personal_key_id_number);

From a $client object, you can fetch member details and times.

<?php
// This file is generated by Composer
require_once __DIR__ . '/vendor/autoload.php';

$client = new \RankingsDB\RankingsClient($personal_key, $personal_key_id_number);

// Get a member's details
$member = $client->getMemberDetails($member_id);

// Get their all time PBs
$options = new GetTimesBuilder($member->MemberID());
$times = $client->getTimes($options);

// Get their times from the past year
$options->setFromDate((new DateTime())->sub(new DateInterval("P1Y")));

$times = $client->getTimes($options);

Documentation

See the doc directory for more detailed documentation.

License

rankings-db-php is licensed under the MIT License - see the LICENSE file for details

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-10-20