Skip to content

manialib/gbx

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

Manialib\Gbx

Packagist Version Total Downloads Build Status SensioLabs Insight

Manialib\Gbx is a PHP package for reading Gbx file metadata

Features

  • Map.Gbx: Access metadata with a simple object interface
  • Map.Gbx: Extract JPG thumbnail

Beta

Requirements

  • PHP 5.5+
  • PHP GD extension

Install

Install via Composer

{
	"require": {
        "manialib/gbx": "4.0.0-beta1"
    }
}

Usage

use Manialib\Gbx\Map;

$map = Map::loadFile('/path/to/my/map.map.gbx');

//save the map thumbnail
$map->getThumbnail()->saveJpg('/path/to/my/thumbnail.jpg');

//get map author
$author = $map->getAuthor();

Development guidelines

We follow best practices from the amazing PHP ecosystem. Warm kudos to Symfony, The PHP League, the PHP subreddit and many more for inspiration and challenging ideas.