Added boilerplate.php to distro

This commit is contained in:
Jeroen De Meerleer 2019-06-17 15:23:26 +02:00
parent cac38331c8
commit 907ddb137d
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
2 changed files with 13 additions and 0 deletions

View File

@ -33,6 +33,7 @@ distro: ## Generates distribution
vendor/bin/phpdoc
mkdir -p distro/doc
cp -r doc/api distro/doc
cp -r res/boilerplate.php distro/libpairtwo.php
cd distro && zip -r ../libpairtwo-distro *
cs: ## Fixes coding standard problems

12
res/boilerplate.php Normal file
View File

@ -0,0 +1,12 @@
<?php
use JeroenED\Libpairtwo\IOFactory;
require_once 'vendor/autoload.php';
$reader = IOFactory::createReader('Pairtwo-6');
$reader->read('your pairing-file.sws');
// From here on you can start. Please use the examples on https://github.com/jeroened/libpairtwo/wiki
// You can also use the doc/api folder to get all possible methods and fields