3 ms·
> File structure doesn't adhere to PHP league standard [https://github.com/thephpleague/skeleton https://github.com/thephpleague/skeleton] All PHP code should b
by laristine 5y ago
> File structure doesn't adhere to PHP league standard [https://github.com/thephpleague/skeleton https://github.com/thephpleague/skeleton] All PHP code should be in src directory or tests directory.
The PHP League Skeleton is only for packages. On the other hand, you use Laravel to create full applications so it's not applicable.
Even if somehow the Skeleton is so good its structure might be used for applications, we're under no obligation to follow PHP League's rules because they're just a private organization, not an authoritative source for standards such as PHP itself or PSR standards.
- hparadiz 5y agoIt's totally a preference thing which I admit. Personally however I think that all namespaced PHP code should go into src/$namespace. Config and tests directory not withstanding.