Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The huge difference is that PHP package manager support namespaces and dependencies ARE FLAT. You cannot import 2 versions of the same package under the same namespace. Which

1/ forces package authors to write stable libraries

2/ forces dependencies to narrow the versions of their dependencies

3/ prevents name squatting to some extent. You cannot have a package named "forms" and then sell the name for real money, like seen on NPM. your package needs to be "namespace"/"name". NPM made a huge mistake with its gems like global namespace and it explains half the problems it is having today.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: