Install Extension Using Composer
This guide will help you install the Mage2Plenty extension for Magento 2 using Composer with our private Packagist repository.
If the extension was purchased from Magento Marketplace, please refer to Commerce Marketplace Composer Installation instead.
About Composer and Private Packagist
We use Composer to manage components and their dependencies. Our composer packages are hosted by Private Packagist, which is a fast, reliable and secure composer repository for PHP packages.
After you purchase the extension, a private repository will be created, and you'll be provided with:
- Repository name
- Authentication token to access it
Installation Steps
1. Add Composer Repository
First, add your private repository to composer.json and setup authentication to access the required packages.
Option A: Using Composer Command (Recommended)
composer config repositories.private-packagist composer https://softcommerce.repo.packagist.com/repository-name/
Replace repository-name
with the actual repository name provided in your purchase confirmation email.
Option B: Manual Configuration
Alternatively, manually edit the composer.json
file and add the following custom repository:
{
"repositories": [
{
"type": "composer",
"url": "https://softcommerce.repo.packagist.com/repository-name/"
}
]
}
2. Setup Authentication
You can setup authentication in one of the following three ways:
Method 1: Global Authentication (Recommended)
Store the authentication credentials in your global Composer auth.json:
composer config --global --auth http-basic.softcommerce.repo.packagist.com token your-access-token
- Replace
token
with the literal word "token" - Replace
your-access-token
with the actual access token provided
Method 2: Environment Variable
Store the authentication credentials using an environment variable:
export COMPOSER_AUTH='{"http-basic": {"softcommerce.repo.packagist.com": {"username": "token", "password": "your-access-token"}}}'
This is particularly useful for CI/CD environments.
Method 3: Interactive Authentication
Run any Composer command and Composer will automatically prompt you to enter authentication credentials if no authentication is configured:
Authentication required (softcommerce.repo.packagist.com):
Username: your-order-number
Password: your-access-token
The credentials will then be stored in your global Composer auth.json.
- Never commit your auth.json file to version control
- Add
auth.json
to your.gitignore
file - Treat your access token like a password
3. Install Extension
Now you're ready to install the Mage2Plenty extension.
For Magento Open Source
composer require softcommerce/mage2plenty-os
For Adobe Commerce
composer require softcommerce/mage2plenty-ac
The above commands will install the extension compatible with the latest Magento release.
Install Specific Version
To install an extension compatible with a specific Magento version, append the appropriate version constraint:
# For Magento 2.4.7
composer require softcommerce/mage2plenty-os ~1.15.0
# For Magento 2.4.6
composer require softcommerce/mage2plenty-os ~1.14.0
# For Magento 2.4.4
composer require softcommerce/mage2plenty-os ~1.13.0
Magento 2.4.4+ requires PHP 8.1 or higher. Ensure your environment meets all system requirements before installation.
- Latest stable version: 1.15.1
- Compatible with: Magento 2.4.7+
- Refer to Magento Version Compatibility for a complete list of compatible versions
4. Post Installation
After installing the extension via Composer, you need to run Magento's setup commands.
For Production Mode
bin/magento maintenance:enable
bin/magento setup:upgrade
bin/magento deploy:mode:set production
bin/magento maintenance:disable
In production mode, Magento will automatically:
- Compile dependency injection
- Deploy static content
- Clear caches
For Development Mode
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:flush
Verify Installation
Check that the module is installed and enabled:
bin/magento module:status SoftCommerce_PlentyCore
You should see output confirming the module is enabled.
Troubleshooting
Authentication Fails
If you receive authentication errors:
- Verify your credentials are correct
- Check that your license is active
- Ensure you're using "token" as the username
- Contact support if the issue persists
Composer Memory Issues
If you encounter memory limit errors:
# Increase memory limit for this command only
php -d memory_limit=-1 /usr/bin/composer require softcommerce/mage2plenty-os
Version Conflicts
If Composer reports dependency conflicts:
- Update your Magento installation to the latest patch version
- Try specifying a compatible Mage2Plenty version explicitly
- Run
composer update --dry-run
to see what would change
Next Steps
Now that you have Mage2Plenty installed, you can proceed to configure your connector:
- 📋 Initial Setup - Complete the initial configuration
- ⚙️ System Configuration - Configure connection settings
- 📊 Profile Setup - Set up synchronization profiles
- ✅ System Check - Verify your setup
Getting Help
If you encounter any issues during installation:
- 📧 Email Support: support@softcommerce.io
- 📞 Phone: +44 2080 587 795 (GMT working hours)
- 📖 Documentation: Browse this site for guides
- 🐛 Bug Reports: GitHub Issues