PHP Namespace Refactor 🇧🇷Hi PHP Developers 👋! PHP Namespace Refactor: Extension for Visual Studio Code that automatically refactors namespace and references when moving PHP files between directories. Features🚀 Automatic namespace refactoringThe extension automatically detects when a PHP file or directory is moved (dragged and dropped) between directories and updates: - The namespace declared in the file. - All references to the old namespace in other files in the project. When a directory is moved, all PHP files inside it are processed through the same refactor flow. Ideal for projects using PSR-4, making it easy to reorganize directories without breaking dependencies.
Requirements
Extension SettingsThis extension contributes the following settings:
⚙️ Settings DescriptionphpNamespaceRefactor.ignoredDirectories
phpNamespaceRefactor.autoImportNamespace
phpNamespaceRefactor.removeUnusedImports
phpNamespaceRefactor.additionalExtensions
phpNamespaceRefactor.rename
phpNamespaceRefactor.editFilesInBackground
DocumentationFor architecture, internals, and troubleshooting notes, see ./docs/. Release notesSee ./CHANGELOG.md By PHP Developer for PHP Developers 🐘 |