jeanmarcos/module-core-local-development
Composer 安装命令:
composer require 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.
README 文档
README
📦
jeanmarcos/module-core-local-development— published to Packagist.🏠 Source repository for issues, PRs and releases: jeanmarcos-dev/magento-local-development. The standalone
jeanmarcos-dev/module-core-local-developmentrepo is a read-only mirror auto-generated by CI on every release — direct commits to it are overwritten.
Development_Core
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
1. Development\Core\Model\ProductionGuard
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:
<virtualType name="MyVendor\MyModule\Model\ProductionGuard" type="Development\Core\Model\ProductionGuard"> <arguments> <argument name="configPath" xsi:type="string">development/my_module/allow_in_production</argument> </arguments> </virtualType> <type name="MyVendor\MyModule\Plugin\MyDevPlugin"> <arguments> <argument name="guard" xsi:type="object">MyVendor\MyModule\Model\ProductionGuard</argument> </arguments> </type>
2. The shared ⚠ Development Modules admin tab
Declared once in Core/etc/adminhtml/system.xml:
<tab id="development" translate="label" sortOrder="999"> <label>⚠ Development Modules</label> </tab>
Any consumer module can reference it from its own system.xml section:
<section id="development_my_module" ...> <tab>development</tab> ... </section>
This keeps the admin tree clean: every dev-only module ends up grouped under one warning-tagged tab in Stores → Configuration.
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
Core/
├── Model/
│ └── ProductionGuard.php # shared production-guard service
├── etc/
│ ├── adminhtml/
│ │ └── system.xml # declares the shared <tab id="development">
│ └── module.xml
├── composer.json
├── registration.php
└── README.md
Compatibility
- Magento 2.4.x
- PHP 8.1+ (uses constructor property promotion and
readonlyproperties)
License
MIT
jeanmarcos/module-core-local-development 适用场景与选型建议
jeanmarcos/module-core-local-development 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 05 月 06 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「development」 「core」 「magento」 「dev-tools」 「magento2」 「magento-2」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 jeanmarcos/module-core-local-development 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 jeanmarcos/module-core-local-development 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 jeanmarcos/module-core-local-development 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Contao Open Source CMS
Debugging a problem and need to login as one of your customers? This allows you to authenticate as any of your customers.
Library with classes to help you do batch.
DiZed Team Core module for the Magento 2 project
GHT D-Tools Bundle
Magento 2 Social Login extension is designed for quick login to your Magento 2 store without procesing complex register steps
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 51
- 依赖项目数: 4
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-05-06