Download the PHP package byiftikhar/telescope-inspector without Composer

On this page you can find all versions of the php package byiftikhar/telescope-inspector. 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 telescope-inspector

Latest version on Packagist Total downloads Tests PHP version Laravel 12 and 13 Laravel Telescope 5.x

Search, filter and prune Laravel Telescope entries without the page freezing on big requests.

A fast, searchable viewer for Laravel Telescope, the debug assistant for the Laravel framework.

What is Telescope Inspector?

Laravel Telescope records every request, query, job, exception and log in your Laravel app. Its own screen, however, loads 50 entries at a time with their full content (request payload, headers, session, response). One heavy request on a page can make that page several MB, and the Telescope requests page stops loading. It also cannot search by route, status, job or user.

Telescope Inspector adds one page, /telescope-inspector, that reads Telescope's own API in small batches, keeps only a short summary of each entry, and lets you search and filter everything Telescope records. It adds no tables, migrations or jobs, and changes nothing in how Telescope records.

Features

Requirements

Installation

Install it the same way Telescope is installed in your project:

The service provider is discovered automatically. Open https://your-app.test/telescope-inspector.

Updating

Access

The page uses the same middleware as Telescope (config('telescope.middleware')), so whoever can open /telescope can open the inspector, and nobody else. Outside the local environment that is decided by the viewTelescope gate in app/Providers/TelescopeServiceProvider.php. Make sure that gate does not simply return true, or every signed-in user can read every recorded request.

Pruning

The Prune button calls two endpoints the package adds next to the page (with the same middleware): POST {path}/prune/preview (how many entries match) and POST {path}/prune (delete them). It deletes from Telescope's telescope_entries table in chunks, the same way php artisan telescope:prune does, and the entries' tags go with them. Every prune is written to the application log ("Telescope Inspector: entries pruned", with the user id, range, types and count).

Configuration

Optional. Publish the config file only if you need to change something:

Key Env Default Meaning
enabled TELESCOPE_INSPECTOR_ENABLED true Register the page at all.
path TELESCOPE_INSPECTOR_PATH telescope-inspector URL of the page.
middleware null null reuses Telescope's middleware; or give your own array.
default_take 25 Entries fetched per request (10, 25 or 50).
match_target 50 Matches collected per Search / "Keep searching" click.
prune.enabled TELESCOPE_INSPECTOR_PRUNE true Show the Prune button and register its endpoints.
prune.chunk_size 1000 Rows deleted per statement while pruning.

Telescope's own path and domain settings are picked up automatically.

How it stays fast, and its limits

FAQ

Why does the Laravel Telescope requests page not load, or load very slowly? Telescope's list endpoint returns the full content of 50 entries at once. A few requests with large payloads or responses make that response several MB. Telescope Inspector asks for 10 to 50 entries at a time and only keeps a summary of each, so the list stays fast.

How do I search Laravel Telescope entries by URL, route or controller? Type any part of the URI or controller in the Search box. All words must match, so orders store finds POST /api/orders handled by OrderController@store.

How do I filter Telescope requests by user, status code or duration? Use the User (name, email or numeric id), Status (2xx to 5xx) and Min ms filters on the Requests tab.

How do I find slow queries or N+1 queries for one request? Open the request. The Queries tab underneath shows total query time, slow queries and repeated statements.

How do I prune Laravel Telescope entries by date? Click Prune, pick a quick range or a From/To date, optionally choose entry types, check the count and confirm. Pruning by schedule is still best done with php artisan telescope:prune.

Does it replace Laravel Telescope? No. Telescope keeps recording exactly as before; this is a faster, searchable screen on top of its data. The "Open in Telescope" link is always one click away.

Front-end assets

Bootstrap 5.3.3, Remix Icon 4.5.0, bootstrap-select 1.14.0-beta3, flatpickr 4.6.13 (plus its dark theme), SweetAlert2 11.22.5 and jQuery 3.7.1 (plus the Inter and JetBrains Mono fonts from Google Fonts) are loaded from jsDelivr / code.jquery.com with exact versions and SRI hashes. Nothing needs to be published or built. The viewer's browser needs internet access.

All recorded data is rendered as text (textContent), never as HTML.

Development

Tests run on Orchestra Testbench against Laravel 12 and 13 on PHP 8.2 to 8.4 (see .github/workflows/tests.yml).

All script partials run inside one function scope opened in inspector.blade.php, so they share helpers without globals. Each CSS/JS partial is wrapped in @verbatim so Blade never touches {{ }} or @ inside it; keep that when adding a partial.

Issue reporting

Found a bug or have an idea? Open an issue. Please include your Laravel, Telescope and PHP versions.

Contributing

Pull requests are welcome. Please add or update tests for your change and run composer test before opening the PR. See CHANGELOG.md for what changed in each release.

Credits

License

Telescope Inspector is open-source software licensed under the MIT license.


All versions of telescope-inspector with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^11.0|^12.0|^13.0
laravel/telescope Version ^5.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 byiftikhar/telescope-inspector contains the following files

Loading the files please wait ...