symplify/psr4-switcher

Switch classmap to PSR-4


Keywords
autoload, classmap, composer, migration, php, psr-4
License
MIT

Documentation

PSR-4 Switcher

Downloads total

How to switch to PSR4 in your composer.json?

Install

composer require symplify/psr4-switcher --dev

Usage

Does short file name matches the class name?

vendor/bin/psr4-switcher check-file-class-name src

What files have 2 and more classes?

vendor/bin/psr4-switcher find-multi-classes tests

Report Issues

In case you are experiencing a bug or want to request a new feature head over to the Symplify monorepo issue tracker

Contribute

The sources of this package are contained in the Symplify monorepo. We welcome contributions for this package on symplify/symplify.