Download the PHP package pavlista/nette-error-handler without Composer

On this page you can find all versions of the php package pavlista/nette-error-handler. 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 nette-error-handler

pavlista/nette-error-handler

Jednoduché rozšíření Nette které zajištuje zobrazení názvu souboru se zalogovanou exception při zobrazení chyby 500 v produkčním režimu (viz. obrázek níže).

Nový vzhled chybové stránky 500

Požadavky

Instalace

Vlastní logger obalující Tracy logger

Modul potřebuje ke zjištění názvu souboru s chybou přístup ke standardnímu Tracy\Logger. Pokud aplikace v Tracy registruje vlastní Tracy\ILogger, který standardní logger obaluje (místo aby z něj dědil), zaregistrujte v bootstrapu funkci, která jej z něj získá:

Bez toho vrací ErrorHandler::getErrorFile() prázdný řetězec a ErrorHandler::activateLogDispatcher() nepřenese do LogDispatcher nastavení odesílání e-mailů (fromEmail, emailSnooze, mailer).

Resolver musí být nastaven před prvním voláním ErrorHandler::activateLogDispatcher() — nastavení e-mailů se přenáší pouze při vytvoření LogDispatcheru a později se už nedoplní.

Pozor: ErrorHandler::activateLogDispatcher() nastaví do Tracy LogDispatcher a váš obalující logger tím zcela nahradí — resolver z něj přenese jen zmíněné nastavení, ne jeho chování při logování.

Omezení

Vlastní chybovou šablonu předávejte výhradně přes ErrorHandler::register():

Nekombinujte modul s volbou errorTemplate v konfiguraci Tracy:

DI kontejner tuto hodnotu nastavuje až po zavolání ErrorHandler::register() v bootstrapu. Modul si při každé kritické chybě ověřuje, že šablona v Tracy odpovídá té, kterou zaregistroval — při rozdílu se sám deaktivuje výjimkou Tracy error template changed, error handler is disabled a chybová stránka se nevykreslí.

Vývoj

Statická analýza běží v Dockeru nad oficiálními php:*-cli image (viz docker/Dockerfile), takže lokálně stačí mít Docker a make:

příkaz co dělá
make composer update + všechny kontroly
make c všechny kontroly bez composer update
make ps PHPStan (3 běhy: analýza pro PHP 8.2 i 8.5 a pojistný běh pod PHP 8.2)
make pcs / make pcss PHPCS / PHPCS se souhrnem
make r Rector (dry-run)
make f automatické opravy (Rector + PHPCS)
make psgb přegenerování PHPStan baseline

Verzi PHP lze zvolit přes PHP=85, např. make c PHP=85. Default je nejnižší podporovaná verze.


All versions of nette-error-handler with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2.0 <8.6
nette/application Version >=3.2.0 <3.4
nette/http Version >=3.3.0 <3.5
nette/utils Version >=4.0.4 <4.2
tracy/tracy Version >=2.10 <3
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 pavlista/nette-error-handler contains the following files

Loading the files please wait ...