PHP code example of pointybeard / kickstarter-export-parser
1. Go to this page and download the library: Download pointybeard/kickstarter-export-parser library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
pointybeard / kickstarter-export-parser example snippets
use pointybeard\Kickstarter\ExportParser\Lib;
$archive = new Lib\BackerArchive(
"/PATH/TO/KICKSTARTER/EXPORTED/DATA/HERE.zip"
);
foreach($archive->rewards() as $r){
do{
$record = $r->records()->current();
// ... do stuff with $record ...
$r->records()->next();
} while($r->records()->valid());
}
$archive->close();