如何将作曲家包含在phpbrowserbox中?

时间:2016-05-07 20:27:49

标签: php composer-php exe

如何将作曲家包含在phpbrowserbox中? https://sourceforge.net/projects/phpbrowserbox/files/

1 个答案:

答案 0 :(得分:0)

0)下载phpbrowserbox源码 https://github.com/dhtml/phpbrowserbox

1)从手动下载下载composer.phar: https://getcomposer.org/download/ 并将此composer.phar移动到"...\support\inetpub"目录。就我而言 C:\Users\gintare\Downloads\support\inetpub

2)在ame目录中创建compose.json文件。就我而言,它是C:\Users\gintare\Downloads\support\inetpub\composer.json

{
    "name": "RecB2own",
    "type": "project",
    "description": "My Recipes",

    "autoload": {
        "psr-4": {
            "src\\core\\" : "src/core/",
            "Rec\\RecipBundle\\Entity\\" : "src/Rec/RecipBundle/Entity/",
            "Rec\\RecipBundle\\Controller\\" : "src/Rec/RecipBundle/Controller/"
        },
        "classmap": [
            "src/core/App.php",
            "src/core/View.php",
            "src/core/Controller.php"
        ]
    },    

    "require": {
        "doctrine/orm": "^2.5",
        "twig/twig": "^1.24",
        "filp/whoops": "^2.1"
    }   

}

3)通过删除infront“;”更改标记为配置文件的php.ini中的C:\Users\gintare\Downloads\support\php

extension=php_openssl.dll

4)使用cmd命令启动commnad行

4a)转到"...\support\inetpub"目录。就我而言,它是
C:\Users\gintare>cd C:\Users\gintare\Downloads\support\inetpub

4b)运行作曲家。就我而言,它是

C:\ Users \用户金塔尔\下载\支持\的Inetpub> C:\Users\gintare\Downloads\support\php\php C:\Users\gintare\Downloads\support\inetpub\composer.phar install