Download the PHP package netwolf103/mg-erp without Composer

On this page you can find all versions of the php package netwolf103/mg-erp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package mg-erp

MG-ERP

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

MG-ERP

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

代码维护人员

头像

Zhang Zhao [email protected]

Wechat: netwolf103

MG ERP 安装

安装 MySQL & RabbitMQ

安装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

安装 & 配置Supervisor

yum install supervisor
systemctl start supervisord
systemctl enable supervisord

配置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

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 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生成表结构

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

运行APP

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

浏览器访问

初始账号 & 密码 admin 111111

http://127.0.0.1:8000

Web服务器配置

以Apache为例,运行

composer require symfony/apache-pack

配置Vhosts

<VirtualHost *:80>
    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
    <Directory "/var/www/project/public">
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

应用命令

同步产品

php bin/console app:magento:sync-catalog-product <api_username> <api_key> <api_url>

同步产品库存

php bin/console app:magento:sync-catalog-inventory <api_username> <api_key> <api_url>

同步物流配置

php bin/console app:magento:sync-config-shipping-method <api_username> <api_key> <api_url>

同步客户

php bin/console app:magento:sync-customer <api_username> <api_key> <api_url>

同步订单

php bin/console app:magento:sync-sales-order <api_username> <api_key> <api_url>

同步订单交易号

php bin/console app:magento:sync-sales-order-payment-transaction <api_username> <api_key> <api_url>

同步订单物流单号

php bin/console app:magento:sync-sales-order-shipment <api_username> <api_key> <api_url>

部分功能展示


All versions of mg-erp with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1.3
ext-ctype Version *
ext-iconv Version *
dompdf/dompdf Version ^0.8.3
google/apiclient Version ^2.0
liip/imagine-bundle Version ^2.1
sensio/framework-extra-bundle Version ^5.1
symfony/apache-pack Version ^1.0
symfony/asset Version 4.3.*
symfony/console Version 4.3.*
symfony/dotenv Version 4.3.*
symfony/expression-language Version 4.3.*
symfony/flex Version ^1.3.1
symfony/form Version 4.3.*
symfony/framework-bundle Version 4.3.*
symfony/http-client Version 4.3.*
symfony/intl Version 4.3.*
symfony/messenger Version 4.3.*
symfony/monolog-bundle Version ^3.1
symfony/orm-pack Version *
symfony/process Version 4.3.*
symfony/security-bundle Version 4.3.*
symfony/serializer-pack Version *
symfony/swiftmailer-bundle Version ^3.1
symfony/translation Version 4.3.*
symfony/twig-bundle Version 4.3.*
symfony/validator Version 4.3.*
symfony/web-link Version 4.3.*
symfony/yaml Version 4.3.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package netwolf103/mg-erp contains the following files

Loading the files please wait ....