Create barcode generator using Zend Library (Support CI 2 & 3)
Switch branches/tags
Nothing to show
Clone or download
Latest commit 149a4ab Jul 19, 2017
Permalink
Failed to load latest commit information.
application update issue EXT on CI 3 by lilsammy Jul 16, 2015
system Adding Library Barcode Dec 7, 2014
.htaccess Adding Library Barcode Dec 7, 2014
README.md Update README.md Jul 19, 2017
index.php Adding Library Barcode Dec 7, 2014

README.md

Codeigniter Barcode Generator With Zend Library, Support CI 2 & 3

Create barcode generator using Zend Library

It's so easy to use, you just extract the library into libraries path and then put library in controller, check it out now!

Setup

1. Download and extract into libraries path
2. Include your library in controller

Here's an example:

class Main extends CI_Controller {

	public function index()
	{
		//I'm just using rand() function for data example
		$temp = rand(10000, 99999);
		$this->set_barcode($temp);
	}
	
	private function set_barcode($code)
	{
		//load library
		$this->load->library('zend');
		//load in folder Zend
		$this->zend->load('Zend/Barcode');
		//generate barcode
		Zend_Barcode::render('code128', 'image', array('text'=>$code), array());
	}
	
}