PHPackages                             xuchunyang/think-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. xuchunyang/think-tinker

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

xuchunyang/think-tinker
=======================

Tinker REPL for ThinkPHP 8 powered by PsySH.

v0.1.1(4w ago)05MITPHPPHP &gt;=8.0

Since May 11Pushed 4w agoCompare

[ Source](https://github.com/xuchunyang/think-tinker)[ Packagist](https://packagist.org/packages/xuchunyang/think-tinker)[ Docs](https://github.com/xuchunyang/think-tinker)[ RSS](/packages/xuchunyang-think-tinker/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

Think Tinker
============

[](#think-tinker)

[![Latest Stable Version](https://camo.githubusercontent.com/2ce9b21a0cacd4d6a42c0cf8aa50f4f433fc35738cb1201b7f0d9d69cd2cf308/68747470733a2f2f706f7365722e707567782e6f72672f78756368756e79616e672f7468696e6b2d74696e6b65722f762f737461626c65)](https://packagist.org/packages/xuchunyang/think-tinker)[![Total Downloads](https://camo.githubusercontent.com/f3acf5189420370a904213966dbd4194269e7e39d200aa46afd40cf07ed8dca6/68747470733a2f2f706f7365722e707567782e6f72672f78756368756e79616e672f7468696e6b2d74696e6b65722f646f776e6c6f616473)](https://packagist.org/packages/xuchunyang/think-tinker)[![License](https://camo.githubusercontent.com/8df14d264c28a010d21399f74a476133f3d5fa038b8bd3bdeff59028ead69d73/68747470733a2f2f706f7365722e707567782e6f72672f78756368756e79616e672f7468696e6b2d74696e6b65722f6c6963656e7365)](https://packagist.org/packages/xuchunyang/think-tinker)

Tinker REPL for ThinkPHP 8 powered by PsySH.

Features
--------

[](#features)

- Laravel Tinker-style class aliasing for ThinkPHP facades and `app/model` classes.
- First-use alias messages, for example `[!] Aliasing 'User' to 'app\model\User' for this Tinker session.`
- PsySH powered interactive shell.
- ThinkPHP collection dumping with a 100-item display limit.
- `--execute` support for one-off snippets.
- Optional include files before shell startup.

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

[](#installation)

```
composer require --dev xuchunyang/think-tinker
php think service:discover
php think vendor:publish
```

Usage
-----

[](#usage)

```
php think tinker
php think tinker --execute="User::count()"
```

Inside Tinker:

```
User::limit(1)->select()
Db::table('user')->where('id', 1)->find()
```

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance94

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

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

Total

2

Last Release

29d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6e733e29ff088f888ddc8423dd7054752c386dd02a241e2bb9b7e571143a053e?d=identicon)[xuchunyang](/maintainers/xuchunyang)

---

Top Contributors

[![xuchunyang](https://avatars.githubusercontent.com/u/4550353?v=4)](https://github.com/xuchunyang "xuchunyang (2 commits)")

---

Tags

composer-packagepsyshreplthinkphpthinkphp8tinkerREPLpsyshTinkerthinkphpthinkphp8

### Embed Badge

![Health badge](/badges/xuchunyang-think-tinker/health.svg)

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

###  Alternatives

[laravel/tinker

Powerful REPL for the Laravel framework.

7.4k445.0M2.2k](/packages/laravel-tinker)[pantheon-systems/terminus

A command line interface for Pantheon

3391.5M17](/packages/pantheon-systems-terminus)[intonate/tinker-zero

Use laravel/tinker on your laravel-zero applications

4965.2k19](/packages/intonate-tinker-zero)[gokure/hyperf-tinker

A Powerful REPL for the Hyperf framework.

1522.7k](/packages/gokure-hyperf-tinker)[ramsey/composer-repl

A REPL for PHP built into Composer.

105115.7k25](/packages/ramsey-composer-repl)[yzh52521/schedule

task schedule,schedule,thinkphp schedule,任务调度

3612.2k1](/packages/yzh52521-schedule)

PHPackages © 2026

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