Search by

dereuromark / cakephp-ajax

dereuromark

A CakePHP plugin that makes working with AJAX a piece of cake.

Package info

github.com/dereuromark/cakephp-ajax

Documentation

Type:cakephp-plugin

pkg:composer/dereuromark/cakephp-ajax

Statistics

Installs: 269 586

Dependents: 2

Suggesters: 0

Stars: 54

Open Issues: 0

3.2.0 2026-05-20 22:47 UTC

README

CI Coverage Status PHPStan Latest Stable Version Minimum PHP Version License Total Downloads Coding Standards

A CakePHP plugin that makes working with AJAX a "piece of cake".

This branch is for CakePHP 5. For details see version map.

What is this plugin for?

Basically DRY (Don't repeat yourself) and easy AJAX handling.

Demo

See the Sandbox app for live demos.

Key features

  • Auto-handling via View class mapping and making controller actions available both AJAX and non-AJAX by design.
  • Flash message and redirect (prevention) support.
  • Opt-in detection for modern JSON-oriented clients that do not send X-Requested-With.

See my article for details on the history of this view class and plugin code.

Installation & Docs

Possible TODOs

  • Maybe add helpers and additional goodies around auto-complete, edit-in-place, ...