PHPackages                             fofx/droplet-manager - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. fofx/droplet-manager

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

fofx/droplet-manager
====================

For managing DigitalOcean droplets, CyberPanel accounts, and DNS records for GoDaddy and Namecheap.

v1.0.3(6mo ago)05MITPHPPHP ^8.1

Since Oct 3Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/fofxtools/droplet-manager)[ Packagist](https://packagist.org/packages/fofx/droplet-manager)[ RSS](/packages/fofx-droplet-manager/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (11)Versions (62)Used By (0)

Droplet Manager
===============

[](#droplet-manager)

This PHP library provides functionality to manage DigitalOcean droplets, CyberPanel accounts, and DNS settings with GoDaddy and Namecheap. This library provides a set of tools for automating server management tasks, and website deployments.

Features
--------

[](#features)

- **DigitalOcean Management**

    - Create and configure droplets
    - Manage DNS records
- **CyberPanel Integration**

    - Create and manage websites
    - Configure PHP versions and extensions
    - Manage databases
    - Handle user accounts
- **DNS Management**

    - Support for Namecheap and GoDaddy
    - Automated DNS record configuration
    - Nameserver updates
- **Server Configuration**

    - Automated HTTPS setup
    - PHP version management
    - MySQL configuration
    - Security settings

Installation
------------

[](#installation)

1. Install via Composer:

```
composer require fofx/droplet-manager
```

2. Create config folder and configuration file:

```
mkdir -p config && cp vendor/fofx/droplet-manager/config/droplet-manager.config.php.example config/droplet-manager.config.php
```

3. Configure your credentials in `config/droplet-manager.config.php`:

```
return [
    'digitalocean' => [
        'token'    => 'your_do_token',
        'image_id' => 'litespeedtechnol-cyberpanel-20-04',
    ],
    'namecheap' => [
        'username' => 'your_username',
        'token'    => 'your_token',
    ],
    'godaddy' => [
        'api_key'    => 'your_godaddy_key',
        'api_secret' => 'your_godaddy_secret',
    ],
    // ... other configurations
];
```

Usage
-----

[](#usage)

See [docs/usage.md](docs/usage.md) for more detailed usage instructions.

Setup
-----

[](#setup)

- Install: `composer require fofx/droplet-manager`
- Copy config: `cp vendor/fofx/droplet-manager/config/droplet-manager.config.php.example config/droplet-manager.config.php`
- Add your DigitalOcean API token to `config/droplet-manager.config.php`

Workflow
--------

[](#workflow)

- **Create droplet** → `$manager->createDroplet($dropletName, $region, $size)`
- **Wait for email** → DigitalOcean emails you the root password
- **Get credentials** → Log in to the droplet, run `cat /root/.litespeed_password` and `cat /root/.db_password`
- **Add to config** → Update config file with droplet IP and passwords
- **Configure server** → `$manager->configureDroplet()` (installs PHP, MySQL, tools)
- **Create website** → `$manager->setupWebsite(domainName: 'example.com', websiteEmail: 'admin@example.com', phpVersion: '8.4')`

Requirements
------------

[](#requirements)

- PHP 8.1 or higher
- Composer
- Required PHP extensions:
    - curl
    - json
    - xml
    - mbstring

Developer Tools
---------------

[](#developer-tools)

Run the PHPUnit test suite:

```
composer test
```

Run PHPStan static analysis:

```
composer analyse
```

Run PHP-CS-Fixer:

```
composer cs-fix
```

License
-------

[](#license)

This project is licensed under the MIT License.

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance74

Regular maintenance activity

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~7 days

Recently: every ~94 days

Total

61

Last Release

180d ago

Major Versions

v0.5.7 → v1.0.02024-11-05

### Community

Maintainers

![](https://www.gravatar.com/avatar/b70d3faff89e2b6642ccb6f5282a03c1fa6260bf991c14d9c4abf7822c8181c6?d=identicon)[fofx](/maintainers/fofx)

---

Top Contributors

[![fofxtools](https://avatars.githubusercontent.com/u/177870764?v=4)](https://github.com/fofxtools "fofxtools (62 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/fofx-droplet-manager/health.svg)

```
[![Health](https://phpackages.com/badges/fofx-droplet-manager/health.svg)](https://phpackages.com/packages/fofx-droplet-manager)
```

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[magento/community-edition

Magento 2 (Open Source)

12.1k52.1k10](/packages/magento-community-edition)[google/cloud-core

Google Cloud PHP shared dependency, providing functionality useful to all components.

343121.4M79](/packages/google-cloud-core)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)

PHPackages © 2026

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