mygento / jeeves
cli tool to generate M2 code
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 3
Forks: 4
Open Issues: 7
pkg:composer/mygento/jeeves
Requires
- consolidation/self-update: ^2.2.0
- mygento/coding-standard: ~2.14.0
- nette/php-generator: ^4.1
- sabre/xml: ^4.0
- symfony/console: ^6.0
- symfony/filesystem: ^6.0
- symfony/yaml: ^6.0
Requires (Dev)
- phpunit/phpunit: ^10.0
This package is auto-updated.
Last update: 2025-10-31 11:05:23 UTC
README
Code generator M2
install
go to https://github.com/mygento/jeeves/releases/latest download phar and then
sudo mv jeeves.phar /usr/local/bin/jeeves
sample
look in .jeeves.phpunit_v1.yaml or .jeeves.phpunit_v0.yaml
Yaml Schema
- Root Level
| Property | Description | Example |
|---|---|---|
| settings | Global Settings |
|
| hash, [a-Z] | Vendor Name: [Module] | Mygento |
- Module Level
| Property | Description |
|---|---|
| settings | Module Settings |
| shipping | Module Shipping |
| entities | Module Entity List |
- Entity Level
| Property | Description | Required | Default |
|---|---|---|---|
| settings | Entity Settings |
N | |
| columns | Entity Columns |
Y | |
| indexes | Entity Indexes |
N | |
| fk | Entity Fk |
N | |
| tablename | String | N | %vendor%%module%%entity% |
| comment | String | N | |
| api | Boolean | N | false |
| graphql | Boolean | N | false |
| cacheable | Boolean | N | false |
| cache_tag | String | N | |
| per_store | Boolean | N | false |
- Columns Level
| Property | Description | Required | Default | Comment |
|---|---|---|---|---|
| type | String | Y | ||
| pk | Boolean | N | false | |
| identity | Boolean | N | false | Auto Increment |
| unsigned | Boolean | N | false | |
| comment | String | N | ||
| nullable | Boolean | N | true | |
| length | Integer | N | ||
| default | String | N | ||
| on_update | Boolean | N | false |
- Indexes Level
| Property | Description | Required |
|---|---|---|
| type | String | Y |
| columns | String[] | Y |
- Fk Level
| Property | Description | Required |
|---|---|---|
| column | String | Y |
| referenceTable | String | Y |
| referenceColumn | String | Y |
| indexName | String | Y |
- Settings level
| Property | Description | Required | Default | Comment |
|---|---|---|---|---|
| php_version | String | N | PHP_VERSION | |
| admin_route | String | N | %module% | |
| version | string | N | 2.4 | Magento version |