Add Package
MAMP PRO lets you add Composer packages to a site directly from its interface.

Adding a Package
Section titled “Adding a Package”-
Open the Menu: Select Site → Composer → Add Package… from the top menu.
-
Search for a Package: A dialog opens with a search field. Start typing the name of the Composer package you want. Matching packages from the Packagist repository appear in real time.
-
Select a Package: Click on the package you want to add from the list.
-
Optional: Add as a Development Package: Enable the Add as dev package checkbox if the package is only needed for development purposes (e.g., debugging tools, testing frameworks). The package is then added to the “require-dev” section of the composer.json file.
-
Install the Package: Click Add to add the selected package to the current site. Composer installs the package automatically in the background.
Once installed, the package appears in the site’s composer.json file and is immediately available.