PHPackages                             genellern/mysql\_cache\_sp - 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. [Database &amp; ORM](/categories/database)
4. /
5. genellern/mysql\_cache\_sp

ActiveCakephp-behavior[Database &amp; ORM](/categories/database)

genellern/mysql\_cache\_sp
==========================

The behavior caches parameters by name and makes calls to Mysql stored procedures in a clean and more readable way.

v1.0(9y ago)140MITPHP

Since Jan 24Pushed 9y ago1 watchersCompare

[ Source](https://github.com/genellern/Cakephp3-CacheSP)[ Packagist](https://packagist.org/packages/genellern/mysql_cache_sp)[ RSS](/packages/genellern-mysql-cache-sp/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (4)Used By (0)

Cakephp3-CacheSP
================

[](#cakephp3-cachesp)

Cache parameters to call Mysql stored procedures.

The behavior caches parameters by name and makes calls to Mysql stored procedures in a clean and more readable way.

Background
----------

[](#background)

Many calls to stored procedures are dirty and confusing, so I tried to put this in a better, hope you enjoy it and contribute if you think something could be better, I know I have to write some testing.

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

[](#requirements)

- CakePHP 3.x
- Patience

Usage
-----

[](#usage)

- Load it in your table.

    `$this->addBehavior('CacheSP');`
- Call your procedure:

    `$this->callSP('party_roles_relate', ['partyId'=>$partyId, 'roleName'=>User::$rolCode]);`

    Call it with expressions:

    Create the query object. `$query = $this->find();`

    Create the expression and pass it. `$this->callSP('party_roles_last_request', ['partyId'=>$partyId, 'updateTime'=>$query->func()->now(), 'roleName'=>User::$rolCode]);`
- This will generate a query like this:

    `CALL party_roles_relate('USER', '1')`

    Called with expressions:

    `CALL party_roles_relate_record ('Generator', NOW())`
- A description of my procedure.

    `CREATE PROCEDURE party_roles_relate (IN roleName varchar (45), IN partyId int(11))`

    NOTE: As you can see, order doesn't matter anymore :)
- Enjoy.

License
-------

[](#license)

The MIT License (MIT)

Copyright (c) 2015 Geneller Naranjo

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

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

3443d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4094671?v=4)[Geneller Naranjo](/maintainers/genellern)[@genellern](https://github.com/genellern)

---

Top Contributors

[![genellern](https://avatars.githubusercontent.com/u/4094671?v=4)](https://github.com/genellern "genellern (18 commits)")[![bobmulder](https://avatars.githubusercontent.com/u/5465074?v=4)](https://github.com/bobmulder "bobmulder (1 commits)")

---

Tags

mysqlcakephpBehaviorprocedurestored

### Embed Badge

![Health badge](/badges/genellern-mysql-cache-sp/health.svg)

```
[![Health](https://phpackages.com/badges/genellern-mysql-cache-sp/health.svg)](https://phpackages.com/packages/genellern-mysql-cache-sp)
```

###  Alternatives

[doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.

9.7k595.8M6.5k](/packages/doctrine-dbal)[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k29.9M42](/packages/kirschbaum-development-eloquent-power-joins)[josegonzalez/cakephp-upload

CakePHP plugin to handle file uploading sans ridiculous automagic

5461.4M11](/packages/josegonzalez-cakephp-upload)[scienta/doctrine-json-functions

A set of extensions to Doctrine that add support for json query functions.

58825.2M48](/packages/scienta-doctrine-json-functions)[itosho/easy-query

CakePHP behavior plugin for easily generating some complicated queries like (bulk) insert/upsert etc.

2623.7k](/packages/itosho-easy-query)[liqueurdetoile/cakephp-orm-json

Cakephp plugin to provide easy control over JSON type fields in database

1363.5k](/packages/liqueurdetoile-cakephp-orm-json)

PHPackages © 2026

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