:gem: A Hero for your Zend Framework/Laminas, and Expressive/Mezzio application to log ( DB and Mail ) and handle php errors & exceptions during Mvc process/between request and response
✔️ Support doctrine/doctrine-orm-module
^5.0
You can support my work by sponsor me, thank you 💖 💖 💖 https://github.com/sponsors/samsonasik
✔️ Support laminas-cli
out of the box (for laminas-servicemanager
container)
The usage for laminas-cli
can just extends the ErrorHeroModule\Command\BaseLoggingCommand
namespace Application\Command;
use ErrorHeroModule\Command\BaseLoggingCommand;
use Exception;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
final class HelloWorld extends BaseLoggingCommand
{
protected function execute(InputInterface $input, OutputInterface $output): int
{
throw new Exception('some exception logged to DB');
}
}
and register to your service like in the documentation, that's it!
✔️ Support PHP 8.1+
It took a lot of works to make it reality 💪. You can support my work by sponsor me, thank you 💖 💖 💖 https://github.com/sponsors/samsonasik
clean up composer.json keyword
Remove Auryn support
Code Quality improvement with add more Rector setlist
Fix example preview console notice -> warning on php 8
Test and doc about E_NOTICE -> E_WARNING fix for undefined array key