承接 valzargaming/byond 相关项目开发

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

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

valzargaming/byond

最新稳定版本:v2.1.0

Composer 安装命令:

composer require valzargaming/byond

包简介

A PHP class for interacting with BYOND (Build Your Own Net Dream) servers, providing functionalities to retrieve player information and manage game-related data. Designed to be used in conjunction with a caching system for optimal performance.

关键字:

README 文档

README

Overview

The Byond PHP class is designed to interact with the website for BYOND (Build Your Own Net Dream), facilitating the retrieval of player information and management of account-related data. This class is particularly useful for developers working on BYOND projects, providing an easy-to-use interface for accessing and manipulating data related to players and their accounts.

Features

  • Convert BYOND timestamps to Unix timestamps and ISO 8601 format.
  • Retrieve player details such as gender, join date, description, and homepage from BYOND pages.
  • Designed to be used in combination with a caching system to enhance performance.

Implementation

The Byond class implements the ByondInterface and uses the ByondTrait to provide its functionality.

Installation

Install the package via Composer:

composer require valzargaming/byond

Usage

Here is a basic example of how to use the Byond class:

<?php
require 'vendor/autoload.php';

use Byond\Byond;

// Convert BYOND timestamp to Unix timestamp
$byondTimestamp = 1234567890;
$unixTimestamp = Byond::convertToUnixFromByond($byondTimestamp);
echo "Unix Timestamp: " . $unixTimestamp . PHP_EOL;

// Convert BYOND timestamp to ISO 8601 format
$isoTimestamp = Byond::convertToTimestampFromByond($byondTimestamp);
echo "ISO 8601 Timestamp: " . $isoTimestamp . PHP_EOL;

// Parse player information from a BYOND page
$pageContent = Byond::getProfilePage('valithor');
$key = Byond::parseKey($pageContent);
$gender = Byond::parseGender($pageContent);
$joined = Byond::parseJoined($pageContent);
$description = Byond::parseDesc($pageContent);
$homePage = Byond::parseHomePage($pageContent);

echo "Key: " . $key . PHP_EOL;
echo "Gender: " . $gender . PHP_EOL;
echo "Joined: " . $joined . PHP_EOL;
echo "Description: " . $description . PHP_EOL;
echo "Home Page: " . $homePage . PHP_EOL;

Contributing

Contributions are welcome! Please submit a pull request or open an issue to discuss any changes you would like to make.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Author

Valithor Obsidion - valithor@valzargaming.com

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-06-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固