2017 © Pedro Peláez
 

cakephp-plugin encount

Encount plugin for CakePHP

image

fusic/encount

Encount plugin for CakePHP

  • Monday, May 21, 2018
  • by fusic
  • Repository
  • 4 Watchers
  • 8 Stars
  • 11,027 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 14 Versions
  • 27 % Grown

The README.md

Encount plugin for CakePHP5.x.

Requirements

  • PHP >= 8.1.*
  • CakePHP >= 5.*

Installation

You can install this plugin into your CakePHP application using composer., (*1)

The recommended way to install composer packages is:, (*2)

composer require fusic/encount

Usage

// config/bootstrap.php
<?php

use Encount\Error\EncountErrorTrap;
use Encount\Error\EncountExceptionTrap;

/*
 * Register application error and exception handlers.
 */
// (new ErrorTrap(Configure::read('Error')))->register();
// (new ExceptionTrap(Configure::read('Error')))->register();
(new EncountErrorTrap(Configure::read('Error')))->register();
(new EncountExceptionTrap(Configure::read('Error')))->register();
// src/Application.php
<?php

use Encount\Middleware\EncountErrorHandlerMiddleware;

$middleware
    // ->add(new ErrorHandlerMiddleware(Configure::read('Error'), $this))
    ->add(new EncountErrorHandlerMiddleware(Configure::read('Error'), $this))

Config

// config/app.php
<?php

return [

-snip-

    'Error' => [
        'errorLevel' => E_ALL & ~E_DEPRECATED,
        'skipLog' => [],
        'log' => true,
        'trace' => true,
        'encount' => [
            'force' => false,
            'sender' => [
                'Encount.Mail',
            ],
            // ignore ex)
            // 'deny' => [
            //     'exception' => [
            //         '\Cake\Http\Exception\MissingControllerException', // 404
            //         '\Cake\Http\Exception\MethodNotAllowedException', // 404
            //         '\Cake\Http\Exception\ForbiddenException', // isAuthorized
            //         '\Cake\Controller\Exception\MissingActionException', // 404
            //         '\Cake\Datasource\Exception\RecordNotFoundException', // notFoundRecored
            //     ],
            // ],
        ],
    ],

-snip-

    'EmailTransport' => [
        'default' => [
        ],
        // Encount Email config
        'encount' => [
            'className' => SmtpTransport::class,
            'port' => xxx,
            'timeout' => xx,
            'host' => 'xxxxxxxxxxxxxxxxx',
            'username' => 'xxxxxxxx@example.com',
            'password' => 'xxxxxxxx',
            'log' => true,
            'tls' => true,
        ],
    ],

    'Email' => [
        'default' => [
        ],
        // Encount Email config
        'error' => [
            'transport' => 'encount',
            'from' => 'from@example.com',
            'to' => 'to@example.com',
            'charset' => 'utf-8',
            'headerCharset' => 'utf-8',
        ],
    ],

-snip-

];

Sender

Encount.Mail

Encount sender for faultline

The Versions

21/05 2018

dev-master

9999999-dev

Encount plugin for CakePHP

  Sources   Download

The Requires

 

The Development Requires

21/05 2018

2.0.6

2.0.6.0

Encount plugin for CakePHP

  Sources   Download

The Requires

 

The Development Requires

21/05 2018

dev-var_dumper

dev-var_dumper

Encount plugin for CakePHP

  Sources   Download

The Requires

 

The Development Requires

17/10 2017

2.0.5

2.0.5.0

Encount plugin for CakePHP

  Sources   Download

The Requires

 

The Development Requires

17/10 2017

dev-check

dev-check

Encount plugin for CakePHP

  Sources   Download

The Requires

 

The Development Requires

03/10 2017

2.0.4

2.0.4.0

Encount plugin for CakePHP

  Sources   Download

The Requires

 

The Development Requires

21/04 2017

2.0.3

2.0.3.0

Encount plugin for CakePHP

  Sources   Download

The Requires

 

The Development Requires

16/03 2017

2.0.2-beta

2.0.2.0-beta

Encount plugin for CakePHP

  Sources   Download

The Requires

 

The Development Requires

23/01 2017

2.0.1-beta

2.0.1.0-beta

Encount plugin for CakePHP

  Sources   Download

The Requires

 

The Development Requires

11/01 2017

2.0.0-beta

2.0.0.0-beta

Encount plugin for CakePHP

  Sources   Download

The Requires

 

The Development Requires

02/12 2016

dev-utility-gather

dev-utility-gather

Encount plugin for CakePHP

  Sources   Download

The Requires

 

The Development Requires

19/07 2016

1.1.1

1.1.1.0

Encount plugin for CakePHP

  Sources   Download

The Requires

 

The Development Requires

25/06 2016

1.1.0

1.1.0.0

Encount plugin for CakePHP

  Sources   Download

The Requires

 

The Development Requires

08/06 2016

1.0.0

1.0.0.0

Encount plugin for CakePHP

  Sources   Download

The Requires

 

The Development Requires