andrewlamers / php-google-cloud-print
There is no license information available for the latest version (v0.1.2) of this package.
PHP Google cloud print api wrapper
Package info
github.com/andrewlamers/php-google-cloud-print
pkg:composer/andrewlamers/php-google-cloud-print
v0.1.2
2017-09-27 21:32 UTC
Requires
- php: >=5.5.9
- google/apiclient: ^2.0
- guzzlehttp/guzzle: ~6
- illuminate/support: 5.1.*|5.2.*|5.3.*|5.4.*
This package is auto-updated.
Last update: 2026-03-01 00:10:59 UTC
README
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')
->