scholarslab/Bagit — Issue #1: Class 'Bag' not found error
Author: mjordan
Created: 2012-02-06 00:36:29+00:00
State: open

Hi,

Running the following command-line PHP script produces the following error "Fatal error: Class 'Bag' not found in /Users/markjordan/hacking/bagit/test.php on line 7":

error_reporting(E_ALL);
require_once('./Bagit/lib/Bagit.php');

$bag = new Bag('/tmp/bagtest'); // <- offending line
$bag->addFile('/tmp/test.txt', 'test.txt');
$bag->writeManifest();
$bag->package('/tmp/testing_bagit');

Any suggestions? I just cloned the git repo today (version 0.0.1).