PHP implementation for modman, to use it on every operating system with PHP support (also Windows).
Currently implemented:
- init (creates .modman directory)
- link (creates symlinks)
- deploy (update symlinks)
- deploy-all (updates all modules)
- repair (repairs all symlinks)
- clean (removes all dead symlinks)
- create (creates a modman file for an existing module)
--force is available for link, deploy and deploy-all, if not set script aborts when conflicts are found
Usage examples:
php modman.php init
php modman.php link ..\B2BProfessional
php modman.php deploy B2BProfessional
Currently supported in modman files:
- symlinks (incl. wildcards)
- @import
- @shell
For Windows users there's also a batch file available, so instead of typing php and directory to modman.php you could just use modman.bat everywhere if you add it to your %PATH%-variable:
modman link c:\B2BProfessional
VCS integration is postponed, because there are great clients out there, so we don't use it in modman anyway.
Started at Magento Hackathon in Zürich 2013-03-09
Influenced by the original modman at https://github.com/colinmollenhour/modman/
Creates the .modman directory, which is used for all other operations.
cd $PROJECT
modman init
Creates symlink from a modman file
cd $PROJOECT
modman link /path/to/myMageModule
Optional parameter --force to automatically remove conflicted files
Updates the symlinks of a linked module
cd $PROJECT
modman deploy myMageModule
Optional parameter --force to automatically remove conflicted files
Updates all symlinks of linked modules
cd $PROJECT
modman deploy-all
Optional parameter --force to automatically remove conflicted files
Repairs all symlinks of all linked modules
cd $PROJECT
modman repair
Scans directory for dead symlinks and deletes them. Useful if a module was deleted and not removed in the project
cd $PROJECT
modman clean
Removes links of a project
cd $PROJECT
modman remove myMageModule
Scans through the current directory and creates a modman file containing all files and folders
cd $MODULE
modman create
Optional parameter --force to automatically overwrite existing modman-file