{"action":"closed","issue":{"url":"https://api.github.com/repos/walkor/Workerman/issues/101","repository_url":"https://api.github.com/repos/walkor/Workerman","labels_url":"https://api.github.com/repos/walkor/Workerman/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/walkor/Workerman/issues/101/comments","events_url":"https://api.github.com/repos/walkor/Workerman/issues/101/events","html_url":"https://github.com/walkor/Workerman/issues/101","id":185167276,"number":101,"title":"workman项目必须在项目的目录下拷贝一份吗？我composer安装的无法运行。。。","user":{"login":"xjdata","id":4524983,"avatar_url":"https://avatars.githubusercontent.com/u/4524983?v=3","gravatar_id":"","url":"https://api.github.com/users/xjdata","html_url":"https://github.com/xjdata","followers_url":"https://api.github.com/users/xjdata/followers","following_url":"https://api.github.com/users/xjdata/following{/other_user}","gists_url":"https://api.github.com/users/xjdata/gists{/gist_id}","starred_url":"https://api.github.com/users/xjdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xjdata/subscriptions","organizations_url":"https://api.github.com/users/xjdata/orgs","repos_url":"https://api.github.com/users/xjdata/repos","events_url":"https://api.github.com/users/xjdata/events{/privacy}","received_events_url":"https://api.github.com/users/xjdata/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-25T16:25:32Z","updated_at":"2016-11-16T01:41:54Z","closed_at":"2016-11-16T01:41:54Z","body":"workman项目必须在项目的目录下拷贝一份吗？我composer安装的无法运行。。。\n\n按readme来。 `composer require workerman/workerman -vvv --prefer-dist`\ntest.php\n\n```\n<?php\nuse Workerman\\Worker;\nrequire_once './Workerman/Autoloader.php';\n//....\n```\n\n`php /data/wwwroot/test.php start`  报错 `PHP Fatal error:  require_once(): Failed opening required './workerman/Autoloader.php'`  当然这不奇怪，因为我test.php同级目录下确实没有`/workerman/Autoloader.php`\n\n但是我composer安装成功的啊。\ncomposer.json \n\n```\n    \"workerman/workerman\": \"^3.3\", //确定有装\n\n//同时 composer目录下的autoload_static.php 也存在workerman的配置\n        'Workerman\\\\' => \n        array (\n            0 => __DIR__ . '/..' . '/workerman/workerman',\n        ),\n```\n\n如果说 我项目目录下必须包含一份 Workerman 的整体代码   为什么又给出了composer安装方式呢？\n直接指明下载代码包是不是 更让人容易明白一点呢？\n\n当然我水平很菜，可能这种composer安装的方式有什么好处，我不了解，所以在这里乱说了。\n不对的地方请指正，并包涵。谢谢。\n"}}
{"actor":{"display_login":"walkor"}}