定制 boxblinkracer/shopware-ai-demodata 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

boxblinkracer/shopware-ai-demodata

Composer 安装命令:

composer require boxblinkracer/shopware-ai-demodata

包简介

AI Demo Data

README 文档

README

Build Status GitHub release (latest by date) GitHub commits since latest release (by date) Packagist Downloads

This plugin is designed to generate demo data for Shopware 6 based on artificial intelligence (AI) technology. It allows you to quickly populate your Shopware 6 shop with sample data using AI-generated product information.

Installation

ZIP Files

You can download the stable ZIP file releases from Github. Just download the ZIP file and install it in the Shopware administration.

Composer Installation

You can install the plugin using composer. Just navigate to your Shopware 6 project's root directory and run the following command:

composer require boxblinkracer/shopware-ai-demodata

Manual Installation

Clone this repository to your Shopware 6 project's custom/plugins directory.

Navigate to your Shopware 6 project's root directory and run the following command to install the plugin dependencies:

make prod

Now just install the plugin in the Shopware 6 administration panel and activate it or by using this CLI command.

php bin/console plugin:refresh
php bin/console plugin:install --activate AIDemoData

Configuration

Log in to your Shopware 6 administration panel and navigate to Settings > System > Plugins.

Search for "AI Demo Data" in the plugin list and navigate to the plugin's configuration page and enter your OpenAI API key. This key is required for the AI-generated demo data generation process.

You can also provide your API key using a CLI command of Shopware:

php bin/console system:config:set AIDemoData.config.apiKey 123

There are various things that you can configure in the plugin, such as the used text and image models, styles of images and way more.

Some of these settings can also be adjusted directly when running the CLI commands.

Usage

Once the plugin is activated and configured with your OpenAI API key, you can use the command-line interface (CLI) to generate demo data.

To generate demo data, open your terminal, navigate to your Shopware 6 project's root directory, and run the following commands.

Generate Products

php bin/console ai-demodata:generate:products --keywords=''

# Sample
php bin/console ai-demodata:generate:products --keywords='baseball gloves, right and left, leather, high quality' --count=2

OpenAI will automatically figure out, if it makes sense to create product variants. If the product can be used as variant, then the plugin will read your configuration for the "Property for Product Variants". All options of this property will be used to create variants. I recommend using a property like "Color" or "Size" for this.

Feature Argument Description
Keywords --keywords Specifies the keywords or topics related to the desired demo data. You can play around with these values to generate different demo data and improve your results
Count --count Indicates the number of demo data entries to generate (default: 1)
Category --category The optional name of the category if you would like to automatically assign the generated demo data to a category in the Storefront.
Sales Channel --saleschannel If you provide a category, you can also provide the sales channel name in case you have multiple ones.
Images --images Indicates whether the generated demo data should contain images (default: plugin-configuration)
Images Size --images-size Specifies a size for the images of allowed OpenAI sizes like 1024x1024, 512x512 (default: plugin-configuration)

After running the command, the plugin will use the specified keywords and AI technology to generate demo data based on your Shopware 6 shop's configured product structure.

Generate Media Images

php bin/console ai-demodata:generate:media --keywords=''

# Sample
php bin/console ai-demodata:generate:media --keywords='advertisement banner with shoes, woman standing in a city on a square, presenting her white leather high heels, focus on shoes, sun is shining, bright colors, suitcase next to shoes, grass in the background' --count=1
Feature Argument Description
Keywords --keywords Specifies the keywords or topics related to the desired demo data. You can play around with these values to generate different demo data and improve your results
Count --count Indicates the number of demo data entries to generate (default: 1)
Size --size Specifies a size for the images of allowed OpenAI sizes like 1024x1024, 512x512 (default: plugin-configuration)

Please note that the generated demo data will be based on AI predictions and may not reflect actual product information. It is recommended to review and adjust the generated data before using it in a production environment.

Contribution

Contributions are always welcome! Please create a pull request to contribute to this project.

You can simply start a development environment with Docker. Just open the devops folder and run the following command:

make run

After a few seconds your development environment should be up and running. You only need to provide your OpenAI API key and that's it.

boxblinkracer/shopware-ai-demodata 适用场景与选型建议

boxblinkracer/shopware-ai-demodata 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.56k 次下载、GitHub Stars 达 29, 最近一次更新时间为 2023 年 06 月 04 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 boxblinkracer/shopware-ai-demodata 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 boxblinkracer/shopware-ai-demodata 我们能提供哪些服务?
定制开发 / 二次开发

基于 boxblinkracer/shopware-ai-demodata 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 1.56k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 29
  • 点击次数: 7
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 29
  • Watchers: 1
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-06-04