mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-22 06:26:57 +01:00
Added boilerplate.php to distro
This commit is contained in:
parent
cac38331c8
commit
907ddb137d
1
Makefile
1
Makefile
@ -33,6 +33,7 @@ distro: ## Generates distribution
|
|||||||
vendor/bin/phpdoc
|
vendor/bin/phpdoc
|
||||||
mkdir -p distro/doc
|
mkdir -p distro/doc
|
||||||
cp -r doc/api distro/doc
|
cp -r doc/api distro/doc
|
||||||
|
cp -r res/boilerplate.php distro/libpairtwo.php
|
||||||
cd distro && zip -r ../libpairtwo-distro *
|
cd distro && zip -r ../libpairtwo-distro *
|
||||||
|
|
||||||
cs: ## Fixes coding standard problems
|
cs: ## Fixes coding standard problems
|
||||||
|
12
res/boilerplate.php
Normal file
12
res/boilerplate.php
Normal 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
|
Loading…
Reference in New Issue
Block a user