2017 © Pedro Peláez
 

library directprint

Easy and direct file print from PHP

image

neysi/directprint

Easy and direct file print from PHP

  • Friday, June 9, 2017
  • by neysi
  • Repository
  • 2 Watchers
  • 2 Stars
  • 93 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 2 Versions
  • 3 % Grown

The README.md

PHP Direct Print

This library allows printing files directly from PHP. Avoid print dialog preview in the web browser. Linux and MacOS Compatible. CUPS Required., (*1)

Installation

Include the library

Composer

If you are using composer, then add neysi/directprint as a dependency:, (*2)

composer require neysi/directprint

Manual

If you have no composer, download the code and include autoload.php, (*3)

git clone https://github.com/neysi/directprint.git

<?php
require __DIR__ . '/vendor/neysi/directprint/autoload.php');

Methods

printFile($fileName,$printerName)

Print on the default printer:, (*4)

$id =  DirectPrint::printFile('invoice.pdf') ;

Print on the Canon iP2800 Printer:, (*5)

$id = DirectPrint::printFile('invoice.pdf','Canon_iP2800_series') ;

getDefaultPrinter()

$printerName =  DirectPrint::getDefaultPrinter() ;

getPrinters()

$printers =  DirectPrint::getPrinters() ;

activeJobs()

Displays print queue, (*6)

cancelAllJobs()

Cancel all of the print queue, (*7)

cancelJob($jobID)

Cancel a specific print job, (*8)

The Versions

09/06 2017

dev-master

9999999-dev

Easy and direct file print from PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

php print directprint cups

03/05 2016

1.0.0

1.0.0.0

Easy and direct file print from PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires