単純な例

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

他の PEAR パッケージと同様、このパッケージにはいろいろなサンプルが含まれています。 これは、PEAR インストールディレクトリの中の docs/Image_Barcode ディレクトリにインストールされます。