mostafax/erp-integration-hub 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mostafax/erp-integration-hub

Composer 安装命令:

composer require mostafax/erp-integration-hub

包简介

Enterprise Integration Platform for ERP Systems — Visual Field Mapping, Multi-ERP Connectors (Dynamics 365, SAP, Oracle, Odoo, ERPNext), Real-Time Monitoring & Sync Scheduler for Laravel

README 文档

README

ERP Integration Hub

ERP Integration Hub

Enterprise Integration Platform for ERP Systems

Laravel PHP License Packagist

📖 Full Documentation →  📖 التوثيق بالعربية →

Overview

ERP Integration Hub is a Laravel package that connects your application to multiple ERP systems through a visual no-code interface — no manual API calls, no custom glue code.

ERP Integration Hub
├── Dynamics 365 Business Central  ✓
├── Dynamics 365 Finance            ✓
├── Supply Chain Management         ✓
├── SAP S/4HANA                     ✓
├── Odoo                            ✓
├── ERPNext                         ✓
└── Custom REST / API               ✓

Features

  • Visual Field Mapping — drag-and-drop builder with 9 built-in transformers and auto-map
  • 6 Sync Modes — manual, scheduled, real-time, incremental, full, event-driven
  • Sync Scheduler — cron expressions, per-timezone, without overlapping
  • Real-Time Monitoring — live dashboard with queue health and success rates
  • Retry Management — per-record, per-profile, or bulk retry of failed jobs
  • Role-Based Security — 10 granular permissions, 3 default roles
  • REST API — full API layer with Sanctum authentication
  • Vue 3 SPA — dark/light mode, Arabic RTL + English i18n
  • High Performance — lazy collections + chunked processing, 1M–100M records

Requirements

Dependency Version
PHP ^8.2
Laravel 10 / 11 / 12
Redis recommended
mostafax/background-processing-engine ^1.0

Installation

composer require mostafax/erp-integration-hub

Run the installer (publishes config, migrations, assets, and seeds default roles):

php artisan erp-integration-hub:install

Start the sync worker:

php artisan queue:work --queue=dynamics-sync

Open the dashboard:

https://your-app.com/erp-integration-hub

Configuration

Publish the config file:

php artisan vendor:publish --tag=erp-integration-hub-config

Key settings in config/erp-integration-hub.php:

'drivers' => [
    'business_central' => [...],
    'dynamics_finance' => [...],
    'supply_chain'     => [...],
    'sap'              => [...],
    'odoo'             => [...],
    'erpnext'          => [...],
    'custom'           => [...],
],

'queue' => [
    'connection' => env('QUEUE_CONNECTION', 'redis'),
    'name'       => 'dynamics-sync',
    'workers'    => env('ERP_SYNC_WORKERS', 3),
],

REST API

All endpoints are prefixed with /api/erp-integration-hub and require Sanctum authentication.

Method Endpoint Description
GET /connections List ERP connections
POST /connections Create a connection
POST /connections/{id}/test Test credentials
GET /sync-profiles List sync profiles
POST /sync/run/{profileId} Run a sync
GET /monitoring/dashboard Dashboard stats
GET /logs Sync logs
POST /sync/retry-all Retry all failed jobs

Full API reference in the documentation.

Artisan Commands

# Install the package (first-time setup)
php artisan erp-integration-hub:install

# Run a sync profile manually
php artisan erp-integration-hub:sync {profileId}

# Process due scheduled syncs
php artisan erp-integration-hub:schedule-run

Security & Permissions

The package ships with spatie/laravel-permission integration and 3 default roles:

Role Permissions
erp_admin Full access
erp_operator Manage syncs and connections
erp_viewer Read-only access

Architecture

src/
├── Actions/           # Single-responsibility business actions
├── Authentication/    # Microsoft OAuth client + token manager
├── Connections/
│   ├── Drivers/       # ERP-specific drivers (OData, JSON-RPC, REST)
│   └── ErpConnectionManager.php
├── Console/Commands/  # Artisan commands
├── Contracts/         # Interfaces
├── DTOs/              # Data Transfer Objects
├── Events/            # Sync lifecycle events
├── Exceptions/
├── Facades/           # ErpIntegrationHub facade
├── FieldMapping/      # Mapping engine + 9 transformers
├── Http/              # Controllers, Requests, Resources
├── Jobs/              # Queue jobs
├── Models/            # Eloquent models
├── Monitoring/        # Dashboard stats service
├── Notifications/     # Mail / Slack / database
├── Providers/         # Service provider
├── Repositories/
├── Scheduler/
├── Security/          # Policy + permission manager
└── Services/          # Sync orchestrator

Documentation

Language Link
English https://mostafax2.github.io/ERP-Integration-Hub/index.html
العربية https://mostafax2.github.io/ERP-Integration-Hub/ar/index.html

License

MIT — © Mostafa Elbayyar

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固