承接 fr3on/magento2-lapis 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

fr3on/magento2-lapis

最新稳定版本:0.0.1

Composer 安装命令:

composer require fr3on/magento2-lapis

包简介

Automatic LAPIS lifecycle declarations for Magento 2 REST APIs

README 文档

README

Build Status License Packagist Downloads

Automatic LAPIS (Lifecycle & Protocol Intent Specification) declarations for Magento 2 REST APIs.

Mission

This composer package automatically generates LAPIS declarations from a live Magento 2 installation. It introspects what Magento already knows—Order statuses, Transitions, State-to-Status mappings—and surfaces it in a form every system can consume.

Read-only. This module never writes to Magento's own tables. It only reads.

Installation

composer require fr3on/magento2-lapis
bin/magento module:enable Fr3on_Lapis
bin/magento setup:upgrade

Features

  • RLD Generator: Produces valid YAML/JSON for Order, Invoice, Credit Memo, Shipment, and Cart.
  • REST Response Headers: Every API response includes X-LAPIS-State and X-LAPIS-Transitions.
  • Admin Visualizer: Interactive state machine graphs at System > LAPIS.
  • CLI Tools: Generate and validate declarations from the terminal.

Usage

CLI Commands

bin/magento lapis:generate    # Generates YAML files in var/lapis/
bin/magento lapis:validate    # Validates generated files against schema

Extending via lapis.xml

You can declare custom transitions or override heuristics by creating a lapis.xml in your module's etc directory:

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <resource id="order">
        <transition from="processing" to="custom_state" via="myCustomMethod()" actor="admin"/>
    </resource>
</config>

Dashboard

Navigate to System > LAPIS in the Magento Admin to see the live state machine of your store.

License

MIT

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固