承接 limetec/php-network-lpr-printer 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

limetec/php-network-lpr-printer

Composer 安装命令:

composer require limetec/php-network-lpr-printer

包简介

PHP class to manage network printers via LPR (Line Printer Daemon Protocol) standard

README 文档

README

PHP class to manage network printers via LPR (Line Printer Daemon Protocol) standar. With this class you will able to print text without any drivers, you only need to write the host (ip) of the printer.

Developed by Pedro Villena (craswer@gmail.com). http://www.craswer.net/

Status

This project is very much an early work-in-progress. While it is usable, there are no guarantees that it will not break or cause unintended effects.

Getting started

Assuming you have downloaded the Class PhpNetworkLprPrinter.php, you can get started by including the file in your program:

include("PhpNetworkLprPrinter.php");

Somewhere you need to initialize the network printer in your code. An example of doing it with a printer located in host 192.168.1.136:

$lpr = new PhpNetworkLprPrinter("192.168.1.136");

Or if you prefer, including the port:

$lpr = new PhpNetworkLprPrinter("192.168.1.136", 515);

After initializing the printer, to print some text you need to write the following code:

$lpr->printText("Hello world!"); 

Debugging

If you like to debug the application, there is a function called "getDebug".

$array_debug = $lpr->getDebug();

This function returns an array with the following structure:

Array
(
[0] => Array
    (
        [message] => string
        [time] => timestamp
        [type] => message / error
    )
[1] => Array
    (
        [message] => string
        [time] => timestamp
        [type] => message / error
    )
....
)

License

Copyright 2011 Pedro Villena (craswer@gmail.com).

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

统计信息

  • 总下载量: 33.08k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 4
  • Forks: 11
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2018-11-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固