mage-os/mageos-common-async-events
Composer 安装命令:
composer require mage-os/mageos-common-async-events
包简介
Send REST requests to external endpoints asynchronously. This module implements the most common events like order creation and customer change.
README 文档
README
Send REST requests to external endpoints asynchronously. This module implements the most common events like order creation and customer change.
This module uses the Mage-OS Asynchronous Events module as a basis.
Installation
composer require mage-os/mageos-common-async-events
If you run into an error like "Could not find a version of package mage-os/mageos-common-async-events matching your minimum-stability (stable).", run this command instead:
composer require mage-os/mageos-common-async-events @dev
Enable and install the module:
bin/magento setup:upgrade
Usage
You can now use the following events without having to implement them yourself.
| Event identifier | Description | Remarks |
|---|---|---|
| customer.created | Whenever a customer is created | |
| customer.updated | Whenever a customer is saved, except it's new | |
| customer.login | Whenever a customer logs in successfully | |
| customer.address.created | Whenever a customer address is created | |
| customer.address.updated | Whenever a customer address is saved, except it's new | |
| sales.order.created | When a new order is created | |
| sales.order.updated | When the state of an existing order is changed | |
| sales.order.paid | When an order is fully paid | |
| sales.order.shipped | When an order is fully shipped | |
| sales.order.holded | When an order is set "on hold" | |
| sales.order.unholded | When an order is released from "on hold" | |
| sales.order.cancelled | When an order is cancelled | |
| sales.shipment.created | When a new shipment is created | |
| sales.invoice.created | When a new invoice is created | |
| sales.invoice.paid | When an invoice is paid | |
| sales.creditmemo.created | When a new creditmemo is created | |
| catalog.product.created | When a new product is created | |
| catalog.product.updated | When a product is updated | |
| cms.page.created | When a CMS page has been created | |
| cms.page.updated | When a CMS page is updated | |
| cms.block.created | When a CMS block has been created | |
| cms.block.updated | When a CMS block is updated |
You can use these events by
- creating a new subscription via Mage-OS REST API
- creating a new subscription with the Mage-OS Async Events Admin UI module
3rd Party Events
| Event identifier | Description | Module |
|---|---|---|
| customer.login_failed | Whenever a customer fails to log in | zero1/async-event-customer-login-failed |
| customer.create_failed | Whenever a customer fails to sign up for an account | zero1/async-event-customer-create-failed |
mage-os/mageos-common-async-events 适用场景与选型建议
mage-os/mageos-common-async-events 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 9.27k 次下载、GitHub Stars 达 14, 最近一次更新时间为 2024 年 01 月 10 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 mage-os/mageos-common-async-events 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mage-os/mageos-common-async-events 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 9.27k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 14
- 点击次数: 2
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-01-10