本地开发composer 扩展包,自动发现功能开发具有本地Composer依赖关系的Laravel软件包-Laravel新闻

141 人参与 | 时间:2020年07月14日 02:20:45
{
    "name": "laravel/laravel",
    "type": "project",
    "description": "The Laravel Framework.",
    "keywords": [
        "framework",
        "laravel"
    ],
    "license": "MIT",
    "require": {
        "php": "^7.2.5",
        "a031/user": "^1.0",
        "aliyuncs/oss-sdk-php": "^2.3",
        "barryvdh/laravel-ide-helper": "^2.7",
        "caouecs/laravel-lang": "^6.0",
        "cviebrock/laravel-elasticsearch": "^4.2",
        "dingo/api": "^3.0",
        "doctrine/dbal": "^2.10",
        "encore/laravel-admin": "^1.7",
        "endroid/qr-code": "^3.7",
        "erusev/parsedown": "^1.7",
        "fideloper/proxy": "^4.3",
        "fruitcake/laravel-cors": "^1.0",
        "gregwar/captcha": "^1.1",
        "guzzlehttp/guzzle": "^6.3",
        "intervention/image": "^2.5",
        "jaeger/querylist": "^4.2",
        "jenssegers/agent": "^2.6",
        "laravel/framework": "^7.8",
        "laravel/passport": "^8.4",
        "laravel/telescope": "^3.2",
        "laravel/tinker": "^2.4",
        "maatwebsite/excel": "^3.1",
        "mrgoon/aliyun-sms": "^2.0",
        "nesbot/carbon": "^2.32",
        "overtrue/wechat": "^4.2",
        "php-parallel-lint/php-console-color": "^0.2.0",
        "php-parallel-lint/php-console-highlighter": "^0.4.0",
        "phpoffice/phpspreadsheet": "^1.11",
        "predis/predis": "^1.1",
        "santigarcor/laratrust": "^5.2",
        "sentry/sentry-laravel": "^1.7",
        "sonata-project/google-authenticator": "^2.2",
        "tymon/jwt-auth": "^1.0",
        "upyun/sdk": "^3.4"
    },
    "require-dev": {
        "facade/ignition": "^2.0",
        "fzaninotto/faker": "^1.9.1",
        "mockery/mockery": "^1.3.1",
        "nunomaduro/collision": "^4.1",
        "orchestra/testbench": "^5.2",
        "phpunit/phpunit": "^8.5"
    },
    "config": {
        "optimize-autoloader": true,
        "preferred-install": "dist",
        "sort-packages": true
    },
    "extra": {
        "laravel": {
            "dont-discover": []
        }
    },
    "autoload": {
        "psr-4": {
            "App\\": "app/",
            "xaiolu\\dgg\\": "packages/xiaolu/dgg/src/"
        },
        "classmap": [
            "database/seeds",
            "database/factories"
        ]
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\\": "tests/"
        }
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
    "scripts": {
        "post-autoload-dump": [
            "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
            "@php artisan package:discover --ansi"
        ],
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "@php artisan key:generate --ansi"
        ]
    },
    "repositories": [
        {
            "type": "path",
            "url": "./packages/a031/user"
        }
    ]
}
"repositories": [
        {
            "type": "path",
            "url": "./packages/a031/user"
        }
    ]

然后执行composer require a031/user导入包就可以自动发现

.