New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

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
Laravel:5
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

doctrine/dbal

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

660,512,042 9,702
laravel/framework

The Laravel Framework.

625,568,548 34,998
laravel/tinker

Powerful REPL for the Laravel framework.

531,591,559 7,442
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

450,320,528 608
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

424,642,029 4,662

Version History

Version Released PHP Laravel License
v0.1.2 >=5.5.9 5.1.*|5.2.*|5.3.*|5.4.*
v0.1.1 >=5.5.9 5.1.*|5.2.*|5.3.*|5.4.*
v0.1.0 >=5.5.9 5.1.*|5.2.*|5.3.*
v0.0.3 >=5.5.9 5.1.*|5.2.*|5.3.*
v0.0.2 >=5.5.9 5.1.*|5.2.*|5.3.*