andrewlamers / php-google-cloud-print
PHP Google cloud print api wrapper
Installs: 12 244
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 3
Forks: 4
Open Issues: 2
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: 2024-10-29 04:20:09 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')
->