Download the PHP package codex-team/hawk.php without Composer
On this page you can find all versions of the php package codex-team/hawk.php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download codex-team/hawk.php
More information about codex-team/hawk.php
Files in codex-team/hawk.php
Package hawk.php
Short Description PHP errors Catcher module for Hawk.so
License MIT
Informations about the package hawk.php
Hawk PHP
PHP errors Catcher for Hawk.so.
Setup
-
Register an account, create a Project and get an Integration Token.
- Install SDK via composer to install the Catcher
Catcher provides support for PHP 7.2 or later
Configuration
Passing custom Transport
The default transport requires the ext-curl PHP extension.
If ext-curl is unavailable, provide a custom transport via the transport option.
You can also provide your own transport by implementing TransportInterface.
Custom transports own their endpoint and timeout configuration, so the url and timeout options are used only by the default transport.
For example, install a PHP-version-compatible Guzzle release in your application and wrap it with a custom transport:
Passing User and Context
After initialization you can set user or context for any event that will be send to Hawk
Send events and exceptions manually
Use sendException method to send any caught exception
Use sendEvent method to send any data (logs, notices or something else)
Filtering sensitive information
Use the beforeSend hook to filter any data you don't want to send to Hawk. Use setters to clear any property.
Issues and improvements
Feel free to ask questions or improve the project.
Links
Repository: https://github.com/codex-team/hawk.php
Report a bug: https://github.com/codex-team/hawk.php/issues
Composer Package: https://packagist.org/packages/codex-team/hawk.php
CodeX Team: https://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.php with dependencies
php Version ^7.2 || ^8.0
jean85/pretty-package-versions Version ^1.5 || ^2.0