andrewlamers/php-google-cloud-print
Composer 安装命令:
composer require andrewlamers/php-google-cloud-print
包简介
PHP Google cloud print api wrapper
README 文档
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')
->
统计信息
- 总下载量: 12.31k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2017-02-22