2017 © Pedro Peláez
 

cakephp-plugin cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

image

dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  • Wednesday, June 27, 2018
  • by dereuromark
  • Repository
  • 3 Watchers
  • 31 Stars
  • 104,502 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 12 Forks
  • 1 Open issues
  • 44 Versions
  • 10 % Grown

The README.md

Shim plugin for CakePHP

CI Coverage Latest Stable Version Minimum PHP Version License Total Downloads Coding Standards, (*1)

Shim plugin to "shim" functionality up and down for CakePHP major versions. It also provides some small app-specific fixes., (*2)

This branch is for shimming 4.x in 5.x

It provides compatibility wrapper access to 4.x functionality in 5.x., (*3)

This is mainly useful when upgrading large applications to the next major framework version. Tons of code needs to be adjusted, using this Shim plugin quite a few lines less need to be touched. Especially the ORM layer, which would need heavy refactoring, requires a lot less changes to get things working again., (*4)

This branch is for use with CakePHP 5.0+. For details see version map., (*5)

Installation

Please see Install.md, (*6)

Usage

Please see Docs., (*7)

A full overview of all shimming between versions can be found in the Wiki., (*8)

New shims

  • RequestHandler component for continued easier View class switching across the app
  • LegacyModelAwareTrait for loadModel() shimming
  • former Cake\Filesystem\File and Cake\Filesystem\Folder classes
  • ModifiedTrait for entities and detecting actually changed fields (not just touched with same value)

Note: AuthComponent lives on in 5.x via TinyAuth plugin if needed., (*9)

Existing shims from 4.x

  • Controller setup for components and helpers
  • Nullable behavior for better data consistency.
  • Table::field() support and fieldByConditions() alias to migrate to.
  • Still supports model properties $primaryKey, $displayField, $order, $validate, $actsAs and all relations ($belongsTo, $hasMany, ...) as it would be very time-consuming to manually adjust all those.
  • Auto-adds Timestamp behavior if created or modified field exists in table.

When planning to upgrade, you should look into official upgrade docs as well as the linked upgrade tool. They both contain tons of more ideas on how to get code aligned with the current direction of the framework to reduce friction in the long run. Also see my blog post dereuromark.de/2023/09/28/cakephp-5-upgrade-guide/., (*10)

The Versions

27/06 2018

dev-master

9999999-dev https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

The Development Requires

plugin helpers cakephp shim

08/05 2018

2.x-dev

2.9999999.9999999.9999999-dev https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

The Development Requires

plugin helpers cakephp shim

08/05 2018

0.7.1

0.7.1.0 https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

The Development Requires

plugin helpers cakephp shim

20/04 2018

0.7.0

0.7.0.0 https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

The Development Requires

plugin helpers cakephp shim

19/04 2018

1.7.0

1.7.0.0 https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

The Development Requires

plugin helpers cakephp shim

14/04 2018

0.6.2

0.6.2.0 https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

The Development Requires

plugin helpers cakephp shim

21/01 2018

1.6.1

1.6.1.0 https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

The Development Requires

plugin helpers cakephp shim

05/01 2018

0.6.1

0.6.1.0 https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

The Development Requires

plugin helpers cakephp shim

28/12 2017

1.6.0

1.6.0.0 https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

The Development Requires

plugin helpers cakephp shim

20/11 2017

dev-bugfix/2.x

dev-bugfix/2.x https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

The Development Requires

plugin helpers cakephp shim

25/10 2017

dev-bugfix/binaryuuid

dev-bugfix/binaryuuid https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

The Development Requires

plugin helpers cakephp shim

20/05 2017

0.6.0

0.6.0.0 https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

The Development Requires

plugin helpers cakephp shim

18/04 2017

1.5.0

1.5.0.0 https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

The Development Requires

plugin helpers cakephp shim

20/02 2017

1.4.2

1.4.2.0 https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

The Development Requires

plugin helpers cakephp shim

12/02 2017

1.4.1

1.4.1.0 https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

The Development Requires

plugin helpers cakephp shim

03/11 2016

1.4.0

1.4.0.0 https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

The Development Requires

plugin helpers cakephp shim

28/10 2016

1.3.0

1.3.0.0 https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

The Development Requires

plugin helpers cakephp shim

08/02 2016

dev-master-find-shims

dev-master-find-shims https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

plugin helpers cakephp shim

26/01 2016

1.2.0

1.2.0.0 https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

plugin helpers cakephp shim

17/01 2016

0.5.5

0.5.5.0 https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

The Development Requires

plugin helpers cakephp shim

16/01 2016

0.5.4

0.5.4.0 https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

The Development Requires

plugin helpers cakephp shim

12/01 2016

1.1.0

1.1.0.0 https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

plugin helpers cakephp shim

10/01 2016

0.5.3

0.5.3.0 https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

The Development Requires

plugin helpers cakephp shim

07/01 2016

1.0.5

1.0.5.0 https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

plugin helpers cakephp shim

03/01 2016

1.0.4

1.0.4.0 https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

plugin helpers cakephp shim

30/12 2015

1.0.3

1.0.3.0 https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

plugin helpers cakephp shim

18/12 2015

0.5.2

0.5.2.0 https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

The Development Requires

plugin helpers cakephp shim

14/12 2015

0.5.1

0.5.1.0 https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

The Development Requires

plugin helpers cakephp shim

12/12 2015

0.5.0

0.5.0.0 https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

The Development Requires

plugin helpers cakephp shim

15/11 2015

1.0.2

1.0.2.0 https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

plugin helpers cakephp shim

31/05 2015

1.0.1

1.0.1.0 https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

plugin helpers cakephp shim

14/05 2015

0.4.0

0.4.0.0 https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

The Development Requires

plugin helpers cakephp shim

07/05 2015

1.0.0

1.0.0.0 https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

plugin helpers cakephp shim

07/05 2015

0.3.2

0.3.2.0 https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

The Development Requires

plugin helpers cakephp shim

15/04 2015

0.3.1

0.3.1.0 https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

plugin helpers cakephp shim

15/04 2015

0.3.0

0.3.0.0 https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

plugin helpers cakephp shim

09/03 2015

0.2.4

0.2.4.0 https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

plugin helpers cakephp shim

20/02 2015

0.2.3

0.2.3.0 https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

plugin helpers cakephp shim

09/02 2015

0.2.2

0.2.2.0 https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

plugin helpers cakephp shim

04/02 2015

0.2.1

0.2.1.0 https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

plugin helpers cakephp shim

04/02 2015

0.2.0

0.2.0.0 https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

plugin helpers cakephp shim

03/02 2015

0.1.2

0.1.2.0 https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

plugin helpers cakephp shim

02/02 2015

0.1.1

0.1.1.0 https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

plugin helpers cakephp shim

02/02 2015

0.1.0

0.1.0.0 https://github.com/dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

  Sources   Download

MIT

The Requires

 

plugin helpers cakephp shim