PHPackages                             netwolf103/mg-erp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. netwolf103/mg-erp

ActiveProject

netwolf103/mg-erp
=================

v0.1.0(6y ago)141proprietaryPHPPHP ^7.1.3CI failing

Since Mar 13Pushed 5y ago1 watchersCompare

[ Source](https://github.com/netwolf103/mg-erp)[ Packagist](https://packagist.org/packages/netwolf103/mg-erp)[ RSS](/packages/netwolf103-mg-erp/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (31)Versions (2)Used By (0)

MG-ERP
======

[](#mg-erp)

基于symfony4开发的ERP系统，主要用来管理Magento1X订单、产品，客户等。

MG-ERP
======

[](#mg-erp-1)

基于symfony4开发的ERP系统，主要用来管理Magento1X订单、产品，客户等。

代码维护人员
======

[](#代码维护人员)

[![头像](https://avatars3.githubusercontent.com/u/1772352?s=100&v=4)](https://avatars3.githubusercontent.com/u/1772352?s=100&v=4)
-------------------------------------------------------------------------------------------------------------------------------

[](#)

Zhang Zhao
---------------------------------

[](#zhang-zhao-netwolf103gmailcom)

Wechat: netwolf103

MG ERP 安装
---------

[](#mg-erp-安装)

### 安装 MySQL &amp; RabbitMQ

[](#安装-mysql--rabbitmq)

### 安装php\_amqp

[](#安装php_amqp)

```
wget https://pecl.php.net/get/amqp-1.9.4.tgz
tar zxvf amqp-1.9.4.tgz
cd amqp-1.9.4
/php-bin-path/phpize
./configure --with-php-config=/php-bin-path/php-config
make
make install

```

### 安装 &amp; 配置Supervisor

[](#安装--配置supervisor)

```
yum install supervisor
systemctl start supervisord
systemctl enable supervisord

```

#### 配置Supervisor

[](#配置supervisor)

```
; /etc/supervisord.d/messenger-worker.ini
[program:messenger-consume]
command=php /path/to/your/app/bin/console messenger:consume pull:catalog:category:product catalog:category:product:stock:alert catalog:category:product:google:create catalog:category:product:google:push catalog:category:product:google:delete pull:sales:order push:sales:order:hold push:sales:order:unhold push:sales:order:comment push:sales:order:shipment pull:sales:order:shipment push:sales:order:shipment:platform pull:sales:order:invoice push:sales:order:address pull:sales:order:address:geo push:sales:order:shippingmethod push:sales:order:email push:sales:order:send:confirm:email pull:sales:order:payment:transaction pull:customer --time-limit=3600
user=www
numprocs=2
autostart=true
autorestart=true
process_name=%(program_name)s_%(process_num)02d

```

#### 启动Supervisor

[](#启动supervisor)

```
supervisorctl reread
supervisorctl update
supervisorctl start messenger-consume:*
supervisorctl status

```

### 软件包依赖

[](#软件包依赖)

```
"php": "^7.1.3",
"ext-ctype": "*",
"ext-iconv": "*",
"dompdf/dompdf": "^0.8.3",
"google/apiclient": "^2.0",
"liip/imagine-bundle": "^2.1",
"sensio/framework-extra-bundle": "^5.1",
"symfony/apache-pack": "^1.0",
"symfony/asset": "4.3.*",
"symfony/console": "4.3.*",
"symfony/dotenv": "4.3.*",
"symfony/expression-language": "4.3.*",
"symfony/flex": "^1.3.1",
"symfony/form": "4.3.*",
"symfony/framework-bundle": "4.3.*",
"symfony/http-client": "4.3.*",
"symfony/intl": "4.3.*",
"symfony/messenger": "4.3.*",
"symfony/monolog-bundle": "^3.1",
"symfony/orm-pack": "*",
"symfony/process": "4.3.*",
"symfony/security-bundle": "4.3.*",
"symfony/serializer-pack": "*",
"symfony/swiftmailer-bundle": "^3.1",
"symfony/translation": "4.3.*",
"symfony/twig-bundle": "4.3.*",
"symfony/validator": "4.3.*",
"symfony/web-link": "4.3.*",
"symfony/yaml": "4.3.*"

```

### 开发包依赖

[](#开发包依赖)

```
"symfony/debug-pack": "*",
"symfony/maker-bundle": "^1.0",
"symfony/profiler-pack": "*",
"symfony/test-pack": "*",
"symfony/web-server-bundle": "4.3.*"

```

### Composer方式安装

[](#composer方式安装)

```
composer create-project netwolf103/mg-erp

```

### 依赖库安装

[](#依赖库安装)

```
composer install

```

### 编辑配置(生产)

[](#编辑配置生产)

```
vim .env.local

# dev or prod
APP_ENV=prod

# DB info
DB_NAME=mg-erp
DB_HOST=localhost
DB_PORT=3306
DB_USER=user
DB_PASS=pass

# Develop Paypal
PAYPAL_CLIENTID="Your Client Id"
PAYPAL_CLIENTSECRET="Your Client Secret"

# Develop Oceanpayment
OC_ACCOUNT="Your Account"
OC_TERMINAL="Your Terminal"
OC_SECURECODE="Your secure code"

DATABASE_URL=mysql://user:pass@localhost:3306/mg-erp
MESSENGER_TRANSPORT_DSN=amqp://user:pass@localhost:5672/%2f/

```

### 执行SQL生成表结构

[](#执行sql生成表结构)

```
php bin/console --env=prod doctrine:migrations:migrate

```

### 运行APP

[](#运行app)

```
php bin/console --env=prod server:run

```

### 浏览器访问

[](#浏览器访问)

#### 初始账号 &amp; 密码 admin 111111

[](#初始账号--密码-admin-111111)

```
http://127.0.0.1:8000

```

### Web服务器配置

[](#web服务器配置)

#### 以Apache为例，运行

[](#以apache为例运行)

```
composer require symfony/apache-pack

```

#### 配置Vhosts

[](#配置vhosts)

```

    ServerName domain.tld
    ServerAlias www.domain.tld

    DocumentRoot "/var/www/project/public"
    ErrorLog "logs/domain.tld-error_log"
    CustomLog "logs/domain.tld-access_log" combined

        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted

```

### 应用命令

[](#应用命令)

#### 同步产品

[](#同步产品)

```
php bin/console app:magento:sync-catalog-product

```

#### 同步产品库存

[](#同步产品库存)

```
php bin/console app:magento:sync-catalog-inventory

```

#### 同步物流配置

[](#同步物流配置)

```
php bin/console app:magento:sync-config-shipping-method

```

#### 同步客户

[](#同步客户)

```
php bin/console app:magento:sync-customer

```

#### 同步订单

[](#同步订单)

```
php bin/console app:magento:sync-sales-order

```

#### 同步订单交易号

[](#同步订单交易号)

```
php bin/console app:magento:sync-sales-order-payment-transaction

```

#### 同步订单物流单号

[](#同步订单物流单号)

```
php bin/console app:magento:sync-sales-order-shipment

```

部分功能展示
------

[](#部分功能展示)

[![退款列表](preview/Preview1.png?raw=true)](preview/Preview1.png?raw=true)[![订单详情](preview/Preview2.png?raw=true)](preview/Preview2.png?raw=true)[![导入物流单号](preview/Preview3.png?raw=true)](preview/Preview3.png?raw=true)[![手动添加物流单号](preview/Preview4.png?raw=true)](preview/Preview4.png?raw=true)[![订单产品换货](preview/Preview5.png?raw=true)](preview/Preview5.png?raw=true)[![增加订单产品](preview/Preview6.png?raw=true)](preview/Preview6.png?raw=true)[![编辑订单地址](preview/Preview7.png?raw=true)](preview/Preview7.png?raw=true)[![发票详情](preview/Preview8.png?raw=true)](preview/Preview8.png?raw=true)[![订单详情功能](preview/Preview9.png?raw=true)](preview/Preview9.png?raw=true)[![订单列表](preview/Preview10.png?raw=true)](preview/Preview10.png?raw=true)[![命令行](preview/Preview11.png?raw=true)](preview/Preview11.png?raw=true)

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2255d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/36df86ed3aa465f5a39ba23ff382192127ff9c4290c49bbe89ba0dd3ad61f498?d=identicon)[netwolf103](/maintainers/netwolf103)

---

Top Contributors

[![netwolf103](https://avatars.githubusercontent.com/u/1772352?v=4)](https://github.com/netwolf103 "netwolf103 (29 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

### Embed Badge

![Health badge](/badges/netwolf103-mg-erp/health.svg)

```
[![Health](https://phpackages.com/badges/netwolf103-mg-erp/health.svg)](https://phpackages.com/packages/netwolf103-mg-erp)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[chameleon-system/chameleon-base

The Chameleon System core.

1026.5k3](/packages/chameleon-system-chameleon-base)[kimai/kimai

Kimai - Time Tracking

4.6k7.4k1](/packages/kimai-kimai)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
