Top "Psr-4" questions

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

What Are the Differences Between PSR-0 and PSR-4?

Recently I've read about namespaces and how they are beneficial. I'm currently creating a project in Laravel and trying to …

php laravel composer-php psr-0 psr-4
A non-empty PSR-4 prefix must end with a namespace separator

I'm trying to setup PSR-4 with Composer but I'm just getting A non-empty PSR-4 prefix must end with a namespace …

composer-php psr-4
class does not comply with psr-4 autoloading standard. Skipping

I try to use composer autoload but I get this error composer.json { "autoload":{ "psr-4":{ "App\\":"app/" }, "files": ["app/functions/…

php composer-php psr-4
Composer with PSR-4 autoloading: classes from namespace not loading

I have the follow project structure: - root |- src <- Application specifc source |- [...] |- tests |- [...] |- …

php composer-php psr-4
Why use a PSR-0 or PSR-4 autoload in composer if classmap is actually faster?

I understand that you can use either a PSR standard to locate files, or tell composer a directory to scan …

php composer-php autoload psr-0 psr-4
Laravel error 'ReflectionException' - 'Class App\Http\Kernel does not exist'

I was trying to go live with a laravel project i developped a year back in school and i ran …

php laravel namespaces psr-4
PSR-4 autoloader Fatal error: Class not found

I have my project structure like so: src/ ├─ Model/ └─ User.php My User.php file looks like this: <?php …

composer-php autoload psr-4
PSR-4 autoloading with Composer

I run a portail with composer's autoloading class system: "autoload": { "psr-4": { "Portal\\": "src/" } } It works when I run composer.phar …

php composer-php autoload psr-4
Composer psr-4 autoload issue

I have problem with autoloading with composer when i use psr-4 autoloading it doesn't work and give me error. I …

php namespaces autoload psr-4
Laravel psr-4 not autoloading

I have a Laravel project that works fine locally (Mavericks), but classes under psr-4 aren't loading on our stage server (…

laravel laravel-4 composer-php psr-4