common problem

The HTTP server have been running!(PID: xx)

This problem occurs because the service has already started. Usually two ways to solve, the first way, stop service. The second way, kill pid .

Could not scan for classes inside xxx which does not appear to be a file nor a folder

This problem is a problem with the composer source. It usually occurs when 创建项目 ( composer create swoft/swoft swoft ). The solution is very simple and only needs to switch the source 全局设置 . Such as: composer config -g repo.packagist composer .

For more source switching, see Composer Configuration