Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Portman Laravel Package

magewirephp/portman

Portman is a CLI tool from Magewire that helps port Laravel Livewire components to Magewire for Magento. It streamlines migrating component classes, Blade views, and JavaScript behavior so you can bring Livewire-style interactivity into Magento without rebuilding everything by hand.

Deep Wiki
Context7

At a glance

Frequently asked questions about Portman
What is Magewire Portman used for?
Magewire Portman is a companion CLI toolkit for Magewire that helps developers port Laravel Livewire-style components into Magento 2. It provides a convention-driven path for adapting component classes, views, and lifecycle behavior to Magewire's runtime. It is aimed at teams bringing Livewire-style interactivity into Magento without rebuilding every component by hand.
How do I install Magewire Portman with Composer?
Install it as a Composer package using the package name magewirephp/portman in your Magento 2 project. Because it is a developer-focused CLI tool, many teams add it to their development workflow rather than runtime dependencies. Check the package documentation for the exact require command and any post-install steps.
Does Portman convert Laravel Livewire components to Magewire?
Yes, Portman is designed to streamline migrating Livewire component classes, Blade views, and JavaScript behavior to Magewire for Magento. It does not promise a fully automatic one-to-one conversion; it provides reusable helpers and conventions to reduce manual adaptation. You should review each ported component against Magewire's props, actions, and lifecycle expectations.
Which Laravel and Magento versions does Portman support?
Portman is built for Magento 2 modules using Magewire and for porting Livewire-style components from Laravel projects. The provided package overview does not list explicit Laravel or Magento version constraints, so verify the composer.json requirements before adopting it. Compatibility will also depend on the Magewire version your Magento module targets.
Can Portman help port Livewire Blade views to Magewire views?
Yes, view adaptation is one of the advertised use cases: Portman offers reusable helpers for adapting component classes and views to Magewire's conventions. Blade-to-Magewire view changes still need developer review, especially around directives, data binding, and Magento layout structure. Treat the output as a starting point rather than an unreviewed final view.
Does Portman support Magewire props, actions, and lifecycle hooks?
Portman is described as Magewire-native for props, actions, and lifecycle support, helping map Livewire component behavior into Magewire's runtime. Exact parity depends on the Livewire features you use and the Magewire APIs available in your version. Test each ported action and lifecycle method in a real Magento module.
Is Magewire Portman actively maintained?
The package is published under the magewirephp vendor namespace, which ties it to the Magewire project ecosystem. The provided context does not include release history or maintenance commitments, so check the repository and Composer metadata for recent releases. Pin a compatible version and review updates before upgrading in active Magento projects.
How should I test components ported with Portman?
Test ported components inside a standard Magento 2 module with Magewire enabled, exercising props, actions, and lifecycle behavior in the browser and through your normal Magento test workflow. Because Portman adapts code conventions, review generated or adapted classes and views before relying on them. Add regression tests for any Livewire behavior that is critical to your storefront.
Is Portman safe to use in production Magento stores?
Portman is a developer-focused CLI tool for porting components, so it is typically used during development rather than as a production runtime dependency. The ported Magewire components should be reviewed, tested, and deployed like any other custom Magento module code. Follow your normal Magento deployment and dependency policies.
What are alternatives to using Portman for Livewire-to-Magewire migration?
The main alternative is manually rewriting Livewire components as Magewire components inside a Magento 2 module, using Magewire's props, actions, and lifecycle APIs directly. Portman's value is convention-driven adaptation of classes, views, and JavaScript behavior to reduce that manual effort. If you only have a few simple components, a manual port may be simpler than adding another tool.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console