- Is the PHP Formatter free to use?
- Yes, the PHP Formatter is completely free with no limitations. Format as much PHP code as you need without registration.
- Is my code private and secure?
- Yes, all PHP formatting happens locally in your browser. Your code, including database queries and server logic, is never sent to any server.
- What does the PHP Formatter do?
- The formatter beautifies PHP code with proper indentation, consistent brace placement, and appropriate spacing. It handles PHP-specific syntax including classes, namespaces, traits, and mixed HTML/PHP files.
- Does it follow PSR coding standards?
- Yes, the formatter follows PSR-12, the extended coding style guide for PHP. This includes proper indentation, brace placement, and spacing conventions that are standard in the PHP community.
- Can it format files with mixed HTML and PHP?
- Yes, the formatter handles files containing both PHP and HTML. It properly formats PHP blocks while preserving the structure of surrounding HTML, which is common in template files and legacy applications.