Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jkaflik/gutenberg

With the *kofel/gutenberg* library you can feel that PHP likes to have printing support.
https://github.com/jkaflik/gutenberg

Last synced: 26 days ago
JSON representation

With the *kofel/gutenberg* library you can feel that PHP likes to have printing support.

Awesome Lists containing this project

README

        

Gutenberg (WIP)
=========

When **Gutenberg** in 15 century has invented printing, knowledge has become more common.
With the *kofel/gutenberg* library you can feel that PHP likes to have printing support.

Implementation of *Gutenberg* relies on two things: *Printer* and *Printable*. It's easy visualisation to real world, because there we also have printer and document which we want to print.
At this moment library has support only for [CUPS](http://en.wikipedia.org/wiki/CUPS) printers and printable [gLabels](http://glabels.sourceforge.net/) file type.

USAGE
-----

Simple proof of usage:

```php
12345678,
'text' => 'KUBA'
]
];

$printable = new gLabelsPrintable(new \SplFileInfo($argv[1]), $data);
$profile = new PrinterProfile('PDF');
$printer = new CUPSPrinter();
$printer->enqueue($printable,$profile);
```

*Important!* Please note that CUPSPrinter requires also PrinterProfileInterface instance, because we have to specify where CUPS have to enqueue document.

TODO
----

* Tests :)
* More printers, ex.: wkhtmltopdf, rendering twig templates, console
* More printables, ex.: json