myocean/api 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

myocean/api

最新稳定版本:1.0.2

Composer 安装命令:

composer require myocean/api

包简介

A PHP library for interacting with DigitalOcean API

README 文档

README

A PHP library for interacting with DigitalOcean API

get from composer

composer require myocean/api

example

<?php
use DigitalOcean\Api;
require 'vendor/autoload.php';

// Your digital ocean token
$token = 'your_digital_ocean_token';

// Create an instance of the DigitalOceanAPI class
$doApi = new Api($token);


// Create a new droplet ( $name, $region, $size, $imageId )
$dropletData = $doApi->createDroplet('example-droplet', 'nyc3', 's-1vcpu-1gb', 'ubuntu-16-04-x64');

// Get information about a droplet
$dropletInfo = $doApi->getDroplet(123456);

// Delete a droplet
$doApi->deleteDroplet(123456);

// Rename a droplet
$renamedDroplet = $doApi->renameDroplet(123456, 'new-example-droplet-name');

// Reboot a droplet
$rebootedDroplet = $doApi->rebootDroplet(123456);

// Resize a droplet
$resizedDroplet = $doApi->resizeDroplet(123456, 's-2vcpu-2gb');

统计信息

  • 总下载量: 10
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2023-03-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固