{"id":18517827,"url":"https://github.com/femtopixel/utf8-bom-fixer","last_synced_at":"2025-04-09T08:31:03.306Z","repository":{"id":97056026,"uuid":"69903430","full_name":"femtopixel/utf8-bom-fixer","owner":"femtopixel","description":"Fix files \"infected\" by UTF-8 BOM character written in PHP (4,5,7 compatible)","archived":false,"fork":false,"pushed_at":"2024-05-02T16:11:08.000Z","size":403,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T03:23:46.887Z","etag":null,"topics":["bom-character","docker-image","php"],"latest_commit_sha":null,"homepage":"https://brands.jaymoulin.me/femtopixel/utf8-bom-fixer/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/femtopixel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["jaymoulin"],"patreon":null,"open_collective":null,"ko_fi":"jaymoulin","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://www.paypal.me/jaymoulin","https://www.buymeacoffee.com/jaymoulin","https://www.tipeeestream.com/cursedware/donation","https://streamlabs.com/cursedware/tip"]}},"created_at":"2016-10-03T19:28:23.000Z","updated_at":"2024-05-02T16:11:10.000Z","dependencies_parsed_at":"2023-06-25T23:35:42.712Z","dependency_job_id":null,"html_url":"https://github.com/femtopixel/utf8-bom-fixer","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/femtopixel%2Futf8-bom-fixer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/femtopixel%2Futf8-bom-fixer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/femtopixel%2Futf8-bom-fixer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/femtopixel%2Futf8-bom-fixer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/femtopixel","download_url":"https://codeload.github.com/femtopixel/utf8-bom-fixer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248003011,"owners_count":21031714,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bom-character","docker-image","php"],"created_at":"2024-11-06T17:09:35.454Z","updated_at":"2025-04-09T08:31:02.950Z","avatar_url":"https://github.com/femtopixel.png","language":"PHP","funding_links":["https://github.com/sponsors/jaymoulin","https://ko-fi.com/jaymoulin","https://www.paypal.me/jaymoulin","https://www.buymeacoffee.com/jaymoulin","https://www.tipeeestream.com/cursedware/donation","https://streamlabs.com/cursedware/tip","https://www.ko-fi.com/jaymoulin"],"categories":[],"sub_categories":[],"readme":"\u003e [!CAUTION]\n\u003e As-of 2021, this product does not have a free support team anymore. If you want this product to be maintained, please support my work.\n \n\u003e [!NOTE]\n\u003e (This product is available under a free and permissive license, but needs financial support to sustain its continued improvements. In addition to maintenance and stability there are many  desirable features yet to be added.)\n\n![logo](logo.png)\n\nUTF-8 BOM Fixer\n===============\n\n[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%204.3-8892BF.svg?style=flat-square)](https://php.net/)\n[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%205.0-8892BF.svg?style=flat-square)](https://php.net/)\n[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%207.0-8892BF.svg?style=flat-square)](https://php.net/)\n[![license](https://img.shields.io/github/license/femtopixel/utf8-bom-fixer.svg?maxAge=2592000)]()\n[![PayPal donation](https://github.com/jaymoulin/jaymoulin.github.io/raw/master/ppl.png \"PayPal donation\")](https://www.paypal.me/jaymoulin)\n[![Buy me a coffee](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png \"Buy me a coffee\")](https://www.buymeacoffee.com/jaymoulin)\n[![Buy me a coffee](https://ko-fi.com/img/githubbutton_sm.svg \"Buy me a coffee\")](https://www.ko-fi.com/jaymoulin)\n\nFix files \"infected\" by UTF-8 bom character. This script will remove the BOM character at the beginning of each files.\n\nThis character purpose is to force encode files in UTF-8 by adding a special character at the beginning of the file.\nIssues appears with this character on a web server because it might be interpreted (e.g : PHP files are not interpreted anymore)\n\nUsage\n===\n\n```\nphp bomreplacer.php [[directory] [comma_separated_extensions]]\n```\n\n## Parameters \n\noptional **directory** (current directory if not specified) directory to recursively \"heal\"\noptional **comma_separated_extensions** (all if not specified) allowed extension a file must have to be \"healed\" (comma (,) separated)\n\n## Example\n\n```\nphp bomreplacer.php /home/www\n```\n\nWill fix all files in **/home/www** folder\n\n```\nphp bomreplacer.php /home/www php,css\n```\n\nWill fix all **PHP** and **CSS** files in **/home/www** folder but will leave the other files as-is.\n\nDocker Usage\n===========\n\n```\ndocker run --rm -ti -v \"$PWD\":/src femtopixel/utf8-bom-fixer\n```\n\nWill fix all files in your current path. You can call `bomreplacer` if you want to pass specific parameters\n\nExample\n-------\n\n```\ndocker run --rm -ti -v \"$PWD:/src\" femtopixel/utf8-bom-fixer bomreplacer /src php,css\n```\n\nWill fix all **PHP** and **CSS** files in current directory but will leave the other files as-is.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffemtopixel%2Futf8-bom-fixer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffemtopixel%2Futf8-bom-fixer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffemtopixel%2Futf8-bom-fixer/lists"}