cakephp-shim

CakePHP plugin to "shim" functionality up and down for major versions of the framework.

MIT License

Downloads
760.3K
Stars
37
Committers
6
cakephp-shim - 3.3.0

Published by dereuromark about 1 month ago

Improvements

  • Shimmed RequestHandler component from CakePHP 4 into 5.
cakephp-shim - 3.2.3 Latest Release

Published by dereuromark 7 months ago

Fixes

  • Adjusted for core release of trait method isDebug()

Included commits: https://github.com/dereuromark/cakephp-shim/compare/3.2.2...3.2.3

cakephp-shim - 3.2.2

Published by dereuromark 9 months ago

Fixes

Fixed up isModified() on entity for non strict comparison, e.g. when comparing DateTime values.

cakephp-shim - 3.2.1

Published by dereuromark 11 months ago

Fixes

Fixed RedirectOutOfBoundsTrait to continue to support paginate property as well as config.

cakephp-shim - 3.2.0

Published by dereuromark 11 months ago

Improvements

Added RedirectOutOfBoundsTrait for controller pagination to auto-fix 404s for humans.

Simply add the trait and enjoy the magic:

use Shim\Controller\Controller;
use Shim\Controller\RedirectOutOfBoundsTrait;

class AppController extends Controller {

    use RedirectOutOfBoundsTrait;

Instead of showing a not user-friendly 404 page, the pagination will redirect right away to the last page available.

cakephp-shim - 3.1.1

Published by dereuromark 11 months ago

Fixes

Fixed up default model class detection for shims.

cakephp-shim - 3.1.0

Published by dereuromark 12 months ago

Improvements

  • Added NumericPaginator shim for contain shimming in 5.x.
cakephp-shim - 3.0.1

Published by dereuromark about 1 year ago

Fixes

Fixed Command args to be not nullable.

cakephp-shim - 3.0.0

Published by dereuromark about 1 year ago

CakePHP 5 compatible release

The plugin to help ease migration coming from CakePHP 4.x apps.

Shim Up: With CakePHP 4.x core and some of the shims, you can prepare your app already for 5.x.
Shim Down: Then, once upgraded, with 5.x core and some more shims you can further minimize required changes until the app works again.
Then you can slowly start refactoring again further while the app is already running again.

Improvements

  • Added LegacyAwareTrait to shim loadModel() for apps that make heavy use of it still.
  • Added former Cake\Filesystem\File and Cake\Filesystem\Folder classes
  • Added ModifiedTrait for entities and detecting actually changed fields (not just touched with same value)
cakephp-shim - 3.0.0-RC

Published by dereuromark about 1 year ago

CakePHP 5 compatible pre-release

The tool to help ease migration coming from CakePHP 4.x apps.

Shim Up: With CakePHP 4.x core and some of the shims, you can prepare your app already for 5.x.
Shim Down: Then, once upgraded, with 5.x core and some more shims you can further minimize required changes until the app works again.
Then you can slowly start refactoring again further while the app is already running again.

cakephp-shim - 0.7.6

Published by dereuromark almost 2 years ago

Fixes

Full Changelog: https://github.com/dereuromark/cakephp-shim/compare/0.7.5...0.7.6

cakephp-shim - 2.4.1

Published by dereuromark about 2 years ago

Fixes

Full Changelog: https://github.com/dereuromark/cakephp-shim/compare/2.4.0...2.4.1

cakephp-shim - 2.4.0

Published by dereuromark over 2 years ago

Improvements

  • Added set*OrFail() functionality for entities to make it easier to have an early error system for invalid null setting.
    This compliments the already existing get*OrFail() functionality.
cakephp-shim - 2.3.0

Published by dereuromark almost 3 years ago

Improvements

  • CakePHP 4.3 checked/approved and CakePHP 4.2+ / PHP 7.3+ now.
cakephp-shim - 2.2.0

Published by dereuromark over 3 years ago

Improvements

  • Added ConfigureHelper::consumeOrFail() method as view template proxy to Configure class.
  • Added IdeHelper autocomplete for Configure helper methods, like read() or consume().
cakephp-shim - 2.1.1

Published by dereuromark over 3 years ago

Fixes

Fixed propagation of options into widgets like Year, especially in dropdown use case.

cakephp-shim - 0.7.5

Published by dereuromark about 4 years ago

Improvements

  • Allow performing a HEAD request using the current request data

Fixes

  • Fixed up deprecated keys for FormShimHelper
  • Fixed up div handling for FormShimHelper
cakephp-shim - 2.1.0

Published by dereuromark about 4 years ago

Fixes

  • Fixed signature of Table::beforeFind()
  • Fixed options handling of Table::save()
  • Restored the month rendering for DateTimeWidget to the 3.x behavior as the shim intends to if in standalone usage
cakephp-shim - 0.7.4

Published by dereuromark over 4 years ago

Improvements

  • PHP 7.4 compatibility
  • Added Form input shimming
  • Added assertHeaderContains() for IntegrationTestCase
cakephp-shim - 2.0.1

Published by dereuromark over 4 years ago

Improvements

Shim.Nullable behavior can now also run on beforeSave() callback instead of beforeMarshal().
This helps with validation that needs to have the empty string posted still available for isset() checks and alike.
Also, that callback can be used specifically on "dirty" fields.

You can also refactor those to array_key_exists(), if you want to keep the default event and expect nullish input.

Package Rankings
Top 2.45% on Packagist.org
Badges
Extracted from project README
CI Coverage Minimum PHP Version Coding Standards