PHPackages                             hyperf/jet - 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. [API Development](/categories/api)
4. /
5. hyperf/jet

ActiveLibrary[API Development](/categories/api)

hyperf/jet
==========

Jet is a unification model RPC Client, built-in JSON RPC protocol, available to running in ALL PHP environments, including PHP-FPM and Swoole/Hyperf environments.

v0.6.1(2y ago)6119.1k↓92.6%6[1 issues](https://github.com/hyperf/jet/issues)MITPHPPHP &gt;=8.0

Since Aug 9Pushed 2y ago4 watchersCompare

[ Source](https://github.com/hyperf/jet)[ Packagist](https://packagist.org/packages/hyperf/jet)[ Fund](https://hyperf.wiki/#/zh-cn/donate)[ Fund](https://opencollective.com/hyperf)[ RSS](/packages/hyperf-jet/feed)WikiDiscussions master Synced today

READMEChangelog (9)Dependencies (10)Versions (11)Used By (0)

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

[![Hyperf Logo](https://camo.githubusercontent.com/b0ca8a2d9e22ee86b7c013add238e25e1a807dd65a7e33923dd6cefcdbc72b7e/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f6879706572662f6879706572662f646f63732f6c6f676f2e706e67)](https://hyperf.io)

 [![Stable Version](https://camo.githubusercontent.com/4330c318920e00b539ef25a58cb25c490493b4511b05a4a04613f4c934f1bae8/68747470733a2f2f706f7365722e707567782e6f72672f6879706572662f6a65742f762f737461626c65)](https://github.com/hyperf/jet/releases) [![PHPUnit for Jet](https://github.com/hyperf/jet/workflows/PHPUnit%20for%20Jet/badge.svg)](https://github.com/hyperf/jet/actions) [![Total Downloads](https://camo.githubusercontent.com/9b4d366183d17bb93d6592e2527c5dc0ae4854084422e1bf38fac75bd72e0e23/68747470733a2f2f706f7365722e707567782e6f72672f6879706572662f6a65742f646f776e6c6f616473)](https://packagist.org/packages/hyperf/jet) [![Monthly Downloads](https://camo.githubusercontent.com/09c0a9e5c04c135b550afd30d39f5b0560818533fdad93eb17e35cd1f681eaf6/68747470733a2f2f706f7365722e707567782e6f72672f6879706572662f6a65742f642f6d6f6e74686c79)](https://packagist.org/packages/hyperf/jet) [![Php Version](https://camo.githubusercontent.com/b89e839d5d52995202e3f77713d3272afdfffacf314e3562e9a20a1d070b6ff7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d2533453d372e322d627269676874677265656e2e7376673f6d61784167653d32353932303030)](https://www.php.net) [![Hyperf Jet License](https://camo.githubusercontent.com/b956c445de507545299d59703a62b341406c18b4434a7056330390cc8c9aba4a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6879706572662f6a65742e7376673f6d61784167653d32353932303030)](https://github.com/hyperf/jet/blob/master/LICENSE)

Jet, by Hyperf
==============

[](#jet-by-hyperf)

Jet is a unification model RPC Client, built-in JSONRPC protocol, available to running in ALL PHP environments, including PHP-FPM and Swoole/Hyperf environments.

> Also will built-in gRPC and Tars protocols in future.

Installation
============

[](#installation)

```
composer require hyperf/jet
```

Quickstart
==========

[](#quickstart)

Register protocol
-----------------

[](#register-protocol)

> Register the protocol is not necessary, but you could manage the protocols more easily by using ProtocolManager.

You cloud register any protocol by `Hyperf\Jet\ProtocolManager`, per protocol basically including Transporter, Packer, DataFormatter and PathGenerator, you could register a JSONRPC protocol like below:

```
