make-dev/makedev
Composer 安装命令:
composer require make-dev/makedev
包简介
Base framework for MakeDev modules — abstract component, transitions, skills, and overlay system.
README 文档
README
██▄ ▄██ ▄████▄ ██ ▄█▀ ██████ ████▄ ██████ ██ ██ ██ ▀▀ ██ ██▄▄██ ████ ██▄▄ ▄▄▄ ██ ██ ██▄▄ ██▄▄██ ██ ██ ██ ██ ██ ▀█▄ ██▄▄▄▄ ████▀ ██▄▄▄▄ ▀██▀
The base framework for building modular Laravel applications with transitions, skills, overlays, and AI-ready module metadata.
What is MakeDev?
MakeDev provides the foundation for a module-based development ecosystem. It gives you an abstract Livewire component base class, a transition/animation system, a skills toolbar, and an overlay system — everything you need to build self-contained, metadata-rich modules that integrate with AI tools like Orca.
Quick Start
composer require make-dev/makedev
That's it. The service provider auto-registers via Composer's package discovery.
Features
-
MakeDevModuleComponent — Abstract Livewire base class for modules. Provides structured metadata, transition support, and overlay integration out of the box.
-
Transition System — Pre-built entry/exit animations (FadeIn, FadeOut, ZoomyStars) with an extensible
TransitionDefinitioninterface for custom transitions. -
Skills Toolbar — Contextual UI buttons that appear on modules: info cog (metadata viewer), copy module (duplication scaffolding), and power off. Skills are priority-sorted and conditionally enabled at runtime.
-
Overlay System — Floating toolbars rendered on module components with configurable positioning (fixed or inline) and placement (inside or outside).
-
Module Metadata — Structured
moduleInfo()arrays with name, description, version, key files, capabilities, dependencies, and Agent README support for AI context.
Creating a Module
Extend MakeDevModuleComponent and implement moduleInfo():
namespace Modules\MyModule\Livewire; use MakeDev\MakeDev\Livewire\MakeDevModuleComponent; use MakeDev\MakeDev\Concerns\TransitionFadeIn; use MakeDev\MakeDev\Concerns\TransitionFadeOut; class MyModule extends MakeDevModuleComponent { use TransitionFadeIn, TransitionFadeOut; public function moduleInfo(): array { return [ 'name' => 'My Module', 'description' => 'Does something cool.', 'version' => '1.0.0', 'keyFiles' => [ 'Modules/MyModule/app/Livewire/MyModule.php', ], 'capabilities' => ['Feature A', 'Feature B'], 'dependencies' => ['livewire/livewire'], 'agentReadme' => $this->loadAgentReadme(), ]; } public function render() { return view('mymodule::livewire.my-module'); } }
Visit any page with ?mo=skills to reveal the module toolbar.
Transitions
Three built-in transitions are available as convenience traits:
| Trait | Effect | Duration |
|---|---|---|
TransitionFadeIn |
Opacity fade in | 600ms |
TransitionFadeOut |
Opacity fade out | 600ms |
TransitionZoomyStars |
Star field zoom acceleration | 1800ms |
Add transitions by using the traits on your component:
use TransitionFadeIn, TransitionFadeOut;
Create custom transitions by implementing TransitionDefinition:
use MakeDev\MakeDev\Contracts\TransitionDefinition; class SlideIn implements TransitionDefinition { public function name(): string { return 'slide-in'; } public function durationMs(): int { return 400; } public function requiresStarField(): bool { return false; } public function config(): array { return ['direction' => 'left']; } public function toArray(): array { /* ... */ } }
Skills
Skills are contextual action buttons rendered in the module toolbar overlay.
Built-in Skills
| Skill | Description | Conditional |
|---|---|---|
| ModuleInfoCog | Displays module metadata (name, version, capabilities, Agent README) | Always available |
| CopyModuleButton | Duplication/scaffolding interface | Requires Orca |
| PowerOff | Module shutdown button | Requires ModuleLoader |
Module Options
Control skill visibility with query parameters or session flags:
https://myapp.test/dashboard?mo=skills
The ModuleOptions singleton provides programmatic access:
app(ModuleOptions::class)->showSkills(); // bool app(ModuleOptions::class)->hasFlag('skills'); // bool
Architecture
src/
├── Concerns/ # Traits (HasModuleInfo, ResolvesTransitions, Transition*)
├── Contracts/ # Interfaces (MakeDevModule, HasTransitions, TransitionDefinition)
├── Livewire/
│ └── MakeDevModuleComponent.php # Abstract base component
├── Skills/ # ModuleSkill base, CopyModuleButton, ModuleInfoCog, PowerOff
├── Support/ # ModuleOptions, ModuleOverlay, registries
├── Transitions/ # FadeIn, FadeOut, ZoomyStars
├── View/Components/ # SkillsContainer blade component
└── Providers/
└── MakeDevServiceProvider.php
Service Provider Registration
The MakeDevServiceProvider registers:
ModuleOptions,ModuleSkillRegistry,ModuleOverlayRegistryas singletons- Views under the
makedev::namespace - Blade components under the
makedev::prefix - Default skills (ModuleInfoCog, CopyModuleButton)
- Default overlay (module-toolbar)
- Livewire render hook for overlay injection
Integration
MakeDev integrates with the broader MakeDev ecosystem:
- Orca — When available, enables the Copy Module skill with Claude-powered scaffolding
- OrcaHarpoon — Generated components extend
MakeDevModuleComponentwith full metadata - ModuleLoader — When available, enables the Power Off skill for module lifecycle management
License
MIT
make-dev/makedev 适用场景与选型建议
make-dev/makedev 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 4 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 03 月 14 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「modules」 「laravel」 「livewire」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 make-dev/makedev 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 make-dev/makedev 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 make-dev/makedev 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
This is Paymorrow module for OXID eShop.
Livewire starter kit for Lunar e-commerce.
Analysis module for finding problematical shop data.
yii2 swiper slider
An interactive tour through the TYPO3 backend.
Views for the package MedicOneSystems Livewire Datatables with Bootstrap 4
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 41
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-14