PHPackages                             samyapp/cloudways-restart-php-deployer-task - 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. [DevOps &amp; Deployment](/categories/devops)
4. /
5. samyapp/cloudways-restart-php-deployer-task

AbandonedArchivedLibrary[DevOps &amp; Deployment](/categories/devops)

samyapp/cloudways-restart-php-deployer-task
===========================================

A simple deployer task and helper function to use cloudways api to restart php 7.1 fpm on one a server managed there.

v1.0.1(7y ago)03121MITPHP

Since Nov 15Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/samyapp/cloudways-restart-php-deployer-task)[ Packagist](https://packagist.org/packages/samyapp/cloudways-restart-php-deployer-task)[ RSS](/packages/samyapp-cloudways-restart-php-deployer-task/feed)WikiDiscussions master Synced 2w ago

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

Archived, I no longer use this (and haven't for a while).
=========================================================

[](#archived-i-no-longer-use-this-and-havent-for-a-while)

Restarting php-fpm on Cloudways servers from a [Deployer](https://deployer,org) file.
=====================================================================================

[](#restarting-php-fpm-on-cloudways-servers-from-a-deployer-file)

A quick and dirty deployer task to restart php-fpm hosted on cloudways

Should be simple to modify to restart other services. See

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

[](#requirements)

You need a [Cloudways](https://www.cloudways.com) account and server, an api key, and the id of the server you want to restart services on.

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

[](#installation)

It's just a couple of utility functions and a deployer task. Either download and include [restart-php-fpm.php](restart-php-fpm.php) or install via composer:

`composer require --dev samyapp/cloudways-restart-php-deployer-task`

Usage
-----

[](#usage)

In your `deploy.php` script, include [restart-php-fpm.php](restart-php-fpm.php) after you include your recipes.

Then set the following variables:

```
// The email attached to your cloudways account.
set('cloudways_email', 'you@cloudways-account-email.com');

// the id of the cloudways server to restart
set('cloudways_server_id', 42);

// the php version to restart
set('cloudways_php_version', '8.1');

// your cloudways api key - you could hard code this in your deploy script of
// just set it in your environment instead.
set('cloudways_api_key', $_ENV['CLOUDWAYS_API_KEY']);
```

Finally, call the restart task from somewhere appropriate, eg:

```
after('deploy:symlink', 'deploy:restart-php-fpm');
```

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

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

Total

2

Last Release

2783d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1048450?v=4)[Sam Yapp](/maintainers/samyapp)[@samyapp](https://github.com/samyapp)

---

Top Contributors

[![samyapp](https://avatars.githubusercontent.com/u/1048450?v=4)](https://github.com/samyapp "samyapp (8 commits)")[![robbanl](https://avatars.githubusercontent.com/u/922250?v=4)](https://github.com/robbanl "robbanl (2 commits)")

### Embed Badge

![Health badge](/badges/samyapp-cloudways-restart-php-deployer-task/health.svg)

```
[![Health](https://phpackages.com/badges/samyapp-cloudways-restart-php-deployer-task/health.svg)](https://phpackages.com/packages/samyapp-cloudways-restart-php-deployer-task)
```

###  Alternatives

[ryoluo/sail-ssl

Laravel Sail plugin to enable SSL (HTTPS) connection with Nginx.

192739.0k3](/packages/ryoluo-sail-ssl)[sarfraznawaz2005/servermonitor

Laravel package to periodically monitor the health of your server and website.

19613.5k1](/packages/sarfraznawaz2005-servermonitor)[tiamo/phpas2

PHPAS2 is a php-based implementation of the EDIINT AS2 standard

4676.9k](/packages/tiamo-phpas2)[wapmorgan/php-rpm-packager

RPM packager for PHP applications.

116.5k](/packages/wapmorgan-php-rpm-packager)

PHPackages © 2026

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