PHPackages                             jeanmarcos/module-core-local-development - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. jeanmarcos/module-core-local-development

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

jeanmarcos/module-core-local-development
========================================

Magento 2 shared core for local-development-only modules. Provides the production-mode guard service and the shared admin configuration tab consumed by Development\_AdminBypass, Development\_CustomerBypass, Development\_LiveReload, and similar dev-only modules.

1.1.0(1mo ago)002MITPHPPHP ~8.1.0||~8.2.0||~8.3.0

Since Apr 27Pushed 1mo agoCompare

[ Source](https://github.com/jeanmarcos-dev/module-core-local-development)[ Packagist](https://packagist.org/packages/jeanmarcos/module-core-local-development)[ RSS](/packages/jeanmarcos-module-core-local-development/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (3)Versions (3)Used By (2)

> 📦 **`jeanmarcos/module-core-local-development`** — published to [Packagist](https://packagist.org/packages/jeanmarcos/module-core-local-development).
>
> 🏠 **Source repository** for issues, PRs and releases: **[jeanmarcos-dev/magento-local-development](https://github.com/jeanmarcos-dev/magento-local-development)**. The standalone [`jeanmarcos-dev/module-core-local-development`](https://github.com/jeanmarcos-dev/module-core-local-development) repo is a **read-only mirror** auto-generated by CI on every release — direct commits to it are overwritten.

Development\_Core
=================

[](#development_core)

[![Packagist](https://camo.githubusercontent.com/e83206638de449337a5c4c6f9b7ee65b11e9e341dd0b6c473d979c219ac7f9f2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a65616e6d6172636f732f6d6f64756c652d636f72652d6c6f63616c2d646576656c6f706d656e742e737667)](https://packagist.org/packages/jeanmarcos/module-core-local-development)

Shared core for Magento 2 **local-development-only** modules.

This module is a building block — it does **not** add any user-facing behavior on its own. It exists so that several `Development_*` modules can share two pieces of plumbing without duplicating code or admin UI.

---

What it provides
----------------

[](#what-it-provides)

### 1. `Development\Core\Model\ProductionGuard`

[](#1-developmentcoremodelproductionguard)

A small service that decides whether a development-only module should be active in the current environment.

```
use Development\Core\Model\ProductionGuard;

class MyDevPlugin
{
    public function __construct(
        private readonly ProductionGuard $guard
    ) {}

    public function aroundSomething(Subject $s, \Closure $proceed, ...$args)
    {
        if (!$this->guard->isEnabled()) {
            return $proceed(...$args);
        }
        // dev-only behavior here
    }
}
```

`isEnabled()` returns `true` when:

- Magento is **not** in production mode (`developer` / `default`), or
- the per-module flag at the configured XML path is explicitly set to `Yes`, or
- `State::getMode()` throws (early CLI bootstrap → fail open to active).

The XML path is **per consumer**. You declare it as a `virtualType` in your module's `di.xml`:

```

        development/my_module/allow_in_production

        MyVendor\MyModule\Model\ProductionGuard

```

### 2. The shared `⚠ Development Modules` admin tab

[](#2-the-shared--development-modules-admin-tab)

Declared once in `Core/etc/adminhtml/system.xml`:

```

    ⚠ Development Modules

```

Any consumer module can reference it from its own `system.xml` section:

```

    development
    ...

```

This keeps the admin tree clean: every dev-only module ends up grouped under one warning-tagged tab in `Stores → Configuration`.

---

Install
-------

[](#install)

You normally don't install this directly — it is pulled in as a transitive dependency of `jeanmarcos/module-admin-bypass`, `jeanmarcos/module-customer-bypass`, `jeanmarcos/module-livereload`, etc.

If you want to install it on its own (e.g. to build your own dev module on top of it):

```
composer require --dev jeanmarcos/module-core-local-development
bin/magento module:enable Development_Core
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:flush
```

---

File structure
--------------

[](#file-structure)

```
Core/
├── Model/
│   └── ProductionGuard.php           # shared production-guard service
├── etc/
│   ├── adminhtml/
│   │   └── system.xml                # declares the shared
│   └── module.xml
├── composer.json
├── registration.php
└── README.md

```

---

Compatibility
-------------

[](#compatibility)

- Magento 2.4.x
- PHP 8.1+ (uses constructor property promotion and `readonly` properties)

---

License
-------

[](#license)

MIT

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance91

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 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

Every ~0 days

Total

2

Last Release

43d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/26399111?v=4)[Jeanmarcos](/maintainers/jeanmarcos-dev)[@jeanmarcos-dev](https://github.com/jeanmarcos-dev)

---

Top Contributors

[![jeanmarcos-dev](https://avatars.githubusercontent.com/u/26399111?v=4)](https://github.com/jeanmarcos-dev "jeanmarcos-dev (2 commits)")

---

Tags

magentocoredevelopmentmagento2magento 2dev-toolsproduction-guard

### Embed Badge

![Health badge](/badges/jeanmarcos-module-core-local-development/health.svg)

```
[![Health](https://phpackages.com/badges/jeanmarcos-module-core-local-development/health.svg)](https://phpackages.com/packages/jeanmarcos-module-core-local-development)
```

###  Alternatives

[run-as-root/magento2-prometheus-exporter

Magento2 Prometheus Exporter

68353.9k](/packages/run-as-root-magento2-prometheus-exporter)[mollie/magento2

Mollie Payment Module for Magento 2

1131.8M12](/packages/mollie-magento2)[smile/elasticsuite

Magento 2 merchandising and search engine built on ElasticSearch

8054.6M39](/packages/smile-elasticsuite)[yireo/magento2-webp2

Magento 2 module to add WebP support to the Magento frontend

2101.3M7](/packages/yireo-magento2-webp2)[loki/magento2-components

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

1010.0k22](/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.2k1](/packages/opengento-module-category-import-export)

PHPackages © 2026

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