3 ms·
I'm not sure what you are talking about here. In PHP, everything can be configured with composer, PHP's defacto package manager, including all your directories
by throw_m239339 5y ago
I'm not sure what you are talking about here.
In PHP, everything can be configured with composer, PHP's defacto package manager, including all your directories and their namespaces.
> I absolutely hate having to work around autoloaders in third party APIs.
If your "third party API" aren't using composer themselves, a defacto standard in PHP, then they are not professionally written.
PHP doesn't have modules or any form of modularity or packages, unlike Ruby. PHP only has direct file references from other files (include,require...) and SPL autoloading which is just a way to automate direct file reference (through namespaces or other techniques).
I'm not sure what PHP autoloading has to do with any of this article at first place.
- matheusmoreira 5y agoRuby doesn't have modules or packages either. The require method just reads and executes a Ruby source file, changing global interpreter state.
- deleted 5y ago[deleted]