Download the PHP package codex-team/hawk.laravel without Composer
On this page you can find all versions of the php package codex-team/hawk.laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package hawk.laravel
Hawk Laravel
Laravel error catcher for Hawk.so.
Setup
Requirements
- PHP 7.2+
- Laravel 11.x+
Features
- 🦅 Automatic error catching
- 💎 Manual exception and message sending
- 🙂 Attaching user information
- 📦 Attaching additional context
- 🛡️ Sensitive data filtering
- 🌟 BeforeSend hook for event preprocessing
- 🗂️ Breadcrumbs collection (routes, queries, jobs, logs)
- ⚡ Laravel 11+ support
Configuration
Enable exception capturing
Update your bootstrap/app.php:
Register the Service Provider
Add the Hawk service provider to your config/app.php or bootstrap/providers.php:
Publish configuration
Run:
This will create config/hawk.php.
Then add your token in .env:
Usage
Adding User & Context Information
Sending Exceptions Manually
Inject \HawkBundle\Catcher and call sendException:
Sending Custom Messages
BeforeSend Hook
If you want to modify or filter errors before they are sent to Hawk,
implement the BeforeSendServiceInterface.
Example:
Register it in config/hawk.php:
Issues & Contributions
- Found a bug? Open an issue
- Want to improve the package? Pull requests are welcome!
Useful Links
- Repository: github.com/codex-team/hawk.laravel
- Composer Package: packagist.org/packages/codex-team/hawk.laravel
- CodeX Team: codex.so
License
This project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0). See the LICENSE file for the full text.
All versions of hawk.laravel with dependencies
codex-team/hawk.php Version ^2.2.10
guzzlehttp/guzzle Version ^6.0 || ^7.0
guzzlehttp/psr7 Version ^2.1.1
illuminate/support Version ^6.0 | ^7.0 | ^8.0 | ^9.0 | ^10.0 | ^11.0 | ^12.0