承接 atomicptr/dauntless-builder-sdk 相关项目开发

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

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

atomicptr/dauntless-builder-sdk

最新稳定版本:v3.10.1

Composer 安装命令:

composer require atomicptr/dauntless-builder-sdk

包简介

Library for interacting with Dauntless Builder

README 文档

README

Library for interacting with Dauntless Builder.

Note: This is for Dauntless Builder v3+ (Dauntless: Awakened+)

Features

  • Parse Dauntless Builder build ids
  • Create new Dauntless Builder build ids
  • (SOON) Fetch data from Dauntless Builder

Usage

<?php

$buildId = "OXDriuTRdpCbCbEbYdUwvupvyM8hE0CLDpaVQIfsI2lR2w_5cnD_IL3beFN2C"; // DB Url looks like this: dauntless-builder.com/b/:buildId

$build = Build::fromId($buildId); // this returns a "Result" type and could contain errors

if ($build->hasError()) {
    $build->panic(); // throw an exception if something went wrong
}

// get the actual build value
$build = $build->value();

// get weapon 1 id?
$weaponId = $build->weapon1->id;

// change level of head to 20 (max)
$build->head->level = 20;
// do more stuff...

// and serialize it again...
$newBuildId = $build->serialize();

// create a new build url
$url = "https://www.dauntless-builder.com/b/$newBuildId";

Versioning

This project is NOT using semver but instead the parts are made out of:

  • Dauntless Builder Version (Currently: 3)
  • Build Version (Currently: 10)
  • Incremental Version (increases with changes to this library)

Breaking changes can occur with changes to the build version usually.

License

MIT

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-11-17