Download the PHP package chisnall/squiz without Composer

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

Squiz Debugger for Laravel

squiz : colloquial (originally Australian and New Zealand).
A look; a glance. Frequently (and in earliest use) in to have (also take) a squiz (at): to have a look (at someone or something).

Squiz is a debugger for Laravel.

It allows you to make use of the Symfony VarDumper component output on a single screen dedicated for debugging and for observing your application.

It works with Laravel versions 9 to 13.
It has not been tested on previous versions.

screenshot

Installation

Install with composer:

Default URL

The debugging page will default to this route in your application:

/squiz

This can be customised. See Custom Settings below.

Usage

Helper function

To add an entry to the log use the helper function:

Providing a string or variable.

Multiple arguments are supported:

Any variable is supported: scalars, arrays, objects and resources. Even methods in objects.

This will render the output in the same style as the dump() function in VarDumper.

You can use the helper function anywhere in your code. Even in unit testing, feature testing and blade views.

Log and terminate

If you want to terminate code execution immediately after logging, use this helper function:

That is similar to the dd() function in VarDumper.

Comments

An optional comment can also be supplied. Prefix with comment:

Blade directives

These are provided:

Backtrace alias

A backtrace alias is provided for convenience: __backtrace__

Example:

Production environments

If a production environment is detected, the helper functions do not log anything. They simply return.
So it is safe to leave helper function code in your project.

Log Entries

When the helper function is called, a new entry will be displayed on the debugging page.

Each entry shows:

  1. date and time
  2. the name of the script the helper function was called from
  3. the line number the helper function was called from
  4. an optional comment
  5. the output of VarDumper

Custom Settings

Put these in your .env file to customise settings.

The above values are the defaults if they are not specified in the .env file.

SQUIZ_TOKEN optional token to protect the debugging page route and API routes. Ignored on local environments.

SQUIZ_POLLING_INTERVAL the polling interval in ms.

SQUIZ_STORAGE_PATH the Laravel storage path. [1]

SQUIZ_ROUTE_PATH the route path for the debugging page and API routes.

SQUIZ_TITLE title for the debugging page.

SQUIZ_HEADING heading text for the debugging page.

[1] set this if you are running unit or feature tests and you are using a temporary storage path while testing, yet still want to use the squiz() helper function in your tests.

Token

If a token is specified in your .env file, specify the token as follows when visiting the debugging page:

If a token is specified, it is not required for local environments. It will only be used for staging and production environments.


All versions of squiz with dependencies

PHP Build Version
Package Version
Requires laravel/framework Version ^9 || ^10 || ^11 || ^12 || ^13
php Version ^8.0
symfony/var-dumper Version ^6 || ^7 || ^8
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 chisnall/squiz contains the following files

Loading the files please wait ...