1. 从同事那边拷贝第三方压缩包chumper进 vendor

    1.png

  2. 在composer.json 文件中添加需要加载的第三方类库(文件路径从vendor开始写)

    "autoload": {    
            "psr-4": {
                "App\\": "app/"
            },
            "classmap": [
                "database/seeds",
                "database/factories",
                "vendor/chumper/zipper"
            ],
            "files": [
                "app/Helpers/functions.php"
            ]
        },

3.执行命令 composer dump-autoload

    root@40f6e61a3aae:/var/www/html# composer dump-autoload