Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 3, 2024 via composer

symfony/error-handler v4.4.30

Provides tools to manage errors and ease debugging PHP code
Package summary
Share
1
issue
1
high severity
meta
1
1
license
6
MIT
Package created
18 Jul 2019
Version published
27 Aug 2021
Maintainers
1
Total deps
6
Direct deps
3
License
MIT

Issues

1

1 high severity issue

high
via: symfony/debug@v4.4.44
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
6 Packages, Including:
psr/log@3.0.0
symfony/debug@v4.4.44
symfony/error-handler@v4.4.30
symfony/polyfill-mbstring@v1.29.0
symfony/polyfill-php80@v1.29.0
symfony/var-dumper@v5.4.39
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

3
All Dependencies CSV
β“˜ This is a list of symfony/error-handler 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
psr/log3.0.06.77 kBMIT
prod
symfony/debugv4.4.4439.55 kBMIT
prod
1
symfony/var-dumperv5.4.39-MIT
prod

Visualizations

Frequently Asked Questions

What does symfony/error-handler do?

The Symfony/error-handler is a robust tool designed for managing errors and simplifying the debugging process in your PHP code. It's an essential part of the Symfony ecosystem, renowned for its ability to streamline error handling and enhance your overall coding efficiency.

How do you use symfony/error-handler?

To use the Symfony/error-handler, you'll need to follow a few straightforward steps. Kick off by installing the package via composer, using the command: $ composer require symfony/error-handler. Once installed, you can incorporate it into your PHP code as shown below:

use Symfony\Component\ErrorHandler\Debug;
use Symfony\Component\ErrorHandler\ErrorHandler;
use Symfony\Component\ErrorHandler\DebugClassLoader;

Debug::enable();

// You can also enable only one feature if preferred
//ErrorHandler::register();
//DebugClassLoader::enable();

// To use a custom generic template when debug is not enabled
// HtmlErrorRenderer::setTemplate('/path/to/custom/error.html.php');

$data = ErrorHandler::call(static function () use ($filename, $datetimeFormat) {
    // Any failed code executed inside this anonymous function throws a PHP exception
    // even if the code uses the '@' PHP silence operator
    $data = json_decode(file_get_contents($filename), true);
    $data['read_at'] = date($datetimeFormat);
    file_put_contents($filename, json_encode($data));

    return $data;
});

Where are the symfony/error-handler docs?

The Symfony/error-handler documentation can be found within the Symfony's main repository. However, specifics about its usage, issues and contributions can be found at https://symfony.com/doc/current/contributing/index.html for contributions, https://github.com/symfony/symfony/issues for reporting issues, and https://github.com/symfony/symfony/pulls for sending Pull Requests. Your contributions and reports about any encountered issues are highly encouraged, as they contribute to steady improvements of the Symfony/error-handler.