2017 © Pedro Peláez
 

library nolimits2packageloader

A nl2pkg file parser

image

thepixeldeveloper/nolimits2packageloader

A nl2pkg file parser

  • Tuesday, February 23, 2016
  • by ThePixelDeveloper
  • Repository
  • 1 Watchers
  • 0 Stars
  • 110 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Thepixeldeveloper\Nolimits2PackageLoader

Author Build Status HHVM Status Software License Packagist Version Total Downloads SensioLabsInsight Scrutinizer Code Quality, (*1)

When given a nlpkg produced by No Limits Coaster 2 this library will return information about the park and roller coasters., (*2)

Basic Usage

Did you know? A nlpkg file is the same as a ZIP file, (*3)

``` php // First load the package using ZipArchive $zip = new \ZipArchive; $zip->open('raptor.nl2pkg');, (*4)

// Then give it to the package class to parse into useful information. $package = new Thepixeldeveloper\Nolimits2PackageLoader\Package($zip);, (*5)

/** * Examples of reading the preview image and park file */ $previewImage = $package->getPreviewImageStream(); $parkFile = $package->getParkFileStream();, (*6)

/** * Instance of Thepixeldeveloper\Nolimits2PackageLoader\Park * * Contains information like the author and description. */ $parkInformation = $package->getParkInformation();, (*7)

/** * Instance of Thepixeldeveloper\Nolimits2PackageLoader\Coasters * * Gives you an iterator which returns Coaster objects */ $coasters = $package->getCoasters();, (*8)

/** * Instance of Thepixeldeveloper\Nolimits2PackageLoader\Coaster */ $coaster = $coasters->current();, (*9)

$coaster->getStyle(); // Mack Launch $coaster->getName(); // Raptor $coaster->getNumberOfTrains(); // 1 ```, (*10)

The Versions

23/02 2016

dev-master

9999999-dev

A nl2pkg file parser

  Sources   Download

MIT

The Development Requires

nl2pkg nolimits 2 nolimits coaster 2

23/02 2016

dev-develop

dev-develop

A nl2pkg file parser

  Sources   Download

MIT

The Development Requires

nl2pkg nolimits 2 nolimits coaster 2

25/12 2015

1.1.0

1.1.0.0

A nl2pkg file parser

  Sources   Download

MIT

The Development Requires

nl2pkg nolimits 2 nolimits coaster 2

24/12 2015

1.0.0

1.0.0.0

A nl2pkg file parser

  Sources   Download

MIT

The Development Requires

nl2pkg nolimits 2 nolimits coaster 2