addProcessor(new Processor\TagNameCaseProcessor(CASE_LOWER)); // Create a Parser and attach the listener $parser = new Parser(); $parser->addListener($listener); // Parse the content, then read processed data from the Listener $parser->parseFile('assets/bib/export-bibtex.bib'); $entries = $listener->export(); print_r($entries);