php composer

1、安装扩展

composer require monolog/monolog

执行完之后,composer.json文件会添加

{
    "name": "topthink/think",
    "description": "the new thinkphp framework",
    "type": "project",
    "keywords": [
        "framework",
        "thinkphp",
        "ORM"
    ],
    "homepage": "http://thinkphp.cn/",
    "license": "Apache-2.0",
    "authors": [
        {
            "name": "liu21st",
            "email": "[email protected]"
        }
    ],
    "require": {
        "php": ">=5.6.0",
        "topthink/framework": "5.1.*",
"illuminate/support": "5.2.45",
        "illuminate/contracts": "5.2.45",
        "anerg2046/alidayu": "^1.1",
        "monolog/monolog": "^1.23"
    },
    "autoload": {
        "psr-4": {
            "app\\": "application"
        }
    },
    "extra": {
        "think-path": "thinkphp"
    },
    "config": {
        "preferred-install": "dist"
    }
}

你可能感兴趣的:(php)