Using Composer's Autoload
问题 I have been looking around the net with no luck on this issue. I am using composer's autoload with this code in my composer.json : "autoload": { "psr-0": {"AppName": "src/"} } But I need to autoload at a higher level than the vendor folder. Doing something like this does not work: "autoload": { "psr-0": {"AppName": "../src/"} } Does anyone know a fix or how I can do this? 回答1: Every package should be responsible for autoloading itself, what are you trying to achieve with autoloading classes