LaravelPackages.net
Acme Inc.
Toggle sidebar
mastashake08/laravel-forge-php-sdk

PHP SDK for accessing Laravel Forge API

38
4
1.0.0
About mastashake08/laravel-forge-php-sdk

mastashake08/laravel-forge-php-sdk is a Laravel package for php sdk for accessing laravel forge api. It currently has 4 GitHub stars and 38 downloads on Packagist (latest version 1.0.0). Install it with composer require mastashake08/laravel-forge-php-sdk. Discover more Laravel packages by mastashake08 or browse all Laravel packages to compare alternatives.

Last updated

Laravel Forge PHP SDK

An Unofficial PHP SDK for Laravel Forge API Taylor Otwell has graciously given us a REST API for Laravel Forge. This simple PHP SDK is a wrapper around that API to be used in your PHP projects

Get A Key

The first thing you need to do before starting a project is register for an API token at the official website

#Download Project

composer require mastashake08/laravel-forge-php-sdk

#Usage Follow the conventions in the API documentation , for example to list all servers

use Mastashake08\Forge\Server;
use Mastashake08\Forge\Forge;
Forge::setApiKey($apiKey);
$server = (new Server())->all();
echo $server; // shows all servers in JSON Format

##Objects The following objects are available via the SDK

  • Certificate
  • Config
  • Credential
  • Daemon
  • Deployment
  • Firewall
  • Git
  • Job
  • Mysql
  • MysqlUser
  • Recipe
  • Server
  • Service
  • Site
  • SSH
  • Wordpress
  • Worker

#Contribution This project is ongoing feel free to submit a pull request and help make this project better!

#Questions Email all questions to [email protected]

Star History Chart