PHPackages                             pianzhou/hyperf-serve - 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. pianzhou/hyperf-serve

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

pianzhou/hyperf-serve
=====================

serve package for Hyperf.

v1.1(4y ago)223MITPHPPHP &gt;=7.2

Since Mar 8Pushed 4y ago1 watchersCompare

[ Source](https://github.com/pianzhou2021/hyperf-serve)[ Packagist](https://packagist.org/packages/pianzhou/hyperf-serve)[ Docs](https://github.com/pianzhou2021/hyperf-serve)[ RSS](/packages/pianzhou-hyperf-serve/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

 Hyperf Serve
==============

[](#--hyperf-serve)

About Hyperf Serve
------------------

[](#about-hyperf-serve)

Hyperf Serve is a hyperf-based third-party extension package, with it, you can easily reload or stop the hyperf server, and code hot loading.

How to Use
----------

[](#how-to-use)

### Install

[](#install)

```
composer require pianzhou/hyperf-serve

```

### Start Hyperf Server

[](#start-hyperf-server)

```
php ./bin/hyperf.php start

```

### Reload Hyperf Server

[](#reload-hyperf-server)

```
php ./bin/hyperf.php serve:reload

```

### Stop Hyperf Server

[](#stop-hyperf-server)

```
php ./bin/hyperf.php serve:stop

```

### Code Hot Loading (Available on all platforms MAC/WINDOWS/LINUX/FREEBSD)

[](#code-hot-loading-available-on-all-platforms-macwindowslinuxfreebsd)

```
php ./bin/hyperf.php vendor:publish pianzhou/hyperf-serve
chmod +x ./bin/watcher
./bin/watcher

```

### Or Use Composer for code hot loading

[](#or-use-composer-for-code-hot-loading)

#### write code to your composer.json

[](#write-code-to-your-composerjson)

```
    "scripts": {
        "watcher": "./bin/watcher"
    }

```

#### Use it

[](#use-it)

```
composer watcher

```

#### Note

[](#note)

Because the default command called by the watch command is `php ./bin/hyperf.php serve:reload`, so the `php` path need add to the environment variable, or you can write your watch command like

```
./bin/watcher --command="your command here"

```

By the way, if you are using docker development environment, you can write

```
./bin/watcher --command="docker exec -d mydocker php /opt/www/bin/hyperf.php serve:reload"

```

### Notice

[](#notice)

In the development environment, opcache needs to be closed, and the docker development environment also needs to be closed. for docker development environment, you can add code `echo "opcache.enable_cli=Off"; \` to your Dockerfile

```
        ...
        echo "upload_max_filesize=128M"; \
        echo "post_max_size=128M"; \
        echo "memory_limit=1G"; \
        echo "date.timezone=${TIMEZONE}"; \
        echo "opcache.enable_cli=Off"; \
        ...

```

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

If you discover a security vulnerability within hyperf serve, please send an e-mail to Pian Zhou [pianzhou2021@163.com](pianzhou2021@163.com). All security vulnerabilities will be promptly addressed.

License
-------

[](#license)

The hyperf serve is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 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 ~2 days

Total

2

Last Release

1523d ago

### Community

Maintainers

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

---

Top Contributors

[![pianzhou2021](https://avatars.githubusercontent.com/u/97172071?v=4)](https://github.com/pianzhou2021 "pianzhou2021 (11 commits)")

---

Tags

phpswoolehyperfserve

### Embed Badge

![Health badge](/badges/pianzhou-hyperf-serve/health.svg)

```
[![Health](https://phpackages.com/badges/pianzhou-hyperf-serve/health.svg)](https://phpackages.com/packages/pianzhou-hyperf-serve)
```

PHPackages © 2026

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