nativemind/module-marketplace
Composer 安装命令:
composer require nativemind/module-marketplace
包简介
Transform your Magento 2 store into a powerful marketplace platform similar to Avito, Facebook Marketplace, Shopee, Lazada, AliExpress, or Ozone. v2.0 includes comprehensive Admin API and React microservice for marketplace management.
README 文档
README
Transform your Magento 2 store into a powerful marketplace platform similar to Avito, Facebook Marketplace, Shopee, Lazada, AliExpress, or Ozone. Enable multiple sellers to create their own stores with subdomains or subdirectories, manage products (new and used), and build a thriving marketplace ecosystem.
🚀 Features
🏪 Multi-Seller Platform
- Seller Registration & Verification - Complete seller onboarding with document verification
- Individual Seller Stores - Each seller gets their own store with custom branding
- Subdomain/Subdirectory Support -
seller1.yourstore.comor/seller/seller1/ - Seller Dashboard - Comprehensive management interface for sellers
- Seller Profiles - Public profiles with ratings, reviews, and statistics
🛍️ Product Management
- New & Used Products - Support for both new and second-hand items
- Advanced Product Attributes - Custom fields for marketplace-specific data
- Bulk Product Import/Export - CSV/Excel support for large catalogs
- Product Moderation - Admin approval workflow for new products
- Inventory Management - Real-time stock tracking per seller
⭐ Rating & Review System
- Seller Ratings - Overall seller performance scoring
- Product Reviews - Detailed product feedback from buyers
- Review Moderation - Admin controls for review approval
- Rating Analytics - Comprehensive seller performance metrics
💬 Communication Tools
- Internal Messaging - Direct buyer-seller communication
- Order Messaging - Contextual messaging tied to orders
- Notification System - Email and in-app notifications
- Dispute Resolution - Built-in conflict resolution tools
💰 Commission & Payment
- Flexible Commission Rates - Configurable commission per category/seller
- Multi-Payment Methods - Support for various payment gateways
- Escrow System - Secure payment holding until order completion
- Payout Management - Automated seller payouts with reporting
🎛️ Admin Management
- Seller Management - Approve, suspend, or manage seller accounts
- Commission Settings - Configure commission rates and rules
- Dispute Resolution - Handle buyer-seller conflicts
- Analytics Dashboard - Comprehensive marketplace analytics
- Content Moderation - Review and approve products/reviews
🌐 Multi-Store Support
- Subdomain Configuration - Easy subdomain setup for sellers
- Subdirectory Support - Alternative path-based seller stores
- Custom Themes - Seller-specific store themes
- SEO Optimization - Individual SEO settings per seller store
📱 Mobile & API Support
- REST API - Complete API for mobile app integration
- GraphQL Support - Modern API for frontend applications
- Mobile-Optimized - Responsive design for all devices
- PWA Ready - Progressive Web App capabilities
📋 Requirements
- Magento 2.4.x (2.4.0 or higher)
- PHP 7.4+ (8.1+ recommended)
- MySQL 5.7+ or MariaDB 10.2+
- Elasticsearch 7.x (for advanced search)
- Redis (for caching, recommended)
Optional Dependencies
- NativeMind Translation Module - For multi-language marketplace support
- Elasticsearch - For advanced product search and filtering
- Varnish - For improved performance
🛠️ Installation
Via Composer (Recommended)
composer require nativemind/module-marketplace php bin/magento module:enable NativeMind_Marketplace php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy php bin/magento cache:flush
Manual Installation
# 1. Download and extract module mkdir -p app/code/NativeMind/Marketplace # Extract module files to app/code/NativeMind/Marketplace # 2. Enable module php bin/magento module:enable NativeMind_Marketplace # 3. Run setup php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy php bin/magento cache:flush
⚙️ Configuration
1. Basic Setup
Navigate to Stores > Configuration > NativeMind > Marketplace to configure:
- Enable Marketplace - Activate marketplace functionality
- Seller Registration - Configure seller signup process
- Commission Settings - Set default commission rates
- Subdomain Configuration - Configure seller subdomains
2. Seller Subdomain Setup
Option A: Subdomains (seller1.yourstore.com)
# Add to your web server configuration *.yourstore.com -> yourstore.com
Option B: Subdirectories (/seller/seller1/)
# Configure URL rewrites in Magento admin # Stores > Configuration > Web > URL Options
3. Payment Configuration
Configure payment methods for marketplace:
- Escrow Payments - Hold payments until order completion
- Commission Collection - Automatic commission deduction
- Seller Payouts - Automated seller payment processing
🎯 Usage Examples
Seller Registration
// Enable seller registration $sellerRegistration = $this->sellerRegistrationFactory->create(); $sellerRegistration->setData([ 'email' => 'seller@example.com', 'firstname' => 'John', 'lastname' => 'Doe', 'company' => 'John\'s Store', 'tax_id' => '123456789' ]); $sellerRegistration->save();
Product Management
// Add product to seller's catalog $product = $this->productFactory->create(); $product->setData([ 'name' => 'Used iPhone 12', 'sku' => 'used-iphone-12-001', 'price' => 599.99, 'seller_id' => 123, 'condition' => 'used', 'description' => 'Excellent condition iPhone 12...' ]); $product->save();
API Integration
// Get seller's products via API GET /rest/V1/marketplace/seller/123/products // Create new product via API POST /rest/V1/marketplace/seller/123/products { "product": { "name": "Product Name", "price": 99.99, "condition": "new" } }
🔧 Advanced Configuration
Custom Seller Attributes
<!-- Add custom seller attributes --> <fieldset name="seller_information"> <field name="business_license" formElement="file"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> <item name="label" xsi:type="string">Business License</item> </item> </argument> </field> </fieldset>
Commission Rules
// Set category-specific commission rates $commissionRule = $this->commissionRuleFactory->create(); $commissionRule->setData([ 'category_id' => 15, 'commission_rate' => 8.5, 'seller_group' => 'premium' ]); $commissionRule->save();
📊 Analytics & Reporting
Seller Dashboard Metrics
- Sales Performance - Revenue, orders, conversion rates
- Product Performance - Best-selling items, inventory levels
- Customer Feedback - Reviews, ratings, response rates
- Financial Reports - Commissions, payouts, earnings
Admin Analytics
- Marketplace Overview - Total sellers, products, orders
- Revenue Analytics - Commission income, growth trends
- Seller Performance - Top performers, inactive sellers
- Product Analytics - Popular categories, search trends
🔒 Security Features
- Seller Verification - Document verification system
- Product Moderation - Admin approval for new products
- Fraud Detection - Automated suspicious activity detection
- Data Protection - GDPR compliance for seller data
- Secure Payments - PCI-compliant payment processing
🌍 Multi-Language Support
Integrate with NativeMind Translation Module for:
- Automatic Translation - Translate product descriptions
- Multi-Store Support - Different languages per seller store
- Localized Content - Region-specific marketplace features
📱 Mobile Integration
Flutter Integration
// Using flutter_magento package final marketplace = FlutterMagento(); await marketplace.getSellerProducts(sellerId: '123'); await marketplace.createSellerAccount(sellerData);
React Native Integration
// Using react-native-magento package import { MagentoMarketplace } from 'react-native-magento'; const marketplace = new MagentoMarketplace(); await marketplace.getSellerStore(sellerId);
🧪 Testing
# Run unit tests vendor/bin/phpunit tests/unit/ # Run integration tests vendor/bin/phpunit tests/integration/ # Run API tests vendor/bin/phpunit tests/api/
📈 Performance Optimization
- Elasticsearch Integration - Fast product search
- Redis Caching - Improved page load times
- CDN Support - Global content delivery
- Database Optimization - Indexed queries for large catalogs
- Image Optimization - Automatic image compression
🤝 Contributing
We welcome contributions! Please see our Contributing Guide for details.
Development Setup
# Clone repository git clone https://github.com/nativemind/module-marketplace.git cd module-marketplace # Install dependencies composer install # Run tests vendor/bin/phpunit
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🆘 Support
- Documentation - Full Documentation
- Issues - GitHub Issues
- Community - Magento Community
- Email Support - support@nativemind.net
🗺️ Roadmap
Version 2.0 (Q2 2024)
- Advanced AI-powered product recommendations
- Blockchain integration for authenticity verification
- Advanced analytics with machine learning
- Mobile app SDK improvements
Version 2.1 (Q3 2024)
- Multi-currency support with automatic conversion
- Advanced shipping integration
- Social commerce features
- Voice search integration
📞 Contact
- Website - nativemind.net
- Email - contact@nativemind.net
- Twitter - @NativeMindDev
Transform your Magento store into a powerful marketplace today! 🚀
nativemind/module-marketplace 适用场景与选型建议
nativemind/module-marketplace 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 2, 最近一次更新时间为 2025 年 09 月 22 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「ecommerce」 「subdomain」 「marketplace」 「vendor」 「b2b」 「magento2」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 nativemind/module-marketplace 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 nativemind/module-marketplace 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 nativemind/module-marketplace 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
🎉 Finally a subdomain localization that works how you want it to work. 🌐
Nevogate Payment Gateway SDK
Dealing with payments through the Egyptian payment gateway PayMob
Automatically translate and review your content via Lokalise.
Development server console command with subdomain support, and automatic assets compilation.
Hostname extractor - A library to find parts of a hostname (suffix, tld, subdomain, ...)
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 27
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-09-22