PHP code example of swiss-social-archives / alephmarc2xml

1. Go to this page and download the library: Download swiss-social-archives/alephmarc2xml 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/ */

    

swiss-social-archives / alephmarc2xml example snippets


$marc = new AlephMarc2XML();
$marc->setFileName('down.txt');
$xml = $marc->get();

$marc = new AlephMarc2XML();
$marc->setContent($content); // String with Marc
$xml = $marc->get();