Top "Psr-4" questions

PSR-4 describes requirements that must be adhered to for autoloader interoperability in PHP.

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
Is it possible use multiple classes under the same namespace, in the same file

Is it possible use multiple classes under the same namespace, in the same file? I want to do something like …

php oop namespaces psr-4
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
Composer Gives Error, "Class Not Found"

I'm using Windows 10. After making a folder src in the root directory I created two files in it. Directory Structure (…

php namespaces composer-php autoloader psr-4
Using classes without namespace with Yii2

I want to use Checkout SDK with Yii2 but since this library does not support PSR-4 standards (namespaces) I am …

php namespaces yii2 2checkout psr-4
Why specify the namespace when using psr-4 autoloading with Composer?

I'm a little confused with how I should be using psr-4 autoloading in Composer. Let's say I've got a folder …

php namespaces composer-php autoload psr-4
Laravel, using packages with PSR-4 gives message "No hint path defined for"

Im using Laravel 4.1 and starting a package (subby) that is using PSR-4 standard. When I try to render any view …

php laravel laravel-4 psr-4