note 122879 deleted from language.oop5.autoload by cmb
| From: | cmb@php.net | Date: | Sun, 29 Dec 2019 10:18:37 +0000 |
| Subject: | note 122879 deleted from language.oop5.autoload by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-213670@lists.php.net to get a copy of this message | ||
Note Submitter: jcastromail at yahoo dot es
----
It's a shame that PHP doesn't support autoload similar to C# or Java.
I tried composer's autoload and it forces you to work in some way and sometimes it doesn't
work. For example, classes without namespace.
So created a project (it's free) that autoload practically any class automatically without
impacting the performance (pre-process).
https://github.com/EFTEC/AutoLoadOne
It works with classes with or without namespace, many classes in a single file, many namespaces in a
single file and a namespace per folder or namespace in different folders. So it works with new and
old code and with different specifications, psr-0 or psr-4.