定制 febryars33/colorcraft 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

febryars33/colorcraft

Composer 安装命令:

composer require febryars33/colorcraft

包简介

Convert Minecraft color and format codes to HTML spans with CSS classes.

README 文档

README

Bootstrap logo

Minecraft Color Parser for PHP

Easy use, Simple and Lightweight, Support using §, and Support Special Character
Explore on Spigot Page »

Report bug

ColorCraft

ColorCraft is PHP Library for parse your Minecraft text to Color, Format, and Magic text. For example if you have profile page for players and you want to showing the nickname, clans, ranks, etc. You can use this library for parse minecraft codes from your server.

Example

Colors

Quick start

Several quick start options are available:

composer require febryars33/colorcraft
<?php
namespace App\Http\Controllers;
...

use Febryars33\ColorCraft\ColorCraft;
...

class ExampleController extends Controller {

	public function home()
	{
		return ColorCraft::convert('§6Hello §eWorld')->toHtml();
	}

}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-11-02