PHPackages                             gokure/hyperf-tinker - 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. [CLI &amp; Console](/categories/cli)
4. /
5. gokure/hyperf-tinker

ActiveLibrary[CLI &amp; Console](/categories/cli)

gokure/hyperf-tinker
====================

A Powerful REPL for the Hyperf framework.

v3.2.0(3w ago)1523.3k↓41.7%4MITPHPPHP &gt;=8.2

Since Jan 24Pushed 3w ago2 watchersCompare

[ Source](https://github.com/gokure/hyperf-tinker)[ Packagist](https://packagist.org/packages/gokure/hyperf-tinker)[ RSS](/packages/gokure-hyperf-tinker/feed)WikiDiscussions main Synced yesterday

READMEChangelog (9)Dependencies (16)Versions (13)Used By (0)

Hyperf Tinker
=============

[](#hyperf-tinker)

[![Build Status](https://github.com/gokure/hyperf-tinker/actions/workflows/tests.yml/badge.svg)](https://github.com/gokure/hyperf-tinker/actions)[![Latest Stable Version](https://camo.githubusercontent.com/8c01891b7d43883eb87e3bf3aa85b891e35fe891bd50267f5c373aee86ffa102/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f676f6b7572652f6879706572662d74696e6b65722e737667)](https://packagist.org/packages/gokure/hyperf-tinker)[![Total Downloads](https://camo.githubusercontent.com/b3808a9f228f640cc92ad7e15a92676a36a458efa14b2ea68162ce527db309e4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f676f6b7572652f6879706572662d74696e6b65722e737667)](https://packagist.org/packages/gokure/hyperf-tinker)[![GitHub license](https://camo.githubusercontent.com/c991d2deb5f428f5cee96a1c33b4a50dda46c844bf85a60c673508de41b17eec/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f676f6b7572652f6879706572662d74696e6b6572)](LICENSE)

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

[](#installation)

```
composer require gokure/hyperf-tinker
```

Publish Config
--------------

[](#publish-config)

```
php bin/hyperf.php vendor:publish gokure/hyperf-tinker
```

Usage
-----

[](#usage)

```
php bin/hyperf.php tinker
```

Commnads
--------

[](#commnads)

- run command

```
>>> $a=1
=> 1
>>> $a
=> 1
>>> define('VERSION', 'v1.0.1')
=> true
>>> VERSION
=> "v1.0.1"
>>>
```

- The help command

```
>>> help
  help       Show a list of commands. Type `help [foo]` for information about [foo].      Aliases: ?
  ls         List local, instance or class variables, methods and constants.              Aliases: dir
  dump       Dump an object or primitive.
  doc        Read the documentation for an object, class, constant, method or property.   Aliases: rtfm, man
  show       Show the code for an object, class, constant, method or property.
  wtf        Show the backtrace of the most recent exception.                             Aliases: last-exception, wtf?
  whereami   Show where you are in the code.
  throw-up   Throw an exception or error out of the Psy Shell.
  timeit     Profiles with a timer.
  trace      Show the current call stack.
  buffer     Show (or clear) the contents of the code input buffer.                       Aliases: buf
  clear      Clear the Psy Shell screen.
  edit       Open an external editor. Afterwards, get produced code in input buffer.
  sudo       Evaluate PHP code, bypassing visibility restrictions.
  history    Show the Psy Shell history.                                                  Aliases: hist
  exit       End the current session and return to caller.                                Aliases: quit, q
```

- get hyperf env

```
>>> env("APP_NAME")
=> "skeleton"
>>>
```

- query db

```
>>> $user = App\Model\User::find(1)
=> App\Model\User {#84118
     id: 1,
     name: "Gang Wu",
     email: "gokure@gmail.com",
     created_at: "2019-03-12 19:07:08",
     updated_at: "2021-01-25 10:35:22"
   }
```

- class alias auto-load

```
>>> $user = User::find(1)
[!] Aliasing 'User' to 'App\Model\User' for this Tinker session.
=> App\Model\User {#84120
     id: 1,
     name: "Gang Wu",
     email: "gokure@gmail.com",
     created_at: "2019-03-12 19:07:08",
     updated_at: "2021-01-25 10:35:22"
   }
>>> collect([1, 2])
=> Hyperf\Utils\Collection {#84084
     all: [
       1,
       2,
     ],
   }
```

Supported Versions
------------------

[](#supported-versions)

VersionHyperf VersionPhp VersionStatus2.x^3.0&gt;=8.0Mainstream support1.x^1.0|^2.0&lt;=7.2|^8.0|^8.1Security fixes support

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance95

Actively maintained with recent releases

Popularity36

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity73

Established project with proven stability

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

Recently: every ~228 days

Total

12

Last Release

22d ago

Major Versions

v1.1.0 → v2.0.02023-01-06

v2.1.1 → 3.2.x-dev2026-06-11

PHP version history (3 changes)v1.0.0PHP &gt;=7.2

v2.0.0PHP &gt;=8.0

3.2.x-devPHP &gt;=8.2

### Community

Maintainers

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

---

Top Contributors

[![gokure](https://avatars.githubusercontent.com/u/88591?v=4)](https://github.com/gokure "gokure (18 commits)")

---

Tags

REPLpsyshTinkerhyperf

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/gokure-hyperf-tinker/health.svg)

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

###  Alternatives

[laravel/tinker

Powerful REPL for the Laravel framework.

7.4k456.0M2.3k](/packages/laravel-tinker)[intonate/tinker-zero

Use laravel/tinker on your laravel-zero applications

4967.3k20](/packages/intonate-tinker-zero)[leearvin/hyperf-tinker

Powerful REPL for the Hyperf framework.

116.6k](/packages/leearvin-hyperf-tinker)[hyperf/watcher

Hot reload watcher for Hyperf

17904.9k31](/packages/hyperf-watcher)

PHPackages © 2026

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