PHPackages                             dereuromark/cakephp-ajax - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. dereuromark/cakephp-ajax

ActiveCakephp-plugin[Templating &amp; Views](/categories/templating)

dereuromark/cakephp-ajax
========================

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

3.2.0(1mo ago)54262.9k↓27.4%241MITPHPPHP &gt;=8.2CI passing

Since Sep 30Pushed 6d ago6 watchersCompare

[ Source](https://github.com/dereuromark/cakephp-ajax)[ Packagist](https://packagist.org/packages/dereuromark/cakephp-ajax)[ Docs](https://github.com/dereuromark/cakephp-ajax)[ RSS](/packages/dereuromark-cakephp-ajax/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (8)Versions (28)Used By (1)

CakePHP Ajax Plugin
===================

[](#cakephp-ajax-plugin)

[![CI](https://github.com/dereuromark/cakephp-ajax/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/dereuromark/cakephp-ajax/actions/workflows/ci.yml?query=branch%3Amaster)[![Coverage Status](https://camo.githubusercontent.com/0f9c9a38d25f6f7a75a584bde96680073115f697b1face580273293ea9c1b654/68747470733a2f2f636f6465636f762e696f2f67682f6465726575726f6d61726b2f63616b657068702d616a61782f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/dereuromark/cakephp-ajax)[![PHPStan](https://camo.githubusercontent.com/f60d96f7c2579690ab6dfa8918f777fe93a02a92301c661eb38a85861a92b780/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c253230382d627269676874677265656e2e7376673f7374796c653d666c6174)](https://phpstan.org/)[![Latest Stable Version](https://camo.githubusercontent.com/07d3d2db51f61a190d81bfb05cb99091793a7a46d1084641a166660e24644bc2/68747470733a2f2f706f7365722e707567782e6f72672f6465726575726f6d61726b2f63616b657068702d616a61782f762f737461626c652e737667)](https://packagist.org/packages/dereuromark/cakephp-ajax)[![Minimum PHP Version](https://camo.githubusercontent.com/ec21f169d70b69344c67d6f18fa1a24d20476d2f0cd680e8c4a1534c22f34e5f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230382e322d3838393242462e737667)](https://php.net/)[![License](https://camo.githubusercontent.com/1421e79b9ccf6999755d8ef5776357aeeec2b63d7e84023d99771728dd0524f1/68747470733a2f2f706f7365722e707567782e6f72672f6465726575726f6d61726b2f63616b657068702d616a61782f6c6963656e73652e737667)](LICENSE)[![Total Downloads](https://camo.githubusercontent.com/ca2f0b330b11683a3d59fb4aeded415109f7a6104d4f29366328a0d371af4d1c/68747470733a2f2f706f7365722e707567782e6f72672f6465726575726f6d61726b2f63616b657068702d616a61782f642f746f74616c2e737667)](https://packagist.org/packages/dereuromark/cakephp-ajax)[![Coding Standards](https://camo.githubusercontent.com/4788bab10b61ca8b0d56334238717a9191fe9cceecb154973f8854146a2bb5a6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f63732d5053522d2d322d2d522d707572706c652e7376673f7374796c653d666c61742d737175617265)](https://github.com/php-fig-rectified/fig-rectified-standards)

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

This branch is for **CakePHP 5.0+**. For details see [version map](https://github.com/dereuromark/cakephp-ajax/wiki#cakephp-version-map).

What is this plugin for?
------------------------

[](#what-is-this-plugin-for)

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

### Demo

[](#demo)

See the [Sandbox app](https://sandbox.dereuromark.de/sandbox/ajax-examples) for live demos.

### Key features

[](#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](https://www.dereuromark.de/2014/01/09/ajax-and-cakephp/) for details on the history of this view class and plugin code.

Installation &amp; Docs
-----------------------

[](#installation--docs)

- [Documentation](docs/README.md)

### Possible TODOs

[](#possible-todos)

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

###  Health Score

68

—

FairBetter than 99% of packages

Maintenance96

Actively maintained with recent releases

Popularity48

Moderate usage in the ecosystem

Community24

Small or concentrated contributor base

Maturity86

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 88.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~194 days

Recently: every ~240 days

Total

21

Last Release

45d ago

Major Versions

1.5.1 → 2.0.0-beta2020-01-08

2.1.0 → 3.0.0-RC2023-10-03

PHP version history (7 changes)1.0.0PHP &gt;=5.4

1.1.0PHP &gt;=5.5

1.2.0PHP &gt;=5.6

2.0.0-betaPHP &gt;=7.2

2.1.0PHP &gt;=7.3

3.0.0-RCPHP &gt;=8.1

3.1.1PHP &gt;=8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/39854?v=4)[Mark Scherer](/maintainers/dereuromark)[@dereuromark](https://github.com/dereuromark)

---

Top Contributors

[![dereuromark](https://avatars.githubusercontent.com/u/39854?v=4)](https://github.com/dereuromark "dereuromark (185 commits)")[![Zuluru](https://avatars.githubusercontent.com/u/514172?v=4)](https://github.com/Zuluru "Zuluru (15 commits)")[![sarrala](https://avatars.githubusercontent.com/u/3417983?v=4)](https://github.com/sarrala "sarrala (3 commits)")[![adamharley](https://avatars.githubusercontent.com/u/863768?v=4)](https://github.com/adamharley "adamharley (1 commits)")[![Oxicode](https://avatars.githubusercontent.com/u/1320709?v=4)](https://github.com/Oxicode "Oxicode (1 commits)")[![joshrhykerd](https://avatars.githubusercontent.com/u/227919?v=4)](https://github.com/joshrhykerd "joshrhykerd (1 commits)")[![Andream98](https://avatars.githubusercontent.com/u/52160332?v=4)](https://github.com/Andream98 "Andream98 (1 commits)")[![gi-jones](https://avatars.githubusercontent.com/u/25205152?v=4)](https://github.com/gi-jones "gi-jones (1 commits)")

---

Tags

ajaxcakephpcakephp-pluginphpasynchronousplugincakephpviewajax

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dereuromark-cakephp-ajax/health.svg)

```
[![Health](https://phpackages.com/badges/dereuromark-cakephp-ajax/health.svg)](https://phpackages.com/packages/dereuromark-cakephp-ajax)
```

###  Alternatives

[friendsofcake/cakephp-csvview

A CSV View class for CakePHP

1782.6M5](/packages/friendsofcake-cakephp-csvview)[dereuromark/cakephp-tinyauth

A CakePHP plugin to handle user authentication and authorization the easy way.

131240.2k13](/packages/dereuromark-cakephp-tinyauth)[dereuromark/cakephp-feed

A CakePHP plugin containing RssView and AtomView classes for generating RSS 2.0 and Atom 1.0 feeds.

1356.6k1](/packages/dereuromark-cakephp-feed)[dereuromark/cakephp-setup

A CakePHP plugin containing lots of useful management tools

36199.6k2](/packages/dereuromark-cakephp-setup)[dereuromark/cakephp-meta

A CakePHP plugin for SEO meta tags, OpenGraph and Twitter Cards

1014.7k1](/packages/dereuromark-cakephp-meta)[dereuromark/cakephp-databaselog

A CakePHP plugin for storing and viewing application logs in the database

44172.5k2](/packages/dereuromark-cakephp-databaselog)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
