PHPackages                             nanexcool/cakephp-yo-plugin - 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. [Framework](/categories/framework)
4. /
5. nanexcool/cakephp-yo-plugin

ActiveCakephp-plugin[Framework](/categories/framework)

nanexcool/cakephp-yo-plugin
===========================

Yo Plugin for CakePHP

v0.2.1(11y ago)217MITPHPPHP &gt;=5

Since Jul 23Pushed 11y ago1 watchersCompare

[ Source](https://github.com/nanexcool/yo-plugin-cakephp)[ Packagist](https://packagist.org/packages/nanexcool/cakephp-yo-plugin)[ Docs](https://github.com/nanexcool/yo-plugin-cakephp)[ RSS](/packages/nanexcool-cakephp-yo-plugin/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

Yo plugin for CakePHP
=====================

[](#yo-plugin-for-cakephp)

This CakePHP plugin features a simple component to send Yos from your controllers and a behavior that you can attach to your models.

Get your API Key at

Requirements
------------

[](#requirements)

PHP &gt;= 5.2 with CURL

CakePHP 2 and up

Usage
-----

[](#usage)

Copy `Yo` Folder to your `app/Plugin` directory.

Load plugin in `app/Config/bootstrap.php`

```
CakePlugin::loadAll(); // Loads all plugins at once
CakePlugin::load('Yo'); //Loads a single plugin
```

Enter your API Key in `Yo/Config/config.php`

```
Configure::write('Yo.apiKey', 'YOUR_API_KEY');
```

### Using Yo in a controller

[](#using-yo-in-a-controller)

Add the Yo Component to a controller, or to `AppController` to use it in every controller.

Call `$this->Yo->all()` to send a YO to everyone, or `$this->Yo->user('USERNAME')` to send a YO to USERNAME.

Check the example below

```
class UsersController extends AppController {

    // Add the component
    public $components = array('Yo.Yo');

    public function index() {
    	// send a Yo to everyone
    	$this->Yo->all();

    	// send a Yo to user USERNAME
    	$this->Yo->user('USERNAME');
    }

}
```

### Using Yo in a model

[](#using-yo-in-a-model)

If you want to get a Yo whenever a model is created, updated or deleted use the behavior included.

In the model you care about add `$actsAs = array('Yo.Yo')`. By default it will Yo only when a record is created. If you care about updates and deletes you'll need to modify the options.

By default the behavior sends a Yo using `$this->Yo->all()`. If you want to send to only one user, modify the setting when adding the behavior in `$actsAs`.

Check the example below

```
class User extends AppModel {

	// These settings are defaults.
	public $actsAs = array(
		'Yo.Yo' => array(
			'afterSave' => true,
			'afterUpdate' => false,
			'afterDelete' => false,
			'username' => '' // set a username so it doesn't send to everyone
		)
	);
}
```

License
-------

[](#license)

MIT

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

4316d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/60e84cfe6659a7448fb428872538610dc4432008ac11935c94ec9556adac827c?d=identicon)[nanexcool](/maintainers/nanexcool)

---

Top Contributors

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

---

Tags

cakephpYo

### Embed Badge

![Health badge](/badges/nanexcool-cakephp-yo-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/nanexcool-cakephp-yo-plugin/health.svg)](https://phpackages.com/packages/nanexcool-cakephp-yo-plugin)
```

###  Alternatives

[composer/installers

A multi-framework Composer library installer

1.4k136.0M6.0k](/packages/composer-installers)[cakephp/debug_kit

CakePHP Debug Kit

86514.0M138](/packages/cakephp-debug-kit)[cakephp/utility

CakePHP Utility classes such as Inflector, String, Hash, and Security

12027.1M63](/packages/cakephp-utility)[friendsofcake/bootstrap-ui

Bootstrap front-end framework support for CakePHP

3492.1M32](/packages/friendsofcake-bootstrap-ui)[cakephp/database

Flexible and powerful Database abstraction library with a familiar PDO-like API

9724.6M33](/packages/cakephp-database)[cakephp/migrations

Database Migration plugin for CakePHP

13912.0M222](/packages/cakephp-migrations)

PHPackages © 2026

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