Top "Autoload" questions

autoload is a language convention which allows missing classes or method dependencies to be loaded on-demand.

PHP - most lightweight psr-0 compliant autoloader

I have a tiny application that i need an autoloader for. I could easily use the symfony2 class loader but …

php autoload psr-0
CodeIgniter 4: Autoload Library

I'm using the latest 'master' branch of CodeIgniter 4 I have a Library that I'm trying to load automatically. Effectively, I …

php autoload codeigniter-4
Rails 3: how to load files in /lib?

I'm new to rails and making some sort of noob mistake: I frequently need to count the number of lines …

ruby-on-rails-3 require autoload
PHP composer autoload not loading class

I'm just getting started using composer for dependency management and I'm having a hard time figuring out how I'm not …

php composer-php autoload psr-4
Custom composer namespace doesn't find class

I'm trying to use my custom namespace for my personal classes. The directory structure is (as usual): my_project/ - …

php class namespaces composer-php autoload
PHP namespacing and spl_autoload_register

I had spl_autoload_register working fine but then I decided to add some namespacing to bring in PSR2 compliance …

php namespaces autoload spl-autoload-register
PSR-4 autoloading not working

I have created an app/modules directory and autoloaded it using PSR-4 like this: "psr-4": { "Modules\\": "app/modules" } And I …

php laravel laravel-4 autoload psr-4
Difference between PSR-4 and classmap autoloading?

In regards to Laravel, I got a question about Composer autoloading i.e. the difference between "psr-4" and "classmap" autoloading. 1 …

composer-php autoload psr-4
Slim 3 autoloader

I'm new to slim framework, and can't figure out how to use the autoloader to autoload my classes. I created …

php autoload slim
There is a way to use CLASS_EXISTS and __autoload without CRASH the script?

Example: ClassName.php <?php echo "This will crash all"; ?> In another file... foreach ($FILENAMES_WITHOUT_DOT_PHP as $…

php exec autoload