scalify / puppet-master-client-laravel
此包已被废弃且不再维护。未建议替代包。
Laravel 包,提供 puppet-master HTTP API 的客户端库
1.0.0
2018-08-21 09:52 UTC
Requires
- php: >=7.0
- illuminate/support: ^5.5
- scalify/puppet-master-client: ~1.0
Requires (Dev)
- laravel/framework: ^5.5
This package is not auto-updated.
Last update: 2022-09-03 18:34:26 UTC
README
用于 puppet-master.io 公共 API 的 PHP 客户端的 Laravel 包。
Puppet-master 通过抽象 HTTP API 后面的代码执行,以可扩展的方式为您调度任务,使网站交互的执行变得超级简单。有关更多信息,请访问 puppet-master 文档。
安装
composer require scalify/puppet-master-client-laravel:~1.0
配置填充
php artisan vendor:publish --provider="Scalify\PuppetMaster\ServiceProvider"
示例用法
<?php namespace My\Laravel\Service; use Scalify\PuppetMaster\Client\ClientInterface; class Something { /** * @var ClientInterface */ private $client; public function __construct(ClientInterface $client) { $this->client = $client; } public function doSomething() { $job = $this->client->getJob("my-job-uuid-example"); echo(sprintf("Job has status %s", $job->getStatus())); } }
许可证
版权所有 2018 Scalify GmbH
根据 Apache License 2.0 版本(“许可证”);除非您遵守许可证,否则不得使用此文件。您可以在以下位置获得许可证副本:
https://apache.ac.cn/licenses/LICENSE-2.0
除非适用法律要求或书面同意,否则在许可证下分发的软件按照“原样”基础分发,不提供任何明示或暗示的保证或条件。请参阅许可证了解特定语言管理权限和限制的条款。