Download the PHP package rebing/timber-laravel without Composer
On this page you can find all versions of the php package rebing/timber-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package timber-laravel
Timber
A Laravel 5+ wrapper for the Timber Logger service. Use it to log HTTP requests or custom events to Timber.
Installation
1. Require the package via Composer
2. Laravel 5.5+ will autodiscover the package, for older versions add the following service provider
and alias
in your config/app.php
file.
3. Publish the configuration file
4. Review the configuration file
and add your Timber API key to .env
5. (Optional) Log incoming requests
Check HTTP Requests
6. (Optional) Log all messages
Check Log all messages
Usage
HTTP Requests
To log HTTP requests use the Rebing\Timber\Middleware\LogRequest::class
middleware.
This will log all incoming requests and responses, including context and Auth data.
For example, you can add it to Kernel.php
:
Log all messages
This requires Laravel 5.6+
You can leverage Laravel's Logger
facade to log all messages to Timber.
Add a new channel to config/logging.php
And update your .env with LOG_CHANNEL=timber
You can then easily log custom data by providing a message, type and data. For example:
Custom Events
You can also log custom data. Context will be added automatically.
Disable logging
You can disable sending logs to Timber by updating your .env file with
Testing
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Mikk Mihkel Nurges
- All Contributors
License
MIT. Please see the license file for more information.
All versions of timber-laravel with dependencies
illuminate/support Version 5.5.*|5.6.*|5.7.*|5.8.*|^6.0|^7.0
symfony/psr-http-message-bridge Version ^1.1|^2.0
guzzlehttp/guzzle Version ^7.0