Install Extension Using Composer
This guide will help you install the Mage2Plenty extension for Magento 2 using Composer with our Byte8 Cargoman registry.
If the extension was purchased from Magento Marketplace, please refer to Commerce Marketplace Composer Installation instead.
About Composer and the Byte8 Cargoman Registry
We use Composer to manage components and their dependencies. Our composer packages are hosted on the Byte8 Cargoman registry — a fast, reliable and secure composer repository for PHP packages.
After you purchase the extension, you'll be provided with:
- An authentication token to access the registry
Installation Steps
1. Add Composer Repository
First, add the Byte8 Cargoman repository to your composer.json and set up authentication to access the required packages.
Option A: Using Composer Command (Recommended)
composer config repositories.cargoman '{"type":"composer","url":"https://byte8.packages.cargoman.io"}'
Option B: Manual Configuration
Alternatively, manually edit the composer.json file and add the following custom repository:
{
"repositories": {
"cargoman": {
"type": "composer",
"url": "https://byte8.packages.cargoman.io"
}
}
}
2. Setup Authentication
You can setup authentication in one of the following three ways:
Method 1: Project Authentication (Recommended)
Store the authentication credentials in your project's auth.json:
composer config http-basic.byte8.packages.cargoman.io token YOUR_TOKEN
- Use the literal word
tokenas the username - Replace
YOUR_TOKENwith the actual access token provided in your purchase confirmation email
To store credentials in your global Composer auth.json instead, add the --global --auth flags:
composer config --global --auth http-basic.byte8.packages.cargoman.io token YOUR_TOKEN
Method 2: Environment Variable
Store the authentication credentials using an environment variable:
export COMPOSER_AUTH='{"http-basic": {"byte8.packages.cargoman.io": {"username": "token", "password": "YOUR_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 (byte8.packages.cargoman.io):
Username: token
Password: YOUR_TOKEN
The credentials will then be stored in your Composer auth.json.
- Never commit your auth.json file to version control
- Add
auth.jsonto your.gitignorefile - 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 byte8/magento-plentyone-suite
For Adobe Commerce (Cloud and On-Premises)
composer require byte8/magento-plentyone-suite-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 byte8/magento-plentyone-suite ~1.15.0
# For Magento 2.4.6
composer require byte8/magento-plentyone-suite ~1.14.0
# For Magento 2.4.4
composer require byte8/magento-plentyone-suite ~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 Byte8_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 byte8/magento-plentyone-suite
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-runto 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
- ⚙️ Client 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@byte8.io
- 📞 Phone: +44 2080 587 795 (GMT working hours)
- 📖 Documentation: Browse this site for guides
- 🐛 Bug Reports: GitHub Issues