msp / codemonkey
msp/codemonkey
MSP_CodeMonkey
Code Monkey is a Magento 2 developers tool to type less and do more :) .
With code monkey you can quickly:
- CRUD: Create Repositories, model triads and Data API
- DDD-CQRS: Create get/save/delete commands approach (see MSI Magento module)
Installation
composer require msp/codemonkey
Guide
Create CRUD
Quick and dirty:
php bin/magento msp:cm:crud My_Module Myentity mydatabasetable
In the previous example, CodeMonkey will read My_Module configuration and mydatabasetable table from your DB and will create model triads,
interfaces and di.xml entries according to your configuration.
Getters and setters will be automatically provided in your Model files depending on your table columns configuration.
Create CQRS for DDD approach
Quick and dirty:
php bin/magento msp:cm:ddd-cqrs My_Module My_ModuleApi Myentity mydatabasetable
In the previous example, CodeMonkey will read My_Module configuration and mydatabasetable table from your DB and will create model triads,
interfaces and di.xml entries according to your configuration.
Getters and setters will be automatically provided in your Model files depending on your table columns configuration.
See Magento 2 MSI project for this approach.
No changelog yet
The vendor hasn't published a changelog. Tagged releases appear in the Versions tab.
| Version | Stability | QA Status | Compatibility | Released |
|---|---|---|---|---|
| 1.2.13 | stable | Fail | Not yet tested Details | 2018-07-03 13:10:06 |
| 1.2.11 | stable | Not tested | Not yet tested Details | 2018-02-16 19:38:49 |
| 1.2.10 | stable | Not tested | Not yet tested Details | 2018-02-16 19:36:51 |
| 1.2.9 | stable | Not tested | Not yet tested Details | 2018-02-16 16:06:52 |
| 1.2.8 | stable | Not tested | Not yet tested Details | 2018-02-13 09:30:40 |
| 1.2.7 | stable | Not tested | Not yet tested Details | 2018-02-13 09:23:51 |
| 1.2.6 | stable | Not tested | Not yet tested Details | 2018-02-09 17:08:38 |
| 1.2.5 | stable | Not tested | Not yet tested Details | 2018-02-02 17:54:34 |
| 1.2.4 | stable | Not tested | Not yet tested Details | 2018-02-02 16:34:04 |
| 1.2.3 | stable | Not tested | Not yet tested Details | 2018-02-01 16:42:58 |
| 1.2.2 | stable | Not tested | Not yet tested Details | 2018-02-01 15:52:25 |
| 1.2.1 | stable | Not tested | Not yet tested Details | 2018-02-01 10:52:04 |
| 1.2.0 | stable | Not tested | Not yet tested Details | 2018-01-31 16:43:04 |
| 1.1.0 | stable | Not tested | Not yet tested Details | 2018-01-31 16:02:03 |
| 1.0.7 | stable | Not tested | Not yet tested Details | 2017-10-30 16:14:57 |
| 1.0.6 | stable | Not tested | Not yet tested Details | 2017-10-25 15:56:19 |
| 1.0.5 | stable | Not tested | Not yet tested Details | 2017-10-24 09:11:22 |
| 1.0.4 | stable | Not tested | Not yet tested Details | 2017-10-22 18:21:04 |
| 1.0.3 | stable | Not tested | Not yet tested Details | 2017-10-22 15:15:31 |
| 1.0.2 | stable | Not tested | Not yet tested Details | 2017-10-20 07:49:41 |
| 1.0.1 | stable | Not tested | Not yet tested Details | 2017-10-09 10:16:20 |
| 1.0.0 | stable | Not tested | Not yet tested Details | 2017-10-09 10:07:46 |
| 0.1.2 | stable | Not tested | Not yet tested Details | 2016-11-14 16:45:40 |
| 0.1.1-2 | stable | Not tested | Not yet tested Details | 2016-11-11 09:22:53 |
| 0.1.1 | stable | Not tested | Not yet tested Details | 2016-11-11 09:20:54 |
| 0.1.0 | stable | Not tested | Not yet tested Details | 2016-11-10 17:41:27 |
Requires 4
| Package | Constraint |
|---|---|
| php | ^7.0|^7.1|^7.2 |
| msp/common | * |
| magento/framework | 100.1.*|100.2.*|100.3.* |
| magento/magento-composer-installer | * |
Compatibility
Each Magento release line is installed on its supported PHP versions, then the module is built (DI compilation + static-content deploy) and its unit and integration suites are run. The matrix shows the lines and PHP versions the module is confirmed to install and run on. Code-quality results further down (phpstan, phpcs, …) are reported separately and never affect compatibility.
| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | not tested | not tested | ||
| 2.4.8 | not tested | not tested | ||
| 2.4.9 | not tested | not tested |
Code Quality
Advisory checks against the module's source. Static analysis runs once across the whole module; PHPStan re-runs per Magento + PHP version because resolvable symbols differ between releases. These NEVER affect the Compatibility badge. A phpcs finding can't make a module incompatible.
Static analysis
Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.
| Tool | Status | Findings | Summary |
|---|---|---|---|
| PHPCS | Fail | 18 | 1 error, 17 warnings (ruleset: Magento2) |
| PHPMD | Warning | 2 | 2 rule violations (MissingImport:2) |
| Cpd | Warning | 1 | 1 duplicated chunk spanning 13 total lines (min-lines=5, min-tokens=70) |
| Composer validate | Info | 2 | valid; 2 advisory notes (composer validate --strict) |
PHPStan
Type-checks the module's PHP against a real Magento install at the configured gate level. Re-runs per Magento and PHP version because resolvable symbols differ between releases.
Tests
Unit and integration suites, run for each applicable Magento and PHP version. A test failure speaks to the module's behaviour, not its compatibility with a Magento line, so it is reported here separately and never reddens the compatibility matrix.
Unit tests
| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | ||
| 2.4.8 | N/A | N/A | ||
| 2.4.9 | N/A | N/A |
Integration tests
| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | ||
| 2.4.8 | N/A | N/A | ||
| 2.4.9 | N/A | N/A |
Security
Security checks run directly against the module: an audit of its declared dependencies for known vulnerabilities (composer audit) and a scan of its source for malware and web-shell signatures. Each runs once. A malware detection fails the version outright.
More from msp
View vendorTurn an existing module into recurring revenue.
If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.