Given the following directories at the root of a project:
- app/, A combination of static resources and class-mapped project code
- src/, Configured to load namespaced PHP code
- vendor/, Packages managed by composer.json
Regardless of what framework I happen to be using, would it be correct to make use of the src
directory for portable code intended to be usable outside of the project, or is that the role of the vendor
directory?
Are there any issues that might arise as a result of using the src
directory for code intended to be shared?