ikezoe-makoto / cakephp3bulker
cakephp3bulker plugin for CakePHP
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 0
Open Issues: 0
Type:cakephp-plugin
Requires
- cakephp/cakephp: ^3.4
Requires (Dev)
- phpunit/phpunit: ^5.7|^6.0
This package is not auto-updated.
Last update: 2025-05-11 05:02:18 UTC
README
Installation
You can install this plugin into your CakePHP application using composer.
The recommended way to install composer packages is:
composer require ikezoe-makoto/cakephp3bulker
Configuration
Load the plugin:
// In /config/bootstrap.php
Plugin::load('Cakephp3Bulker');
Make a model Bulker
Use the Bulker Behavior on your model Table class:
// in src/Model/Table/UsersTable.php
...
class UsersTable extends Table
{
public function example()
{
$this->addBehavior('Cakephp3Bulker.Bulker');
...
}
Use
Bulk Insert && Bulk Update
// in src/Model/Table/UsersTable.php $this->saveBulk($manySaveData);