Download the PHP package farayaz/laravel-spy without Composer

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

Latest Version on Packagist Total Downloads License

Laravel Spy

Laravel Spy is a lightweight Laravel package designed to track and log outgoing HTTP requests made by your Laravel application.

This package is useful for debugging, monitoring, and auditing external API calls or HTTP requests, providing developers with a zero config, simple way to inspect request details such as URLs, methods, headers, and responses.

Features

Requirements

Installation

You can install the package via Composer:

The package uses Laravel's auto-discovery feature. After installation, the package is ready to use with its default configuration.

Usage

Once installed and configured, Laravel Spy automatically tracks all outgoing HTTP requests made using Laravel's Http facade or HTTP client. The package logs the following details for each request:

Example:

After installing laravel-spy and publishing the configuration, any usage of Laravel's HTTP client (for example, in your controllers or jobs) will be automatically logged.

Laravel Spy will log the details of this outgoing request to the http_logs table in your database.

Configuration

To customize Laravel Spy, publish the config file and edit config/spy.php.

Basic Configuration

Configure these via environment variables:

URL Exclusions

Exclude specific URLs from being logged via environment variable:

Data Obfuscation

Laravel Spy can obfuscate sensitive data in your logs. By default, it obfuscates password and token fields, but you can customize this via environment variables:

Excluding Content Types from Logging

You can configure Laravel Spy to exclude specific content types from being logged for both request and response bodies. This is useful for binary data, images, videos, or other content you do not want included in logs.

Automatic Log Retention

Configure how long logs should be retained before automatic cleanup via environment variable:

Dashboard

Laravel Spy includes a simple built-in dashboard at /spy with:

Cleaning up logs

Laravel Spy provides a spy:clean command to remove old HTTP logs:

Automated cleanup

You can schedule automatic cleanup in your Laravel scheduler:

Contributing

Contributions are welcome! To contribute to Laravel Spy:

Issues

If you encounter any issues or have feature requests, please open an issue on the GitHub repository. Provide as much detail as possible, including:

License

Laravel Spy is open-sourced software licensed under the MIT License.

Contact

For questions or support, reach out via the GitHub repository or open an issue.


All versions of laravel-spy with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
laravel/framework Version ^10.0|^11.0|^12.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 farayaz/laravel-spy contains the following files

Loading the files please wait ....