Download the PHP package jaydeep/laravel-time-machine without Composer

On this page you can find all versions of the php package jaydeep/laravel-time-machine. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-time-machine

⏱ Laravel Time Machine — Request Lifecycle Profiler & Performance Debugger for Laravel

Profile, debug and visualize every Laravel request — from framework boot to response — with a millisecond-accurate Gantt timeline, full SQL query profiling and a beautiful zero-config dashboard.

Latest Version on Packagist MadeWithLaravel.com shield Total Downloads PHP Version Laravel 8 to 13

Laravel Time Machine is a lightweight, drop-in Laravel performance profiler and request debugger. It answers one simple question that every developer asks — "Where did all the time go in this request?" — by breaking down the complete request lifecycle into a clear, interactive timeline. Find slow queries, N+1 problems, heavy middleware and sluggish controllers in seconds, without adding a single line of setup code.

If this package saves you some debugging time, kindly ⭐ star the repository — it really helps others discover it too!

Request list — all your recent requests with duration, query count, memory and status, at one glance:

Request detail — a Gantt-style lifecycle timeline along with every database query:


📑 Table of Contents


🤔 Why Laravel Time Machine?

Debugging slow Laravel requests usually means guessing, adding random microtime() calls, or setting up a heavy monitoring stack. Laravel Time Machine gives you the full picture instantly:

Perfect for: optimizing slow endpoints, hunting N+1 queries, understanding a new codebase, teaching how Laravel handles a request, and profiling APIs during development.

✨ Features

📦 Installation

Require the package via Composer:

The service provider and the TimeMachine facade get auto-discovered, so no manual registration is needed. If you want to tune the settings, publish the config file:

That's it. You are good to go. 🎉

🚀 Usage

By default, Time Machine remains active whenever APP_DEBUG=true. Just browse your app as usual and then open the dashboard:

Every non-ignored HTTP request is recorded automatically — you don't have to do anything extra. Click on any request to see its full lifecycle timeline, queries and marks.

Filtering requests

Once you have a few hundred profiles recorded, scrolling through them is no fun. The dashboard therefore ships with a filter bar right above the request list:

Filter Accepts Example
Method Any one of GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS POST
URL pattern A URI, with * wildcards allowed /api/users/*
Status An HTTP status code between 100 and 599 500
Duration (ms) >= or <= together with a value in milliseconds >= 500

A few things worth knowing:

Hit Reset filters to clear everything and get back to the full list.

Instrument your own code

Want to profile a specific portion of your code? The same can be done easily using the facade:

⚙️ Configuration

All the settings live in config/time-machine.php (env keys are given in brackets):

Key Default Purpose
enabled [TIME_MACHINE_ENABLED] follows APP_DEBUG Master on/off switch
dashboard.path [TIME_MACHINE_PATH] time-machine Dashboard URI prefix
dashboard.middleware ['web'] Guards the dashboard (add auth in production)
dashboard.per_page [TIME_MACHINE_PER_PAGE] 15 Requests listed per page on the dashboard
storage.max_records [TIME_MACHINE_MAX_RECORDS] 100 Profiles retained (oldest ones are pruned)
storage.path storage/time-machine Where the profiles are written
collectors.queries true Capture DB queries
ignore_paths assets, telescope… Paths that are never profiled (wildcards allowed)
thresholds.slow_request / slow_query 500 / 50 ms Used for UI highlighting

Production tip: In case you enable it in production, lock down the dashboard with an auth middleware via dashboard.middleware. Otherwise your profiling data will be exposed to everyone, which we don't want.

🔍 How it works

Internally, Time Machine anchors the whole timeline to the start of the request — LARAVEL_START under PHP-FPM — and then records the phase boundaries from various framework hooks and events:

The queries are captured via the QueryExecuted event. After that, everything is flattened into millisecond offsets and stored as one JSON file per request. Simple and clean.

Octane, Swoole & other persistent workers

On a persistent runtime one PHP process serves many requests, so LARAVEL_START is the worker's boot time rather than the request's. Time Machine handles this for you:

Nothing to configure — and no need to add the recorder to Octane's flush config.

🆚 Time Machine vs Telescope vs Debugbar

Laravel Time Machine Laravel Telescope Laravel Debugbar
Full lifecycle Gantt timeline ✅ ❌ ❌
Zero config / no asset build ✅ ❌ ✅
Database (no DB tables needed) ✅ (JSON files) ❌ (needs migrations) ✅
Per-request query profiling ✅ ✅ ✅
Self-hosted & private ✅ ✅ ✅
Lightweight footprint ✅ Heavy Medium

Time Machine is intentionally focused: it does request lifecycle profiling extremely well, without the weight of a full monitoring suite.

❓ FAQ

Does it slow down my application? No. When disabled it records nothing and adds virtually zero overhead. It is off in production by default.

Do I need a database or migrations? Not at all. Profiles are stored as plain JSON files under storage/time-machine, so there is nothing to migrate.

Is it safe to run in production? Yes, but keep it disabled unless you are actively debugging, and always protect the dashboard with an auth middleware if you do enable it.

Can I search or filter the recorded requests? Yes. The dashboard has a filter bar for HTTP method, URL pattern (wildcards supported), status code and duration. The filters combine, they are reflected in the stat cards, and they stay applied while you paginate. See Filtering requests.

Does it work with Laravel Octane / RoadRunner / Swoole? Yes, from v1.1 onwards. Persistent workers need per-request state handling, which Time Machine does automatically — see Octane, Swoole & other persistent workers. If you are on v1.0 and see durations in the millions of milliseconds, upgrade.

Which Laravel and PHP versions are supported? Every Laravel version from 8 right up to the latest 13, on PHP 7.4 and 8.x. (Do note that Laravel 11+ needs PHP 8.2+ and Laravel 13 needs PHP 8.3+, as per Laravel's own requirements.)

✅ Requirements

🤝 Contributing

Contributions, bug reports and feature requests are most welcome! In case you face any issue or have some suggestion, kindly open an issue or send a pull request, and I will surely revert back.

If you find this package useful, please consider ⭐ starring the repo and sharing it with fellow Laravel developers — it goes a long way in helping the project grow.

🙏 Credits

📄 License

MIT © Jaydeep Gadhiya


Keywords: laravel profiler · laravel performance · laravel request lifecycle · laravel debugging · laravel query profiler · laravel timeline · laravel debug bar alternative · laravel telescope alternative · php performance profiling · slow query detection · n+1 query detection


All versions of laravel-time-machine with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
illuminate/support Version ^8.0|^9.0|^10.0|^11.0|^12.0|^13.0
illuminate/http Version ^8.0|^9.0|^10.0|^11.0|^12.0|^13.0
illuminate/database Version ^8.0|^9.0|^10.0|^11.0|^12.0|^13.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package jaydeep/laravel-time-machine contains the following files

Loading the files please wait ...