1. Go to this page and download the library: Download scriptotek/marc 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/ */
scriptotek / marc example snippets
use Scriptotek\Marc\Collection;
$collection = Collection::fromFile($someFileName);
foreach ($collection as $record) {
echo $record->getField('250')->getSubfield('a')->getData() . "\n";
}