PHPackages                             xtwoend/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. xtwoend/hyperf-tinker

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

xtwoend/hyperf-tinker
=====================

A Powerful REPL for the Hyperf framework.

1.0.2(3y ago)020MITPHPPHP &gt;=7.2|^8.0

Since Sep 19Pushed 3y agoCompare

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

READMEChangelogDependencies (7)Versions (4)Used By (0)

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

[](#hyperf-tinker)

[![Latest Stable Version](https://camo.githubusercontent.com/37664102e2a8edcd59aaf37733b5a43ec6583788a5abda0427448e6959dfd33a/68747470733a2f2f706f7365722e707567782e6f72672f676f6b7572652f6879706572662d74696e6b65722f76657273696f6e2e706e67)](https://packagist.org/packages/gokure/hyperf-tinker)[![Total Downloads](https://camo.githubusercontent.com/b0cda8a544af8d1dc503f8916be5c153071415ebfabc976fdb329156fbf089b9/68747470733a2f2f706f7365722e707567782e6f72672f676f6b7572652f6879706572662d74696e6b65722f642f746f74616c2e706e67)](https://packagist.org/packages/gokure/hyperf-tinker)[![GitHub license](https://camo.githubusercontent.com/c991d2deb5f428f5cee96a1c33b4a50dda46c844bf85a60c673508de41b17eec/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f676f6b7572652f6879706572662d74696e6b6572)](https://github.com/gokure/hyperf-tinker)

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,
     ],
   }
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 62.5% 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

3

Last Release

1330d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/707e862eb8fddef4791639520cae4efdc10855859dcf3aa74c1bafa46c5bb575?d=identicon)[xtwoend](/maintainers/xtwoend)

---

Top Contributors

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

---

Tags

REPLpsyshTinkerhyperf

### Embed Badge

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

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

###  Alternatives

[laravel/tinker

Powerful REPL for the Laravel framework.

7.4k423.8M1.8k](/packages/laravel-tinker)[gokure/hyperf-tinker

A Powerful REPL for the Hyperf framework.

1521.6k](/packages/gokure-hyperf-tinker)[intonate/tinker-zero

Use laravel/tinker on your laravel-zero applications

4860.9k16](/packages/intonate-tinker-zero)[leearvin/hyperf-tinker

Powerful REPL for the Hyperf framework.

106.5k](/packages/leearvin-hyperf-tinker)[ramsey/composer-repl

A REPL for PHP built into Composer.

105111.1k24](/packages/ramsey-composer-repl)

PHPackages © 2026

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