2017 © Pedro Peláez
 

library common-utils

Common code that is needed for all projects

image

ministryofjustice/common-utils

Common code that is needed for all projects

  • Thursday, May 24, 2018
  • by ministryofjustice
  • Repository
  • 68 Watchers
  • 0 Stars
  • 558 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 29 Versions
  • 709 % Grown

The README.md

common-utils

A Zend Framework 2 module which currently does logging. The idea with this was to perhaps create a shared library that was needed across front-end,back-end,membrane. The requirements for the logger will built from this ticket in JIRA: https://opgtransform.atlassian.net/browse/SDV-309. Any update to this library means that you need to run composer for all three repos to update the logging for it., (*1)

There is a sample configuration file for the logger contained in this repo logger.global.php needs to be in the repo where you want logging. An example is here, (*2)

'extractions' => array(0 => array('property' => 'response',
                                        'method_name' => 'getStatusCode',
                                        'method_values' => 'status_code'),
                             1 => array('property' => 'request',
                                        'method_name' => 'getServer',
                                        'method_values' => array(
                                        'QUERY_STRING','SERVER_NAME','HTTP_HOST','REQUEST_METHOD',
                                        'REQUEST_URI','QUERY_STRING','CONTENT_TYPE','CONTENT_LENGTH',
                                        'REMOTE_ADDR','REMOTE_PORT','SERVER_ADDR','HTTPS','APP_ENV',
                                        'HTTP_HOST','HTTP_USER_AGENT','HTTP_X_USER_ID','HTTP_CONTENT_TYPE')),
                            ),

The logger is configurable. There is a Extractor Class which has the request and response objects set on it. The configurations then can extract variables based on configuration., (*3)

property: Is either response or request., (*4)

method_name : the method to call on the property., (*5)

method_values : the method value to pass to the method., (*6)

The Versions

24/05 2018

dev-master

9999999-dev https://github.com/ministryofjustice/common-utils

Common code that is needed for all projects

  Sources   Download

MIT

The Requires

 

The Development Requires

ministryofjustice opg

12/02 2018

0.6.6

0.6.6.0 https://github.com/ministryofjustice/common-utils

Common code that is needed for all projects

  Sources   Download

The Requires

 

The Development Requires

ministryofjustice opg

27/09 2017

0.6.5

0.6.5.0 https://github.com/ministryofjustice/common-utils

Common code that is needed for all projects

  Sources   Download

The Requires

 

The Development Requires

ministryofjustice opg

27/09 2017

0.6.4

0.6.4.0 https://github.com/ministryofjustice/common-utils

Common code that is needed for all projects

  Sources   Download

The Requires

 

The Development Requires

ministryofjustice opg

27/09 2017

0.6.3

0.6.3.0 https://github.com/ministryofjustice/common-utils

Common code that is needed for all projects

  Sources   Download

The Requires

 

The Development Requires

ministryofjustice opg

26/09 2017

0.6.2

0.6.2.0 https://github.com/ministryofjustice/common-utils

Common code that is needed for all projects

  Sources   Download

The Requires

 

The Development Requires

ministryofjustice opg

25/09 2017

0.6.1

0.6.1.0 https://github.com/ministryofjustice/common-utils

Common code that is needed for all projects

  Sources   Download

The Requires

 

The Development Requires

ministryofjustice opg

18/09 2017

0.6.0

0.6.0.0 https://github.com/ministryofjustice/common-utils

Common code that is needed for all projects

  Sources   Download

The Requires

 

The Development Requires

ministryofjustice opg

13/09 2017

0.5.0

0.5.0.0 https://github.com/ministryofjustice/common-utils

Common code that is needed for all projects

  Sources   Download

The Requires

 

The Development Requires

ministryofjustice opg

12/09 2017

0.4.0

0.4.0.0 https://github.com/ministryofjustice/common-utils

Common code that is needed for all projects

  Sources   Download

The Requires

 

The Development Requires

ministryofjustice opg

31/07 2017

dev-DAPH-94-add-cache-warmup

dev-DAPH-94-add-cache-warmup https://github.com/ministryofjustice/common-utils

Common code that is needed for all projects

  Sources   Download

The Requires

 

The Development Requires

ministryofjustice opg

26/07 2017

dev-OPGOPS-2068

dev-OPGOPS-2068 https://github.com/ministryofjustice/common-utils

Common code that is needed for all projects

  Sources   Download

The Requires

 

The Development Requires

ministryofjustice opg

24/07 2017

0.3.1

0.3.1.0 https://github.com/ministryofjustice/common-utils

Common code that is needed for all projects

  Sources   Download

The Requires

 

The Development Requires

ministryofjustice opg

21/07 2017

0.3.0

0.3.0.0 https://github.com/ministryofjustice/common-utils

Common code that is needed for all projects

  Sources   Download

The Requires

 

The Development Requires

ministryofjustice opg

10/02 2017

0.2.0

0.2.0.0 https://github.com/ministryofjustice/common-utils

Common code that is needed for all projects

  Sources   Download

The Requires

 

The Development Requires

ministryofjustice opg

10/02 2017

dev-SCI-1938

dev-SCI-1938 https://github.com/ministryofjustice/common-utils

Common code that is needed for all projects

  Sources   Download

The Requires

 

The Development Requires

ministryofjustice opg

31/01 2017

0.1.12

0.1.12.0 https://github.com/ministryofjustice/common-utils

Common code that is needed for all projects

  Sources   Download

The Requires

 

The Development Requires

ministryofjustice opg

05/12 2016

dev-SDV-2-29

dev-SDV-2-29 https://github.com/ministryofjustice/common-utils

Common code that is needed for all projects

  Sources   Download

The Requires

 

The Development Requires

ministryofjustice opg

08/05 2015

dev-e2e-logging-controller-test

dev-e2e-logging-controller-test https://github.com/ministryofjustice/common-utils

Common code that is needed for all projects

  Sources   Download

The Requires

 

The Development Requires

ministryofjustice opg

07/05 2015

0.1.11

0.1.11.0 https://github.com/ministryofjustice/common-utils

Common code that is needed for all projects

  Sources   Download

The Requires

 

The Development Requires

ministryofjustice opg

28/04 2015

0.1.10

0.1.10.0 https://github.com/ministryofjustice/common-utils

Common code that is needed for all projects

  Sources   Download

The Requires

 

The Development Requires

ministryofjustice opg

27/04 2015

0.1.9

0.1.9.0 https://github.com/ministryofjustice/common-utils

Common code that is needed for all projects

  Sources   Download

The Requires

 

The Development Requires

ministryofjustice opg

14/04 2015

0.1.8

0.1.8.0 https://github.com/ministryofjustice/common-utils

Common code that is needed for all projects

  Sources   Download

The Requires

 

The Development Requires

ministryofjustice opg

13/04 2015

0.1.7

0.1.7.0 https://github.com/ministryofjustice/common-utils

Common code that is needed for all projects

  Sources   Download

The Requires

 

The Development Requires

ministryofjustice opg

17/12 2014

0.1.6

0.1.6.0 https://github.com/ministryofjustice/common-utils

Common code that is needed for all projects

  Sources   Download

The Requires

 

The Development Requires

ministryofjustice opg

15/12 2014

0.1.5

0.1.5.0 https://github.com/ministryofjustice/common-utils

Common code that is needed for all projects

  Sources   Download

The Requires

 

The Development Requires

ministryofjustice opg

13/12 2014

0.1.4

0.1.4.0 https://github.com/ministryofjustice/common-utils

Common code that is needed for all projects

  Sources   Download

The Requires

 

The Development Requires

ministryofjustice opg

11/12 2014

0.1.3

0.1.3.0 https://github.com/ministryofjustice/common-utils

Common code that is needed for all projects

  Sources   Download

The Requires

 

The Development Requires

ministryofjustice opg

11/12 2014

0.1.2

0.1.2.0 https://github.com/ministryofjustice/common-utils

Common code that is needed for all projects

  Sources   Download

The Requires

 

The Development Requires

ministryofjustice opg