justbetter/laravel-magento-products 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

justbetter/laravel-magento-products

最新稳定版本:1.7.0

Composer 安装命令:

composer require justbetter/laravel-magento-products

包简介

Package to store product data in a local DB

README 文档

README

Tests Analysis Total downloads

This package tracks if products exist in Magento by storing the status locally in the DB. We developed this to prevent multiple calls when multiple packages need to check product existence in Magento.

Installation

Require this package:

composer require justbetter/laravel-magento-products

Add the following to your schedule to automatically search for products in Magento.

$schedule->command(\JustBetter\MagentoProducts\Commands\CheckKnownProductsExistenceCommand::class)->twiceDaily(); $schedule->command(\JustBetter\MagentoProducts\Commands\DiscoverMagentoProductsCommand::class)->daily();

Important

This package requires Job Batching

Usage

Checking if a product exists in Magento

You can use this package to determine if products exist in Magento. For example:

$exists = app(\JustBetter\MagentoProducts\Contracts\ChecksMagentoExistence::class)->exists('sku')

If it does not exist the sku will still be stored in the database. The \JustBetter\MagentoProducts\Commands\CheckKnownProductsExistenceCommand command will automatically check these known products for existence.

Retrieving product data

You can use this package to retrieve product data. This data will be saved in the database and automatically retrieved when it is older than X hours. You can configure the amount of hours in the config file For example:

$exists = app(\JustBetter\MagentoProducts\Contracts\RetrievesProductData::class)->retrieve('sku')

Events

When your application discovers new products in Magento you should dispatch one of the following events:

\JustBetter\MagentoProducts\Events\ProductDiscoveredEvent containing a single sku.

When a single product or multiple products appear in Magento, an event is dispatched:

\JustBetter\MagentoProducts\Events\ProductCreatedInMagentoEvent containing a single sku.

Quality

To ensure the quality of this package, run the following command:

composer quality

This will execute three tasks:

  1. Makes sure all tests are passed
  2. Checks for any issues using static code analysis
  3. Checks if the code is correctly formatted

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 48.3k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 17
  • 点击次数: 3
  • 依赖项目数: 4
  • 推荐数: 0

GitHub 信息

  • Stars: 17
  • Watchers: 3
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固