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)03111MITPHP

Since Nov 15Pushed 9mo 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 2mo 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 77% of packages

Maintenance42

Moderate activity, may be stable

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

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

2733d ago

### Community

---

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

[deployer/deployer

Deployment Tool

11.0k25.4M206](/packages/deployer-deployer)[appwrite/server-ce

End to end backend server for frontend and mobile apps.

55.3k84.2k](/packages/appwrite-server-ce)[pragmarx/health

Laravel Server &amp; App Health Monitor and Notifier

2.0k1.0M2](/packages/pragmarx-health)[felixfbecker/language-server-protocol

PHP classes for the Language Server Protocol

22476.7M6](/packages/felixfbecker-language-server-protocol)[heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP and Apache2/Nginx as on Heroku

8161.3M10](/packages/heroku-heroku-buildpack-php)[tiamo/phpas2

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

4674.7k](/packages/tiamo-phpas2)

PHPackages © 2026

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