andrewlamers/php-google-cloud-print

PHP Google cloud print api wrapper
12,315 6
Install
composer require andrewlamers/php-google-cloud-print
Latest Version:v0.1.2
PHP:>=5.5.9
Last Updated:Jan 29, 2019
Links: GitHub  ·  Packagist
Maintainer: emaw

Php Google Cloud Print

PHP Interface to the google cloud print API.

Installation

composer require andrewlamers/php-google-cloud-print

Google Service Account

You can use a google service account with this api. To give the service account access to your printers, share the printer with the service account email. The api will try to accept invites automatically.

Laravel Setup

Included service provider and facade for Laravel 5.

'providers' => [
    \Andrewlamers\PhpGoogleCloudPrint\ServiceProvider::class
]

'aliases' => [
    'CloudPrint' => Andrewlamers\PhpGoogleCloudPrint\Facade::class
]

Example Usage

$response = CloudPrint::html('<html><body>My html content</body></html>')
    ->printer('myprinterid')
    ->send();

Available Options

CloudPrint::html('mystring')
    ->printer($printerid)
    ->content($stringContent)
    ->title('my job title')
    ->tag('my job tag')
    ->

Related Packages

gabrieloliverio/laravel5-generators

Database metadata-based generators for Laravel 5

1
erirk/paypalpayment

laravel-paypalpayment is simple package help you process direct credit card paym...

0
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

631,580,251 9,707
laravel/framework

The Laravel Framework.

580,311,802 34,925
laravel/tinker

Powerful REPL for the Laravel framework.

489,754,436 7,444