{"id":15062762,"url":"https://github.com/fusic/encount","last_synced_at":"2025-04-10T10:11:03.164Z","repository":{"id":62508098,"uuid":"52166907","full_name":"fusic/encount","owner":"fusic","description":"ErrorHandler for CakePHP","archived":false,"fork":false,"pushed_at":"2024-02-21T11:57:00.000Z","size":46,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-24T09:03:22.808Z","etag":null,"topics":["cakephp","composer"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fusic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-02-20T17:53:53.000Z","updated_at":"2024-02-13T10:40:20.000Z","dependencies_parsed_at":"2024-02-21T12:49:27.270Z","dependency_job_id":null,"html_url":"https://github.com/fusic/encount","commit_stats":{"total_commits":46,"total_committers":6,"mean_commits":7.666666666666667,"dds":"0.32608695652173914","last_synced_commit":"098b6290f6b7bbbfeb2b54429e61dc6500125085"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fusic%2Fencount","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fusic%2Fencount/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fusic%2Fencount/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fusic%2Fencount/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fusic","download_url":"https://codeload.github.com/fusic/encount/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248198889,"owners_count":21063628,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cakephp","composer"],"created_at":"2024-09-24T23:46:00.665Z","updated_at":"2025-04-10T10:11:03.135Z","avatar_url":"https://github.com/fusic.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Encount plugin for CakePHP5.x.\n\n## Requirements\n\n- PHP \u003e= 8.1.*\n- CakePHP \u003e= 5.*\n\n## Installation\n\nYou can install this plugin into your CakePHP application using [composer](http://getcomposer.org).\n\nThe recommended way to install composer packages is:\n\n```\ncomposer require fusic/encount\n```\n\n## Usage\n\n```php\n// config/bootstrap.php\n\u003c?php\n\nuse Encount\\Error\\EncountErrorTrap;\nuse Encount\\Error\\EncountExceptionTrap;\n\n/*\n * Register application error and exception handlers.\n */\n// (new ErrorTrap(Configure::read('Error')))-\u003eregister();\n// (new ExceptionTrap(Configure::read('Error')))-\u003eregister();\n(new EncountErrorTrap(Configure::read('Error')))-\u003eregister();\n(new EncountExceptionTrap(Configure::read('Error')))-\u003eregister();\n```\n\n```php\n// src/Application.php\n\u003c?php\n\nuse Encount\\Middleware\\EncountErrorHandlerMiddleware;\n\n$middleware\n    // -\u003eadd(new ErrorHandlerMiddleware(Configure::read('Error'), $this))\n    -\u003eadd(new EncountErrorHandlerMiddleware(Configure::read('Error'), $this))\n```\n\n## Config\n\n```php\n// config/app.php\n\u003c?php\n\nreturn [\n\n-snip-\n\n    'Error' =\u003e [\n        'errorLevel' =\u003e E_ALL \u0026 ~E_DEPRECATED,\n        'skipLog' =\u003e [],\n        'log' =\u003e true,\n        'trace' =\u003e true,\n        'encount' =\u003e [\n            'force' =\u003e false,\n            'sender' =\u003e [\n                'Encount.Mail',\n            ],\n            // ignore ex)\n            // 'deny' =\u003e [\n            //     'exception' =\u003e [\n            //         '\\Cake\\Http\\Exception\\MissingControllerException', // 404\n            //         '\\Cake\\Http\\Exception\\MethodNotAllowedException', // 404\n            //         '\\Cake\\Http\\Exception\\ForbiddenException', // isAuthorized\n            //         '\\Cake\\Controller\\Exception\\MissingActionException', // 404\n            //         '\\Cake\\Datasource\\Exception\\RecordNotFoundException', // notFoundRecored\n            //     ],\n            // ],\n        ],\n    ],\n\n-snip-\n\n    'EmailTransport' =\u003e [\n        'default' =\u003e [\n        ],\n        // Encount Email config\n        'encount' =\u003e [\n            'className' =\u003e SmtpTransport::class,\n            'port' =\u003e xxx,\n            'timeout' =\u003e xx,\n            'host' =\u003e 'xxxxxxxxxxxxxxxxx',\n            'username' =\u003e 'xxxxxxxx@example.com',\n            'password' =\u003e 'xxxxxxxx',\n            'log' =\u003e true,\n            'tls' =\u003e true,\n        ],\n    ],\n\n    'Email' =\u003e [\n        'default' =\u003e [\n        ],\n        // Encount Email config\n        'error' =\u003e [\n            'transport' =\u003e 'encount',\n            'from' =\u003e 'from@example.com',\n            'to' =\u003e 'to@example.com',\n            'charset' =\u003e 'utf-8',\n            'headerCharset' =\u003e 'utf-8',\n        ],\n    ],\n\n-snip-\n\n];\n```\n\n## Sender\n\n### Encount.Mail\n### [Encount sender for faultline](https://github.com/fusic/encount-sender-faultline)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffusic%2Fencount","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffusic%2Fencount","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffusic%2Fencount/lists"}