cvs: pear /Image_Barcode ChangeLog Readme.txt barcode_img.php package.xml test-image-barcode.php /Image_Barcode/docs ChangeLog Readme.txt
/Image_Barcode/docs/examples barcode_img.php test-image-barcode.php
| From: | Marcelo Subtil Marcal | Date: | Wed, 25 May 2005 16:13:47 +0000 |
| Subject: | cvs: pear /Image_Barcode ChangeLog Readme.txt barcode_img.php package.xml test-image-barcode.php /Image_Barcode/docs ChangeLog Readme.txt /Image_Barcode/docs/examples barcode_img.php test-image-barcode.php |
||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-32120@lists.php.net to get a copy of this message | ||
msmarcal Wed May 25 12:13:47 2005 EDT
Added files:
/pear/Image_Barcode/docs ChangeLog Readme.txt
/pear/Image_Barcode/docs/examples barcode_img.php
test-image-barcode.php
Removed files:
/pear/Image_Barcode ChangeLog Readme.txt barcode_img.php
test-image-barcode.php
Modified files:
/pear/Image_Barcode package.xml
Log:
Changed directory structure to fit "Package Directory Structure" document
(http://pear.php.net/group/docs/20031114-pds.php)
http://cvs.php.net/diff.php/pear/Image_Barcode/package.xml?r1=1.1&r2=1.2&ty=u
Index: pear/Image_Barcode/package.xml
diff -u pear/Image_Barcode/package.xml:1.1 pear/Image_Barcode/package.xml:1.2
--- pear/Image_Barcode/package.xml:1.1 Wed May 25 11:31:09 2005
+++ pear/Image_Barcode/package.xml Wed May 25 12:13:46 2005
@@ -31,10 +31,10 @@
<file role="php" baseinstalldir="Image"
name="Barcode/ean13.php"/>
<file role="php" baseinstalldir="Image"
name="Barcode/Code39.php"/>
<file role="php" baseinstalldir="Image"
name="Barcode/upca.php" />
- <file role="test" baseinstalldir="Image"
name="test-image-barcode.php"/>
- <file role="test" baseinstalldir="Image"
name="barcode_img.php"/>
- <file role="doc" baseinstalldir="Image"
name="ChangeLog"/>
- <file role="doc" baseinstalldir="Image"
name="Readme.txt"/>
+ <file role="test" baseinstalldir="Image"
name="docs/examples/test-image-barcode.php"/>
+ <file role="test" baseinstalldir="Image"
name="docs/examples/barcode_img.php"/>
+ <file role="doc" baseinstalldir="Image"
name="docs/ChangeLog"/>
+ <file role="doc" baseinstalldir="Image"
name="docs/Readme.txt"/>
</filelist>
</release>
http://cvs.php.net/co.php/pear/Image_Barcode/docs/Readme.txt?r=1.1&p=1
Index: pear/Image_Barcode/docs/Readme.txt
+++ pear/Image_Barcode/docs/Readme.txt
= Image_Barcode - a package to render barcodes =
------------------------------------------------
With PEAR::Image_Barcode class you can create a barcode representation of a
given string.
This class uses GD function because this the generated graphic can be any of
GD supported supported image types.
= Installation =
----------------
You can install Image_Barcode issuing the following command (as root):
# pear install Image_Barcode
If you don't have the 'pear' command, please consult PEAR::The PHP Extension and
Application Repository homepage at http://pear.php.net
= Getting Started =
-------------------
Just load the class in your script:
require_once('Image/Barcode.php');
Call the Image_Barcode::draw() as the follow:
Image_Barcode::draw('1234', 'int25', 'png');
Where:
= '1234' : string you want to draw as barcode;
= 'int25': barcode type (check the avaible types at 'Barcode' subdir);
= 'png' : generated graphic type.
= Current State =
-----------------
You can get the latest code at the PEAR site:
http://pear.php.net/package-info.php?package=Image_Barcode
= Contributing =
----------------
Help from people who want code new barcode module types are very welcome. Just
send your module directly to msmarcal@php.net
= Credits =
-----------
Core class
written by Marcelo Subtil Marcal <msmarcal@php.net>
Interleaved 2 of 5 barcode module type
written by Marcelo Subtil Marcal <msmarcal@php.net>
EAN13 barcode module type
written by Didier FOURNOUT <didier.fournout@nyc.fr>
Code39 barcode module type
written by Ryan Briones <ryanbriones@webxdesign.org>
UPC-A barcode module type
written by Jeffrey K. Brown <jkb@darkfantastic.net>
= Thanks to =
-------------
Mark A.R. <mark@mark.org.il>
= Author =
----------
Written by Marcelo Subtil Marcal <msmarcal@php.net>
= Reporting Bugs =
------------------
Report bugs to Marcelo Subtil Marcal <msmarcal@php.net>
http://cvs.php.net/co.php/pear/Image_Barcode/docs/examples/barcode_img.php?r=1.1&p=1
Index: pear/Image_Barcode/docs/examples/barcode_img.php
+++ pear/Image_Barcode/docs/examples/barcode_img.php
<?php
require_once("Image/Barcode.php");
$num = '15101967';
$type = 'int25';
$imgtype = 'png';
$num = isset($_REQUEST) && is_array($_REQUEST) && isset($_REQUEST['num'])
? $_REQUEST['num'] : $num;
$type = isset($_REQUEST) && is_array($_REQUEST) &&
isset($_REQUEST['type']) ? $_REQUEST['type'] : $type;
$imgtype = isset($_REQUEST) && is_array($_REQUEST) &&
isset($_REQUEST['imgtype']) ? $_REQUEST['imgtype'] : $imgtype;
Image_Barcode::draw($num, $type, $imgtype);
?>
http://cvs.php.net/co.php/pear/Image_Barcode/docs/examples/test-image-barcode.php?r=1.1&p=1
Index: pear/Image_Barcode/docs/examples/test-image-barcode.php
+++ pear/Image_Barcode/docs/examples/test-image-barcode.php
<html>
<head>
<title>Image_Barcode Class Test</title>
<body background="#FFFFFF">
<h1>Image_Barcode Class test</h1>
<?php
$num = "019671015005";
$num = isset($_REQUEST) && is_array($_REQUEST) && isset($_REQUEST['num'])
? $_REQUEST['num'] : $num;
echo "Test number: <b>$num</b>\n<p>\n";
?>
Interleave 2 of 5 (png):<br>
<img src="barcode_img.php?num=<?php echo($num)?>&type=int25&imgtype=png"
alt="PNG: <?php echo($num)?>" title="PNG: <?php echo($num)?>">
<p>
Ean13 (png):<br>
<img src="barcode_img.php?num=<?php echo($num)?>&type=ean13&imgtype=png"
alt="PNG: <?php echo($num)?>" title="PNG: <?php echo($num)?>">
<p>
Code39 (png):<br>
<img src="barcode_img.php?num=<?php echo($num)?>&type=Code39&imgtype=png"
alt="PNG: <?php echo($num)?>" title="PNG: <?php echo($num)?>">
<p>
UPC-A (png):<br>
<img src="barcode_img.php?num=<?php echo($num)?>&type=upca&imgtype=png"
alt="PNG: <?php echo($num)?>" title="PNG: <?php echo($num)?>">
</body>
</html>