All Projects → iluminar → vps

iluminar / vps

Licence: MIT license
A laravel 5 package to easily create and maintain vps on digital ocean

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to vps

offensive-docker-vps
Create a VPS on Google Cloud Platform or Digital Ocean easily with Offensive Docker included to launch assessment to the targets.
Stars: ✭ 66 (+11.86%)
Mutual labels:  digitalocean, vps, digital-ocean
Digitalocean Debian To Arch
Script to convert a Debian installation on DigitalOcean to Arch Linux
Stars: ✭ 783 (+1227.12%)
Mutual labels:  digitalocean, vps
Procsd
Manage your application processes in production hassle-free like Heroku CLI with Procfile and Systemd
Stars: ✭ 181 (+206.78%)
Mutual labels:  digitalocean, vps
Shadowsocks Tutorial
🐱给小白的Shadowsocks和V2ray翻墙教程
Stars: ✭ 1,273 (+2057.63%)
Mutual labels:  digitalocean, vps
doclt
Digital Ocean Command Line Tool
Stars: ✭ 43 (-27.12%)
Mutual labels:  digitalocean, digital-ocean
LiDeploy
🚀 A DigitalOcean Reseller written with Ruby On Rails
Stars: ✭ 20 (-66.1%)
Mutual labels:  digitalocean, vps
rejig
Turn your VPS into an attack box
Stars: ✭ 33 (-44.07%)
Mutual labels:  digitalocean, vps
digitalocean
Scala wrapper around Digital Ocean's API, version 2
Stars: ✭ 28 (-52.54%)
Mutual labels:  digitalocean, digital-ocean
dots
digital ocean api typescript/javascript wrapper
Stars: ✭ 65 (+10.17%)
Mutual labels:  digitalocean, digital-ocean
DigitalOceanFlask
installing a Flask webapp on a Digital Ocean (or Linode, etc.) Ubuntu box
Stars: ✭ 42 (-28.81%)
Mutual labels:  vps, digital-ocean
phoenix example
An example Phoenix app with one-click deployments to different cloud services.
Stars: ✭ 62 (+5.08%)
Mutual labels:  digitalocean
cluster-api-provider-digitalocean
The DigitalOcean provider implementation of the Cluster Management API
Stars: ✭ 85 (+44.07%)
Mutual labels:  digitalocean
artisan-shortcuts
🍰 Register shortcuts to execute multiple artisan commands
Stars: ✭ 56 (-5.08%)
Mutual labels:  laravel-5-package
hacktoberfest2019
A repository for hacktoberfest 2019 [ Not counting towards hacktoberfest contribution ]
Stars: ✭ 12 (-79.66%)
Mutual labels:  digitalocean
djeasy
Django Project Deploy Easier to in Debian Distribution!
Stars: ✭ 24 (-59.32%)
Mutual labels:  digitalocean
Luna
Club Penguin Server Emulator - AS2 Protocol
Stars: ✭ 22 (-62.71%)
Mutual labels:  vps
digitalocean exporter
Prometheus exporter for DigitalOcean metrics, written in Go.
Stars: ✭ 100 (+69.49%)
Mutual labels:  digitalocean
CODE-CAMP-2020
A Virtual Hackathon Camp for Developers, Build real products and win Swags in comfort of your home.
Stars: ✭ 30 (-49.15%)
Mutual labels:  digitalocean
competetive-code-hacktoberfest
For Hacktoberfest Contribution
Stars: ✭ 14 (-76.27%)
Mutual labels:  digitalocean
laravel-backup-shield
🔒Password protection (and encryption) for your laravel backups.
Stars: ✭ 32 (-45.76%)
Mutual labels:  laravel-5-package

VPS

beta version

License StyleCI

A laravel 5 package to easily create and maitain vps on digital ocean. Yet to complete Have a look at the usage

$value = ["name"=> "test.com","region"=> "blr1","size"=> "512mb","image"=> "centos-7-2-x64"];
$result = VPS::droplet()->create($value);

We just created a droplet in digital ocean.

$result = VPS::droplet($id)->delete();

We just deleted a droplet by passing the id of our droplet.

Want to shutdown a droplet

$result = VPS::droplet($id)->shutdown();

How about getting all droplets we created

$result = VPS::droplet()->all();

Install

You can pull in the package via composer:

$ composer require iluminar/vps

Or you can add this in your composer.json

"require": {
    "iluminar/vps": "dev-develop"
}

and then terminal from your root directory of project run following command

$ composer update

After updating composer, add a fluent service provider to the providers array in config/app.php file.

 'providers' => array(
        // ...
        Iluminar\VPS\Providers\VPSServiceProvider::class,
    )

then run in terminal

$ php artisan vendor:publish

Configuration

First you have to get a personal access token and set the DIGITAL_OCEAN_TOKEN in the .env file.

Usage

Import the VPS facade in your controller

Account information

$result = VPS::account();

Get action information

Get all actions performed on an account

$result = VPS::action()->all();

Get information of an action

$result = VPS::action()->find($id);

Get droplet information

Get information of all droplets

$result = VPS::droplet()->all();

Get information of a single droplet

$result = VPS::droplet()->find($id);

Get all snapshots of a droplet

$result = VPS::droplet($id)->snapshots();

Get all backups of a droplet

$result = VPS::droplet($id)->backups();

Enable backups of a droplet

$result = VPS::droplet($id)->enableBackups();

Disable backups of a droplet

$result = VPS::droplet($id)->disableBackups();

Reboot a droplet

$result = VPS::droplet($id)->reboot();

Power cycle a droplet

$result = VPS::droplet($id)->powerCycle();

Shutdown a droplet

$result = VPS::droplet($id)->shutdown();

Power off a droplet

$result = VPS::droplet($id)->powerOff();

Power on a droplet

$result = VPS::droplet($id)->powerOn();

Restore a droplet by providing a id of previous image

$result = VPS::droplet($id)->restore();

Resize a droplet, pass a size parameter (1gb, 2gb etc..). For permanent resize also passed a boolen valu of true

$result = VPS::droplet($id)->resize('1gb');
$result = VPS::droplet($id)->resize('1gb', true); // permanent resize

Rebuild a droplet, pass a image id or slug as a parameter

$result = VPS::droplet($id)->rebuild($id);
$result = VPS::droplet($id)->rebuild('ubuntu-14-04-x64'); // rebuild by image slug

Rename a droplet, pass a string as a parameter

$result = VPS::droplet($id)->rebuild('name');

Enable ipv6 on a droplet

$result = VPS::droplet($id)->enableIPv6();

Enable private networking on a droplet

$result = VPS::droplet($id)->enablePrivateNetworking();

Take snapshot of a droplet, pass a string as a parameter to name the snapshot

$result = VPS::droplet($id)->takeSnapshot('new nifty snapshot');

Get information of a action performed on this droplet

$result = VPS::droplet($id)->action($actionId);

Get image information

List all images

$result = VPS::image()->all();

List all distribution images

$result = VPS::image()->where(['type' => 'distribution']);

List all application images

$result = VPS::image()->where(['type' => 'application']);

List all private images of user

$result = VPS::image()->where(['private' => 'true']);

Get information of a single image

$result = VPS::image()->find($id);

Get information of a single image by slug

$result = VPS::image()->find('ubuntu-14-04-x64');

List all actions for an images

$result = VPS::image($id)->actions();

Rename an image

$result = VPS::image($id)->rename('new cool name');

Delete an image

$result = VPS::image($id)->delete();

Transfer an image to a different region

$result = VPS::image($id)->transfer('nyc1');

Convert an image to a snapshot

$result = VPS::image($id)->convert();

Get information of an action performed on an image

$result = VPS::image($id)->action($actionId);

SSH keys

List all keys associated with this account

$result = VPS::ssh()->all();

Add a new ssh key to your account

$result = VPS::ssh()->create(['name' => 'my-home-key', 'public_key' => "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAQQDDHr/jh2Jy"]);

Get information about a key by key id or fingerprint

$result = VPS::ssh()->find($id); // or $fingerprint instead of $id

Rename a key

$result = VPS::ssh($id)->rename('new key name');

Delete a key

$result = VPS::ssh($id)->delete(); // $fingerprint can also be used instead of $id

Documentation

Yet to be added.

TODO

documentation

Error handling

Security Vulnerabilities

If you discover a security vulnerability in the package, please send an e-mail to Nehal Hasnayeen at [email protected]. All security vulnerabilities will be promptly addressed.

License

The Iluminar\VPS is open-sourced software licensed under the MIT license.

Change log

Please see CHANGELOG for more information what has changed recently.

Contributor

Made by Hasnayeen with love in Bangladesh

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].