Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/jkaflik/gutenberg
- Owner: jkaflik
- License: mit
- Created: 2014-12-16T11:45:29.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-05-05T07:54:34.000Z (over 8 years ago)
- Last Synced: 2024-10-27T23:47:32.194Z (2 months ago)
- Language: PHP
- Size: 48.8 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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