Skip to content

PHP-Yii extension for print data in a remote printer (CUPS Printer)

Notifications You must be signed in to change notification settings

harikrishnanp/RemotePrint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

RemotePrint

PHP-Yii extension for print data in a remote printer (CUPS Printer)

Usage

Add this in protected/config/main.php of Yii

'components'=>array( 'RemotePrint' => array( 'class' => 'RemotePrint', 'ip' => '127.0.0.1', 'port' => '631' ), )

Where ip is the IP of computer in which the printer is connected. Port id the port of cups printer, default 631.

Do print from your controller as

$data = 'Test Print'; echo Yii::app()->RemotePrint->print_data($data);

About

PHP-Yii extension for print data in a remote printer (CUPS Printer)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages