Simple example

<?php
require_once 'Image/Barcode.php';
Image_Barcode::draw('1234''int25''png');
?>

As with all PEAR packages, installing the package also installs some more examples in the docs/Image_Barcode directory of your PEAR installation.