h-wang / utf-bom-fixer
UTF BOM fixer
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:application
Requires
- symfony/console: ~3.2
This package is not auto-updated.
Last update: 2024-11-23 21:15:26 UTC
README
Remove file UTF BOM.
The UTF-8 BOM is a sequence of bytes (EF BB BF) that allows the reader to identify a file as being encoded in UTF-8.
Normally, the BOM is used to signal the endianness of an encoding, but since endianness is irrelevant to UTF-8, the BOM is unnecessary.
According to the Unicode standard, the BOM for UTF-8 files is not recommended
Installation
Install dependencies
composer install
Run from the command line
php ./fixer fix dir_name_or_file_name [--extension=php]