PHPackages                             ibllex/hyperf-service-register - 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. ibllex/hyperf-service-register

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

ibllex/hyperf-service-register
==============================

Service registration component for hyperf

v1.0.0(5y ago)210MITPHPPHP &gt;=7.2

Since Nov 25Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ibllex/hyperf-service-register)[ Packagist](https://packagist.org/packages/ibllex/hyperf-service-register)[ RSS](/packages/ibllex-hyperf-service-register/feed)WikiDiscussions main Synced today

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

English | [中文](./README-CN.md)

hyperf-service-register
=======================

[](#hyperf-service-register)

This is a service registry component of [hyperf](https://github.com/hyperf/hyperf) that currently supports publishing services of the grpc, http, jsonrpc-http and jsonrpc protocol to consul.

We will support more service center in the future, like etcd, and you can also do it yourself and open a pull request, it's not difficult.

Quick usage
-----------

[](#quick-usage)

#### 1. Install

[](#1-install)

```
composer require ibllex/hyperf-service-register
```

#### 2. Configure the services to publish

[](#2-configure-the-services-to-publish)

Edit `config/autoload/server.php` and add the `publish` option to the service you want to publish. just like this

```
