<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>barcode generation Archives &#8212; Stampede: the strategic design &amp; technology company</title>
	<atom:link href="https://stampede-design.com/blog/tag/barcode-generation/feed/" rel="self" type="application/rss+xml" />
	<link>https://stampede-design.com/blog/tag/barcode-generation/</link>
	<description>We are creating better worlds though thoughtful design and technology. Connect with us!</description>
	<lastBuildDate>Tue, 07 Apr 2026 09:07:24 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.6</generator>

<image>
	<url>https://stampede-design.com/wp-content/uploads/2024/02/cropped-Stampede-Favicon-old-32x32.png</url>
	<title>barcode generation Archives &#8212; Stampede: the strategic design &amp; technology company</title>
	<link>https://stampede-design.com/blog/tag/barcode-generation/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Generating Simple 1D Barcodes with PHP</title>
		<link>https://stampede-design.com/blog/generating-simple-1d-barcodes-with-php/</link>
					<comments>https://stampede-design.com/blog/generating-simple-1d-barcodes-with-php/#comments</comments>
		
		<dc:creator><![CDATA[Shaiful Borhan]]></dc:creator>
		<pubDate>Thu, 26 May 2011 11:03:37 +0000</pubDate>
				<category><![CDATA[Field Notes]]></category>
		<category><![CDATA[backend]]></category>
		<category><![CDATA[barcode generation]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tutorial]]></category>
		<guid isPermaLink="false">https://stampede-design.com/blog/?p=1114</guid>

					<description><![CDATA[<p>In web applications like an online-ticketing system, encoding the purchase reference number as barcodes on the ticket print or voucher can be quite useful in helping over-the-counter staff to quickly handle processes such as guest check-in using a barcode scanner. Shaiful shares a simple tool for starters exploring about barcode generation in PHP applications, the cool way he knows how.</p>
<p>The post <a href="https://stampede-design.com/blog/generating-simple-1d-barcodes-with-php/">Generating Simple 1D Barcodes with PHP</a> appeared first on <a href="https://stampede-design.com">Stampede: the strategic design &amp; technology company</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p class="lead">
In web applications like an online-ticketing system, encoding  the purchase reference number as barcodes on the ticket print or voucher can be  quite useful in helping over-the-counter staff to quickly handle processes such  as guest check-in using a barcode scanner.</p>
<p>There are many kinds of <a href="http://en.wikipedia.org/wiki/Barcode#Symbologies">barcode formats</a> out there to cater the  types or amount of data you are trying to encode. However if you are just  starting out for a bit of familiarization, generating 1D barcodes with PHP  couldn’t be simpler with the free (for non-commercial use) <a href="http://www.barcodephp.com/download.php">PHP Barcode  Generator class</a>.</p>
<p>Extract the ZIP and  use the following line to generate a barcode in a Code 39 barcode format encoding  the string A1B2C3D3.</p>

<pre class="brush: php; title: ; notranslate">
&lt;div&gt;
   &lt;img src=&quot;html/image.php?code=code39&amp;amp;o=1&amp;amp;dpi=72&amp;amp;t=80&amp;amp;r=1&amp;amp;rot=0&amp;amp;text=A1B2C3D3&amp;amp;f1=Arial.ttf&amp;amp;f2=10&amp;amp;a1=&amp;amp;a2=&amp;amp;a3=&quot; alt=&quot;Barcode&quot; /&gt;
&lt;/div&gt;
</pre>

<p class="capt_block"><img decoding="async" src="https://stampede-design.com/wp-content/uploads/2011/05/barcode-result.jpg" alt="Image" width="186" height="" class="size-full wp-image-1131" /></p>
<br />

<h3>Some key parameters:</h3>
<div class="table-responsive">
	<table class="table">
		<thead>
			<tr>
				<th>Parameters</th>
				<th>Description</th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td><strong>code</strong></td>
				<td>The barcode format. Most of the standard 1D formats are supported such as Code 93 (code93), Code 128 (code128), UPC (upca) and EAN 8 (ean8).</td>
			</tr>
			<tr>
				<td><strong>o</strong></td>
				<td>The output image format; PNG (1), JPEG (2) or GIF (3)</td>
			</tr>
			<tr>
				<td><strong>t</strong></td>
				<td>The thickness or height</td>
			</tr>
			<tr>
				<td><strong>rot</strong></td>
				<td>The rotation angle; 0, 90, 180 or 270</td>
			</tr>
			<tr>
				<td><strong>text</strong></td>
				<td>The data to encode. Code 39 only supports uppercase letters and numeric digits.</td>
			</tr>
			<tr>
				<td><strong>f2</strong></td>
				<td>The font size of the label</td>
			</tr>
		</tbody>
	</table>
</div>
<p>For a more detailed explanation of each parameters and  configurations, please refer to the barcode generator GUI tool bundled in the ZIP  archive.</p>
<p>Have a nice day.</p><p>The post <a href="https://stampede-design.com/blog/generating-simple-1d-barcodes-with-php/">Generating Simple 1D Barcodes with PHP</a> appeared first on <a href="https://stampede-design.com">Stampede: the strategic design &amp; technology company</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://stampede-design.com/blog/generating-simple-1d-barcodes-with-php/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
			</item>
	</channel>
</rss>
