PHPackages                             cakedone/cakephp-api-flash - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. cakedone/cakephp-api-flash

ActiveCakephp-plugin[Utility &amp; Helpers](/categories/utility)

cakedone/cakephp-api-flash
==========================

CakePHP 3 plugin that adds any flash message to the response.

00PHP

Since Oct 16Pushed 10y ago1 watchersCompare

[ Source](https://github.com/pedrofs/cakephp-api-flash)[ Packagist](https://packagist.org/packages/cakedone/cakephp-api-flash)[ RSS](/packages/cakedone-cakephp-api-flash/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

CakePHP API Flash
=================

[](#cakephp-api-flash)

This plugin consists of only a component to be used in your controllers in order to set flash message in the serialized response.

Usage
-----

[](#usage)

Load the component in the desired controller:

```
# the initialize method

$this->loadComponent('ApiFlash');
```

Then just call the `ApiFlashComponent#set(key, message)` method from any controller method:

```
$this->ApiFlash->set('success', 'You were successfully authenticated!')
```

It will simply add an array to the `flash` key in the response body:

```
[
	'flash' => [
		'success' => 'You were successfully authenticated!'
	]
]
```

Config
------

[](#config)

You can configure the key which the array will be set in the response. Simply add a `key` index to the config of `loadComponent` call:

```
# the intialize method

$this->loadComponent('ApiFlash', ['key' => 'feedback']);
```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1820c773b7a3a32052ad9047e9f9f0d9b36d1f8a8d743f191463af6f06f87fb9?d=identicon)[pedrofs](/maintainers/pedrofs)

---

Top Contributors

[![pedrofs](https://avatars.githubusercontent.com/u/56484?v=4)](https://github.com/pedrofs "pedrofs (4 commits)")

### Embed Badge

![Health badge](/badges/cakedone-cakephp-api-flash/health.svg)

```
[![Health](https://phpackages.com/badges/cakedone-cakephp-api-flash/health.svg)](https://phpackages.com/packages/cakedone-cakephp-api-flash)
```

###  Alternatives

[comocode/laravel-ab

Blade level AB tests for Laravel 5

3339.4k](/packages/comocode-laravel-ab)

PHPackages © 2026

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