PHPackages                             drahil/tailor - 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. drahil/tailor

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

drahil/tailor
=============

Enhanced Laravel Tinker with session management, code export, and smart autocomplete

v0.2.0(7mo ago)16MITPHPPHP ^8.2

Since Oct 19Pushed 5mo agoCompare

[ Source](https://github.com/drahil/tailor)[ Packagist](https://packagist.org/packages/drahil/tailor)[ RSS](/packages/drahil-tailor/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (6)Versions (5)Used By (0)

Tailor
======

[](#tailor)

Enhanced Laravel Tinker with session management and isolated history.

[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)[![PHP Version](https://camo.githubusercontent.com/962aced9b09d89716dbebf186ff899754a096ff1068b6b7988675c2d9fab9331/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545382e322d626c75652e737667)](https://php.net)[![Tests](https://camo.githubusercontent.com/3ab4882a1b7d64e5eb5168ad0b0b9cdfd53f59f114ee5f727958504214a5789c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f74657374732d70617373696e672d627269676874677265656e2e737667)](tests)[![PHPStan](https://camo.githubusercontent.com/2761aeebb3945f1ca4e4b0f156a71a3558c10dd6e3da83b1feb44f4d33013329/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c253230362d627269676874677265656e2e737667)](phpstan.neon)

What is Tailor?
---------------

[](#what-is-tailor)

Tailor extends Laravel Tinker with powerful session management, allowing you to save your REPL sessions, execute them later, and maintain isolated command history per project.

Features
--------

[](#features)

- **Session Management** - Save, load, view, and execute your Tinker sessions
- **Session Metadata** - Add descriptions and tags to organize your sessions
- **Isolated History** - Per-project command history that doesn't pollute your global PsySH history
- **Session Tracking** - Track commands and variables during your REPL session
- **Session Execution** - Replay saved sessions to reproduce your work

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

[](#installation)

```
composer require --dev drahil/tailor
```

Usage
-----

[](#usage)

Start Tailor:

```
php artisan tailor
```

### Session Commands

[](#session-commands)

**Save a session:**

```
session:save my-work                          # Save current session
session:save my-work -d "API testing"         # Save with description
session:save my-work -t api -t testing        # Save with tags
session:save my-work --force                  # Overwrite existing session
```

**List sessions:**

```
session:list                                  # List all saved sessions
sessions                                      # Alias for session:list
```

**View session details:**

```
session:view my-work                          # View session metadata and commands
view my-work                                  # Alias for session:view
```

**Execute a session:**

```
session:execute my-work                       # Run all commands from a session
exec my-work                                  # Alias for session:execute
```

**Delete a session:**

```
session:delete my-work                        # Delete a session (with confirmation)
session:delete my-work --force                # Delete without confirmation
delete my-work -f                             # Short flag version
```

Configuration
-------------

[](#configuration)

Tailor uses sensible defaults for session storage. Sessions are stored in `storage/tailor/sessions` by default.

You can customize storage paths by publishing the configuration file:

```
php artisan vendor:publish --tag=tailor-config
```

Then edit `config/tailor.php` to customize storage paths and other settings.

Requirements
------------

[](#requirements)

- PHP 8.2 or higher
- Symfony Console ^7.3
- PsySH ^0.12.12

Development
-----------

[](#development)

Run tests:

```
composer test
```

Run static analysis:

```
composer phpstan
```

Run all checks:

```
composer check
```

License
-------

[](#license)

MIT License. See [LICENSE](LICENSE) for details.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance69

Regular maintenance activity

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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

212d ago

### Community

Maintainers

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

---

Top Contributors

[![drahil](https://avatars.githubusercontent.com/u/74052766?v=4)](https://github.com/drahil "drahil (14 commits)")

---

Tags

laravelREPLpsyshTinkerdevelopmentsession

###  Code Quality

TestsPest

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/drahil-tailor/health.svg)

```
[![Health](https://phpackages.com/badges/drahil-tailor/health.svg)](https://phpackages.com/packages/drahil-tailor)
```

###  Alternatives

[laravel/tinker

Powerful REPL for the Laravel framework.

7.4k423.8M1.8k](/packages/laravel-tinker)[psy/psysh

An interactive shell for modern PHP.

9.8k545.6M719](/packages/psy-psysh)[spatie/laravel-web-tinker

Artisan Tinker in your browser

1.2k3.8M6](/packages/spatie-laravel-web-tinker)[intonate/tinker-zero

Use laravel/tinker on your laravel-zero applications

4860.9k16](/packages/intonate-tinker-zero)[ramsey/composer-repl

A REPL for PHP built into Composer.

105111.1k24](/packages/ramsey-composer-repl)[civicrm/cv

CLI tool for CiviCRM

4219.8k](/packages/civicrm-cv)

PHPackages © 2026

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