Download the PHP package net-os/laravel-netos-debug without Composer

On this page you can find all versions of the php package net-os/laravel-netos-debug. 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-netos-debug

NetOS Debug — Laravel integration

Ships the full Laravel Debugbar payload for every finished request to the NetOS Debug desktop app, which renders it as a debugbar clone in its Requests view.

Not on Packagist; install it straight from the repository.

Installation

Add the repository, then require it as a dev dependency:

That is the whole setup. The package registers its own middleware and applies the Debugbar options it needs; there is nothing to publish and nothing to wire up by hand.

It ships requests only in local by default, and reads the NetOS Debug host and port from your existing ray.php — including remote_path / local_path, so paths from a Docker container stay clickable on the host.

Configuration

Publish the config only if you want to change something:

Key Default Meaning
enabled null null defers to environments; an explicit value wins either way
environments ['local'] Where requests are shipped when enabled is null
except debugbar, telescope, horizon, ignition Paths never shipped, matched with Request::is()
max_payload_bytes 512 KB Larger payloads are trimmed before sending
configure_debugbar true Whether the package applies the Debugbar options below
collections.path openapi Where saved API requests are written, relative to the app root

Debugbar options this package applies

Option Set to Why
collectors.route true Route name, action and middleware
collectors.cache true Cache hits, misses, writes and forgets
collectors.auth true The authenticated user
options.db.with_params false The view wants raw SQL with ? plus separate bindings
options.db.backtrace true Per-query backtrace
options.db.timeline true Queries on the shared timeline

with_params is the one worth knowing about. Debugbar defaults to substituting bindings into the SQL string; the Requests view expects placeholders alongside a separate bindings list so it can toggle between them and rebuild a copyable statement. Left on, that toggle silently does nothing.

These are applied while registering, not while booting: Debugbar reads them during its own boot(), and the boot order of auto-discovered providers is not guaranteed.

Set configure_debugbar to false to own these yourself.

How it works

The middleware does its work in terminate(), after the response has been sent, so neither shaping nor an unreachable desktop app adds latency. Debugbar has normally already collected by then, on RequestHandled; getData() collects lazily if it has not. Everything is wrapped in rescue() — a debug tool must never be able to fail a request.

It is deliberately not wrapped in defer(). Laravel's InvokeDeferredCallbacks is prepended to the middleware stack, so it terminates before this middleware does, and a callback queued here would simply be dropped.

Known gaps

Three fields cannot be filled from Debugbar 4 and are sent as null or degraded:

When Debugbar filters out every frame of a query through its own exclude_paths, that query's source comes back empty.

Development

There is no test suite; verification is a real request against a running app with NetOS Debug open.

Saved API requests

The desktop app's API tab is a client for this application: you pick a route, fill it in, send it, and read the response. A request worth keeping is saved through this package, into this repository:

One file per collection, under collections.path — openapi/desks.yaml by default — as an OpenAPI 3.1 document:

OpenAPI because these files are meant to be read in a pull request and opened by something other than one app; YAML because a changed header should be one changed line in a diff. What OpenAPI has no field for — which body editor was open, how the request authenticates — lives under x-netos-debug, which any other reader will ignore.

Nothing secret is written. A value that resolves at send time is stored as the reference, {{ token }}, not as what it stands for; the values live in the desktop app's own storage. The authentication mode is saved, but never who was impersonated and never a token.

Saving the same verb and path twice replaces that operation rather than adding a near-duplicate, and emptying a collection deletes its file instead of leaving an openapi: 3.1.0 with nothing under it.


All versions of laravel-netos-debug with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
barryvdh/laravel-debugbar Version ^4.4
illuminate/contracts Version ^12.0||^13.0
illuminate/http Version ^12.0||^13.0
illuminate/support Version ^12.0||^13.0
spatie/laravel-package-tools Version ^1.16
spatie/laravel-ray Version ^1.40
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 net-os/laravel-netos-debug contains the following files

Loading the files please wait ...