承接 signpostmarv/steam-id 相关项目开发

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

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

signpostmarv/steam-id

Composer 安装命令:

composer require signpostmarv/steam-id

包简介

SteamID Parsing

README 文档

README

Test Status Code Coverage Type Coverage

A library for parsing Steam IDs

Requirements

  • php-7.4
  • ext-ctype

Install

composer require signpostmarv/steam-id

Suggested Steps

Use vimeo/psalm

Psalm saves on implementing runtime checks that can be detected with static analysis.

For example, at the time of writing an ID's Universe component does not go higher than 5 but uses an 8-bit field, but the following code will fail to pass a check on psalm:

new \SignpostMarv\SteamId\SteamId(0, 0, 0, 0, 6);

ERROR: InvalidArgument - Argument 5 of SignpostMarv\SteamId\SteamId::__construct expects int(0)|int(1)|int(2)|int(3)|int(4)|int(5), int(6) provided

Optional Steps

Use either the BCMath or GMP calculators if the relevant php extension is available.

Examples

Obtain Steam Community URL

use SignpostMarv\SteamId\Parser;

$parser = new Parser();

$id = $parser->FromString('76561197960287930');

$url = $parser->ToSteamCommunityUrl($id);

License

Apache-2.0

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2020-01-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固