定制 mcprohosting/skinner 二次开发

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

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

mcprohosting/skinner

Composer 安装命令:

composer require mcprohosting/skinner

包简介

Library to grab those Minecraft heads and skins!

README 文档

README

Build Status

Skinner is a fairly simple library to grab Minecraft heads and skins for your application.

Installation

Add this to your composer.json file's requires, and run composer update:

"mcprohosting/skinner": "dev-master"

Usage

// Example 1: save a player's skin and head to a file:
file_put_contents('steve_skin.png', Skinner::user('steve')->skin());
file_put_contents('steve_skin.png', Skinner::user('steve')->head());

// Or, more efficiently, in a way that will only cause the skin to be downloaded once

$user = Skinner::user('steve');
file_put_contents('steve_skin.png', $user->skin());
file_put_contents('steve_skin.png', $user->head());

// Calls to the $user are automatically passed to Intervention images. So you can, for example:

$user = Skinner::user('steve');
file_put_contents('steve_skin.png', $user->skin()->resize(300, 300));

// Or, manually save it in another format, like jpg at 70% quality

$user = Skinner::user('steve');
file_put_contents('steve_skin.jpg', $user->encode('jpg', 70));

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2014-04-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固