PHPackages                             fr3on/magento2-lapis - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. fr3on/magento2-lapis

ActiveMagento2-module[HTTP &amp; Networking](/categories/http)

fr3on/magento2-lapis
====================

Automatic LAPIS lifecycle declarations for Magento 2 REST APIs

0.0.1(3mo ago)010MITPHPPHP &gt;=8.1CI passing

Since Apr 14Pushed 3mo agoCompare

[ Source](https://github.com/fr3on/magento2-lapis)[ Packagist](https://packagist.org/packages/fr3on/magento2-lapis)[ RSS](/packages/fr3on-magento2-lapis/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (8)Versions (2)Used By (0)

Magento 2 LAPIS
===============

[](#magento-2-lapis)

[![Build Status](https://github.com/fr3on/magento2-lapis/actions/workflows/tests.yml/badge.svg)](https://github.com/fr3on/magento2-lapis/actions/workflows/tests.yml/badge.svg)[![License](https://camo.githubusercontent.com/e3a76cec02e1cf39d51cf17037f3ee7f63bbae8c069f4670cf3c29af71f7ce10/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6672336f6e2f6d6167656e746f322d6c61706973)](https://camo.githubusercontent.com/e3a76cec02e1cf39d51cf17037f3ee7f63bbae8c069f4670cf3c29af71f7ce10/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6672336f6e2f6d6167656e746f322d6c61706973)[![Packagist Downloads](https://camo.githubusercontent.com/8eb65ac6fcb935fb3d1e0c1424540868b724a9edaf65f758dfe3f334348785cf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6672336f6e2f6d6167656e746f322d6c61706973)](https://camo.githubusercontent.com/8eb65ac6fcb935fb3d1e0c1424540868b724a9edaf65f758dfe3f334348785cf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6672336f6e2f6d6167656e746f322d6c61706973)

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

Mission
-------

[](#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
------------

[](#installation)

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

Features
--------

[](#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
-----

[](#usage)

### CLI Commands

[](#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`

[](#extending-via-lapisxml)

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

```

```

Dashboard
---------

[](#dashboard)

Navigate to **System &gt; LAPIS** in the Magento Admin to see the live state machine of your store.

License
-------

[](#license)

MIT

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance81

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

101d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/205356416?v=4)[fr3onv](/maintainers/fr3onv)[@fr3onv](https://github.com/fr3onv)

---

Top Contributors

[![fr3on](https://avatars.githubusercontent.com/u/26393383?v=4)](https://github.com/fr3on "fr3on (31 commits)")

---

Tags

apilapislifecyclemagentomagento2oipphprestrldstate-machineapirestmagentostate-machinemagento2lifecyclelapisrldoip

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fr3on-magento2-lapis/health.svg)

```
[![Health](https://phpackages.com/badges/fr3on-magento2-lapis/health.svg)](https://phpackages.com/packages/fr3on-magento2-lapis)
```

###  Alternatives

[mollie/magento2

Mollie Payment Module for Magento 2

1131.9M16](/packages/mollie-magento2)[zircote/swagger-php

Generate interactive documentation for your RESTful API using PHP attributes (preferred) or PHPDoc annotations

5.3k144.5M623](/packages/zircote-swagger-php)[run-as-root/magento2-prometheus-exporter

Magento2 Prometheus Exporter

68357.9k](/packages/run-as-root-magento2-prometheus-exporter)[buckaroo/magento2

Buckaroo Magento 2 extension

32420.3k8](/packages/buckaroo-magento2)[loki/magento2-components

Core module for defining Alpine.js components with advanced AJAX features

1011.8k26](/packages/loki-magento2-components)[opengento/module-category-import-export

This module add the capability to import and export the categories from the back-office.

1310.9k2](/packages/opengento-module-category-import-export)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
