PHPackages                             wapmorgan/onecloud-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. wapmorgan/onecloud-api

ActiveLibrary[API Development](/categories/api)

wapmorgan/onecloud-api
======================

1cloud.ru api binding

1.1.1(10y ago)6423MITPHP

Since Feb 27Pushed 3y ago3 watchersCompare

[ Source](https://github.com/wapmorgan/OneCloudApi.php)[ Packagist](https://packagist.org/packages/wapmorgan/onecloud-api)[ RSS](/packages/wapmorgan-onecloud-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

OneCloudApi.php
===============

[](#onecloudapiphp)

API client for OneCloud.

[![Latest Stable Version](https://camo.githubusercontent.com/328d33428752ed6de2498f71b5538239205f4d2d3fe78079ebecd2fea444014e/68747470733a2f2f706f7365722e707567782e6f72672f7761706d6f7267616e2f6f6e65636c6f75642d6170692f762f737461626c65)](https://packagist.org/packages/wapmorgan/onecloud-api)[![Total Downloads](https://camo.githubusercontent.com/08d7f3ba8972470aa9bd016d24ca853bcdec51c20cce81dd7d7ff0542f272bca/68747470733a2f2f706f7365722e707567782e6f72672f7761706d6f7267616e2f6f6e65636c6f75642d6170692f646f776e6c6f616473)](https://packagist.org/packages/wapmorgan/onecloud-api)[![License](https://camo.githubusercontent.com/87148491ecb944d5d2365c83b430ae88a6669c6bbe0d463add8b79a0956c7028/68747470733a2f2f706f7365722e707567782e6f72672f7761706d6f7267616e2f6f6e65636c6f75642d6170692f6c6963656e7365)](https://packagist.org/packages/wapmorgan/onecloud-api)

API
===

[](#api)

- `constructor OneCloudApi($secret_key[, $timeout = 1])`

    Adjust second parameter if script prints errors about socket timeout; by default there 1 sec;

### Images

[](#images)

- `getImagesList(): array`

    Returns images list
- `createImage($imageName, $imageIdentificator, $serverId): boolean`

    Create Image from a server
- `deleteImage($imageIdentificator)`

    Delete image

### Servers

[](#servers)

- `getServersList(): array`

    Servers List
- `getServerInfo($serverId): array`

    Server info
- `createServer($serverName, $cpuCount, $ram, $hdd, $imageIdentificator, $diskType /*SAS or SSD*/, $isHighPerformance /* true or false */): array`

    Create server
- `changeServer($serverId, $cpuCount, $ram, $hdd, $diskType, $isHighPerformance): array`

    Change server configuration
- `deleteServer($serverId): boolean`

    Delete server
- `turnOnServer($serverId): boolean`, `turnOffServer($serverId): boolean`, `rebootServer($serverId): boolean`

    Turn on server, Turn off server, Reboot server
- `getServerOperations($serverId): array`

    Server operations history
- `getServerOperation($serverId, $operationId): array`

    Server operation info
- `createNetwork($networkName): array`

    Create network
- `addServerToNetwork($serverId, $networkId): boolean`

    Add server in network
- `removeServerFromNetwork($serverId, $networkId): boolean`

    Remove server from network
- `getNetworkInfo($networkId): array`

    Network info
- `deleteNetwork($networkId): boolean`

    Delete network

API changes
===========

[](#api-changes)

### 2015-04-16: 1.1

[](#2015-04-16-11)

- new createImage(), deleteImage() actions
- new options $hddType and $isHighPerformance in createServer() and changeServer()
- new addServerToNetwork(), removeServerFromNetwork() methods

API documentation
=================

[](#api-documentation)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 81% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~91 days

Total

3

Last Release

3916d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6000618?v=4)[Sergey](/maintainers/wapmorgan)[@wapmorgan](https://github.com/wapmorgan)

---

Top Contributors

[![wapmorgan](https://avatars.githubusercontent.com/u/6000618?v=4)](https://github.com/wapmorgan "wapmorgan (17 commits)")[![AmraniCh](https://avatars.githubusercontent.com/u/49124992?v=4)](https://github.com/AmraniCh "AmraniCh (4 commits)")

### Embed Badge

![Health badge](/badges/wapmorgan-onecloud-api/health.svg)

```
[![Health](https://phpackages.com/badges/wapmorgan-onecloud-api/health.svg)](https://phpackages.com/packages/wapmorgan-onecloud-api)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
