giuseppemorelli/magerun-addons
Composer 安装命令:
composer require giuseppemorelli/magerun-addons
包简介
Addon commands for N98 MageRun
关键字:
README 文档
README
GMdotnet_MagerunAddons
Additional commands for n98-magerun.
This is a tools only for develop environment. Please, do not use in production environment!
Installation
Official guide: n98-magerun docs
A global folder for the system
Clone the repository inside the folder:
/usr/local/share/n98-magerun/modules/
A folder inside the user’s home dir
Clone the repository inside the folder:
~/.n98-magerun/modules/
A folder inside the Magento installation (manually)
Copy the repository (not clone in case you have already git on your project) inside the folder:
MAGENTO_ROOT/lib/n98-magerun/modules/
A folder inside the Magento installation (with composer)
composer require giuseppemorelli/magerun-addons <last version>
(you need modman as a pre-requisite)
Commands
Create Dummy Products
(experimental). Create dummy products with all default vanilla magento or your custom values.
Interactive mode or via shell arguments or mixed.
$ n98-magerun.phar product:create:dummy
| Argument | Description | Accepted Values |
|---|---|---|
website-id |
Website ID (default: 1) | only integer |
attribute-set-id |
Attribute Set Id (default: Default with ID 4) | only integer |
product-type |
Product Type (default: simple) | simpleconfigurable[grouped - work in progress] |
sku-prefix |
Prefix for product's sku (default: MAGPROD-) | any |
category-ids |
Categories for product association (comma separated - default null) | only integer with comma separated |
product-status |
Product Status (default: enabled) | only integer 1 - for enabled 2 - for disabled |
product-visibility |
Product Visibility (default: visibile_both) | only integer 1 - for not visible 2 - for visible in catalog 3 - for visible in search 4 - for visible in both |
product-number |
Number of products to create | only integer |
Extra options asked only for configurabile products (actually only in interactive mode)
| Argument | Description | Accepted Values |
|---|---|---|
attribute-configurable-number |
Number of configurable attributes to use ("super attributes") | only integer |
attribute-configurable-codes |
Attribute codes for configurable products ("super attributes") | only text |
product-children-number |
Number of products children | only integer |
####INFO
#####IMAGES
- Product's temp images are saved into
MAGENTO_ROOT/media/import/folder with this filename:<SKU-PREFIX><COUNTER>."-".sha1(<SKU-PREFIX><COUNTER>).".jpg"
After creation you can clean the folder if you want.
#####CONFIGURABLE PRODUCTS
- You need to create configurable attributes and insert same values. Then add these attributes to attribute set you want use
Create Dummy Categories
(This command was included in n98-magerun 1.97.23)
Create dummy categories with all default vanilla magento or your custom values.
Interactive mode or via shell arguments or mixed.
$ n98-magerun.phar category:create:dummy
| Argument | Description | Accepted Values |
|---|---|---|
store-id |
Id of Store to create categories (default: 1) | only integer |
category-number |
Number of categories to create (default: 1) | only integer |
children-categories-number |
Number of children for each category created (default: 0 - use '-1' for random from 0 to 5) | only integer or -1 for random number from 0 to 5 |
category-name-prefix |
Category Name Prefix (default: 'My Awesome Category') | any |
Create Dummy Attribute Values
(This command was included in n98-magerun 1.97.23)
Create dummy attribute values (ONLY FOR DROPDOWN ATTRIBUTE)
Interactive mode or via shell arguments or mixed.
$ n98-magerun.phar eav:attribute:create-dummy-values
| Argument | Description | Accepted Values |
|---|---|---|
locale |
Locale value in ISO standard like en_US | only string |
attribute-id |
Attribute ID to add values | only integer |
values-type |
Types of Values to create (default int) | intstringcolorsizedesigner |
values-number |
Number of Values to create (default 1) | only integer |
Clean log tables
Clean (truncate mysql command) all tables that are used only for statistics or log. If you need to reduce database size, this is the command to execute. Attention! If you use Magento statistics about visitors, maybe with this command you can lose some data.
$ n98-magerun.phar db:maintain:clean-table
List of tables:
| Name |
|---|
| dataflow_batch_export |
| dataflow_batch_import |
| log_customer |
| log_quote |
| log_summary |
| log_summary_type |
| log_url |
| log_url_info |
| log_visitor |
| log_visitor_info |
| log_visitor_online |
| report_event |
| report_viewed_product_index |
Requirements
- (tested with n98-magerun > 1.96.1)
- (tested with magento 1.9.x)
- (tested with php 5.6)
WORK IN PROGRESS
- create dummy grouped products
- create dummy virtual products
- create dummy bundle products
Contribution
Any contribution is highly appreciated. The best way to contribute code is to open a pull request on GitHub.
Please create your pull request against the develop branch
License
OSL - Open Software Licence 3.0
Credits
Thanks to NETZ98 for creating this incredible tool.
Thanks to Kalen Jordan and Peter Jaap Blaakmeer to start contributing n98-magerun with their addons.
Thanks to lorempixel.com for the sample images.
giuseppemorelli/magerun-addons 适用场景与选型建议
giuseppemorelli/magerun-addons 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 20 次下载、GitHub Stars 达 8, 最近一次更新时间为 2019 年 04 月 24 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「cli」 「installer」 「magento」 「magerun」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 giuseppemorelli/magerun-addons 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 giuseppemorelli/magerun-addons 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 giuseppemorelli/magerun-addons 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Installs Aura packages to the Aura system "package" directory.
Install WordPress must-use plugins with Composer
Arikam CMS installers
Magento 2 Social Login extension is designed for quick login to your Magento 2 store without procesing complex register steps
Magento - Clean up session extension
统计信息
- 总下载量: 20
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 9
- 点击次数: 15
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2019-04-24