Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
c5add39
cake3 compat
jippi Jan 11, 2015
51491d4
fix composer
jippi Jan 11, 2015
caff67f
fix auth thingie
jippi Jan 11, 2015
09a77de
Add installer name
jippi Jan 11, 2015
f10e7f8
refactor for cake3
jippi Jan 13, 2015
b98b4c9
bump
jippi Jan 20, 2015
cf137b7
oops
jippi Jan 20, 2015
6653123
Import missing classes and fix detection
jippi Jan 20, 2015
d70bb95
fix NewRelic auto-naming for controller requests
jippi Jan 20, 2015
6894c1d
Switch things up so the NewRelic class is static and allow ignoring e…
jippi Jan 23, 2015
c4b6e92
Add more nifty methods to NewRelic
jippi Jan 23, 2015
5e56766
fix variable name for ignoredExceptions
jippi Jan 23, 2015
00c7080
using cakephp 3 stable
lorenzo Mar 24, 2015
6aee3d6
Merge pull request #3 from lorenzo/patch-1
jippi Mar 24, 2015
67ac3ba
Removing cake 2 specific code
lorenzo Mar 24, 2015
0c21b34
Merge pull request #5 from lorenzo/patch-3
jippi Mar 24, 2015
10ca735
fix ignoring exceptions
jippi Jul 18, 2016
e2ddf2f
don't name a transaction unless it got a non-empty name
jippi Oct 20, 2016
2c3dd2b
a bit of refactoring
jippi Oct 20, 2016
772487c
RFC: Support for exceptions with cake > 3.3 middleware
Spriz Feb 23, 2017
8f63ddf
Merge pull request #10 from Spriz/patch-1
lorenzo Mar 2, 2017
65afc99
Allow for PHP7+ errors
dakota Mar 1, 2018
b0c6a5d
Merge pull request #13 from dakota/patch-1
lorenzo Mar 1, 2018
78a3a1a
Fix up readme for 3.x
dereuromark Jun 29, 2018
7d15f15
Merge pull request #14 from dereuromark/patch-1
lorenzo Jun 29, 2018
5d6c1a4
Update README.md
dereuromark Jun 29, 2018
9fa6502
Merge pull request #15 from dereuromark/patch-1
lorenzo Jun 29, 2018
9fb765e
Use non-deprecated request methods
dakota Aug 6, 2018
6dffac4
Merge pull request #17 from dakota/cake3.6
jippi Nov 20, 2018
aada780
Support Cake 3.6 in Component
DanielPenkov Nov 20, 2018
32ad9a7
Merge pull request #18 from DanielPenkov/cake3
Spriz Nov 20, 2018
ab39239
Specify lowest version of CakePHP 3.x compatible in readme
Spriz Nov 20, 2018
c6b36e2
There is no such type in phpdoc as "scalar" - but according to https:…
Spriz Feb 15, 2019
6245bd8
Non-scalar values are handled nicely in method. Setting type to the s…
Spriz Feb 15, 2019
01c54c4
Clearly state that the newrelic php module is required
Spriz Oct 2, 2019
181ba23
Upgraded to CakePHP 4
rafaelqueiroz May 6, 2020
4250965
Upgraded to CakePHP 4
rafaelqueiroz May 6, 2020
dfb976d
Upgraded to CakePHP 4
rafaelqueiroz May 6, 2020
94dea31
Update readme
rafaelqueiroz May 6, 2020
4b9ed99
initial upgrade to CakePHP5, updated types, updated phpunit settings, cc
arusinowski Aug 5, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org

root = true

[*]
end_of_line = lf
charset = utf-8
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true

[*.neon]
indent_style = tab

[phars.xml]
indent_size = 2

[*.js]
indent_size = 2
32 changes: 32 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/composer.lock
*.diff
*.err
*.log
*.orig
*.rej
*.swo
*.swp
*.vi
*~
.idea/*
nbproject/*
.vscode
.DS_Store
.cache
.phpunit.cache
.project
.settings
.svn
errors.err
tags
node_modules
package-lock.json
/.phpunit.result.cache
/nbproject/
/tools
/vendor
/phpunit.xml
/webroot/css/style.css.map
/webroot/mix.js.map
/webroot/mix-manifest.json
.ddev/*
10 changes: 0 additions & 10 deletions Console/Command/Task/NewRelicTask.php

This file was deleted.

43 changes: 0 additions & 43 deletions Controller/Component/NewRelicComponent.php

This file was deleted.

217 changes: 0 additions & 217 deletions Lib/NewRelic.php

This file was deleted.

24 changes: 17 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CakePHP <3 NewRelic

You can modify your files like this
You can modify your files like this to have full NewRelic support.

## Things included

Expand All @@ -9,9 +9,21 @@ You can modify your files like this
- NewRelicTrait trait
- NewRelic.NewRelic

### Console
## Requirements
- [New Relic PHP agent](https://docs.newrelic.com/docs/agents/php-agent/getting-started/introduction-new-relic-php) installed as a PHP module

Include this snippet in `app/Console/AppShell.php`
## Installation

Note: This branch is for CakePHP 5.x

```
composer require jippi/cakephp-newrelic:dev-cake4
```


### Shell

Include this snippet in `src/Shell/AppShell.php`

```php
public function startup() {
Expand All @@ -29,12 +41,11 @@ Include this snippet in `app/Console/AppShell.php`

Simply add `NewRelic.NewRelic` to your `$components` list

## app/webroot/index.php
## webroot/index.php

Add this in top of your file before `define('DS', 'DIRECTORY_SEPARATOR')`

```php
<?php
require_once dirname(dirname(__DIR__)) . '/vendors/autoload.php';

if (extension_loaded('newrelic')) {
Expand All @@ -55,10 +66,9 @@ if (extension_loaded('newrelic')) {
// Rest of your index.php here
```

## app/Console/cake.php
## bin/cake.php

```php
<?php
require_once dirname(dirname(__DIR__)) . '/vendors/autoload.php';

if (extension_loaded('newrelic')) {
Expand Down
Loading