Laravel package wrapper around the runcloud API SDK
updaterbot/laravel-runcloud-sdk is a Laravel package for laravel package wrapper around the runcloud api sdk.
It currently has 1 GitHub stars and 5 downloads on Packagist (latest version 1.0.2).
Install it with composer require updaterbot/laravel-runcloud-sdk.
Discover more Laravel packages by updaterbot
or browse all Laravel packages to compare alternatives.
Last updated
This is a simple laravel package that creates a provider for the SDK developed by onhonvercode here: https://github.com/updaterbot/runcloud-sdk
Require the package via composer in your laravel app:
composer require updaterbot/laravel-runcloud-sdk
php artisan vendor:publish
Select Mindfullsilence\LaravelRuncloudSdk\Providers\RuncloudClientProvider from the list provided.
RUNCLOUD_PUBLIC_KEY=your-api-key
RUNCLOUD_SECRET_KEY=your-secret-key
Once installed, you can access the runcloud class instance using the facade, dependency injection, or the service container:
use \Mindfullsilence\LaravelRuncloudSdk\Clients\RuncloudClient;
class SomeClass {
public function __construct(
RuncloudClient $runcloud
) {
$this->runcloud = $runcloud;
return $this->runcloud->ping() === 'pong';
}
}
use \Mindfullsilence\LaravelRuncloudSdk\Facades\RuncloudClient;
class SomeClass {
public function index() {
return RuncloudClient::ping() === 'pong';
}
}
use \Mindfullsilence\LaravelRuncloudSdk\Clients\RuncloudClient;
class SomeClass {
public function index() {
return app(RuncloudClient::class)->ping() === 'pong';
}
// or
public function index() {
return app('runcloud.api')->ping() === 'pong';
}
}