jamesread / lan-party-publisher-php
A PHP implementation of the LAN Party Publishing Standard
Package info
github.com/jamesread/lan-party-publisher-php
pkg:composer/jamesread/lan-party-publisher-php
Requires
- php: ^8.3
- composer-runtime-api: ^2.2
- ext-json: *
Requires (Dev)
- laravel/pint: ^1.29
- pestphp/pest: ^4.0
- phpstan/phpstan: ^2.2
- phpunit/phpunit: ^12.0
README
lan-party-publisher-php
A PHP library for the LAN Party Publishing Standard, making it easy to publish machine-readable LAN event data.
Standard version compatibility
Library major versions align with the standard major version:
| Library version | Standard version | PHP |
|---|---|---|
| v1.x | v1 | ^8.1 |
| v2.x | v2 | ^8.3 |
Use v1.x of this library when publishing against standard v1. Use v2.x when publishing against standard v2. See the standard repository for the specification, JSON schemas, and migration notes. See CHANGELOG.md for library release notes.
Using the PHP Library
composer require jamesread/lan-party-publisher-php:^2
Look at the examples to help get you started. After composer install, run an example with:
php examples/basic.php
For a full real-world document matching the standard's reference output, see examples/pixelPit.php (based on pixel-pit.json).