• Stars
    star
    400
  • Rank 107,843 (Top 3 %)
  • Language
    PHP
  • License
    MIT License
  • Created over 4 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Direct printing for Laravel apps.

Printing for Laravel

Latest Version on Packagist Tests Total Downloads PHP from Packagist License

social image

Printing for Laravel allows your application to directly send PDF documents or raw text directly from a remote server to a printer on your local network. Receipts can also be printed by first generating the raw text via the Rawilk\Printing\Receipts\ReceiptPrinter class, and then sending the text as a raw print job via the Printing facade.

$printJob = Printing::newPrintTask()
    ->printer($printerId)
    ->file('path_to_file.pdf')
    ->send();

$printJob->id(); // the id number returned from the print server

Supported Print Drivers:

Documentation:

For documentation, please visit: https://randallwilk.dev/docs/laravel-printing

Installation

You can install the package via composer:

composer require rawilk/laravel-printing

You can publish the config file with:

php artisan vendor:publish --tag="printing-config"

The contents of the default configuration file can be found here: https://github.com/rawilk/laravel-printing/blob/main/config/printing.php

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

Inspiration for the PrintNode API wrapper comes from:

Disclaimer

This package is not affiliated with, maintained, authorized, endorsed or sponsored by Laravel or any of its affiliates.

License

The MIT License (MIT). Please see License File for more information.

More Repositories

1

laravel-form-components

Form components built for Tailwind & Livewire.
PHP
360
star
2

vue-context

A simple vue context menu component.
JavaScript
257
star
3

laravel-settings

Store Laravel application settings in the database.
PHP
148
star
4

filament-password-input

Enhanced password input component for filament.
PHP
35
star
5

alpine-ripple

Ripple effect (materialize) for Alpine.js.
JavaScript
21
star
6

laravel-app-key-rotator

Rotate app keys around while re-encrypting data.
PHP
21
star
7

laravel-webauthn

Add webauthn functionality to Laravel.
PHP
20
star
8

yubikey-u2f

Add Yubikey U2F authentication to Laravel.
PHP
15
star
9

laravel-breadcrumbs

Easily add breadcrumbs to a Laravel app.
PHP
13
star
10

laravel-ups

UPS api wrapper for Laravel.
PHP
10
star
11

laravel-base

Useful blade components and functionality for most Laravel projects.
PHP
8
star
12

filament-quill

Quill rich text editor for Filament.
PHP
8
star
13

laravel-casters

A collection of custom casts for Laravel.
PHP
6
star
14

randallwilk.dev

Repo for my personal site.
Blade
4
star
15

new-server-setup

Guide and stack scripts for setting up a new server environment
Shell
3
star
16

profile-filament-plugin

Profile & MFA starter kit for filament.
PHP
3
star
17

filament-inner-nav

Add inner navigation to filament panel pages.
Blade
2
star
18

laravel-form-components.randallwilk.dev

Demo site for Laravel Form Components
PHP
2
star
19

laravel-stubs

Opinionated modifications to the default Laravel stubs.
PHP
2
star
20

laravel-modules

Module management in Laravel
PHP
2
star
21

human-keys

Use stripe-like keys for your models.
PHP
2
star
22

blade

Commonly needed blade components for Laravel apps.
PHP
1
star
23

rawilk

My personal GitHub repository
1
star