{"id":26793088,"url":"https://github.com/beapi/bea-sanitize-filename","last_synced_at":"2025-10-09T17:35:31.730Z","repository":{"id":59748059,"uuid":"46983174","full_name":"BeAPI/bea-sanitize-filename","owner":"BeAPI","description":"Remove all punctuation and accents from the filename of uploaded files","archived":false,"fork":false,"pushed_at":"2022-09-27T15:22:05.000Z","size":838,"stargazers_count":17,"open_issues_count":8,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-10-09T17:35:29.722Z","etag":null,"topics":["sanitize","uploads","wordpress","wordpress-mu-plugin","wordpress-plugin"],"latest_commit_sha":null,"homepage":"https://wordpress.org/plugins/bea-sanitize-filename","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BeAPI.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-27T14:02:29.000Z","updated_at":"2023-08-24T15:01:39.000Z","dependencies_parsed_at":"2023-01-18T20:30:25.107Z","dependency_job_id":null,"html_url":"https://github.com/BeAPI/bea-sanitize-filename","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/BeAPI/bea-sanitize-filename","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeAPI%2Fbea-sanitize-filename","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeAPI%2Fbea-sanitize-filename/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeAPI%2Fbea-sanitize-filename/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeAPI%2Fbea-sanitize-filename/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BeAPI","download_url":"https://codeload.github.com/BeAPI/bea-sanitize-filename/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeAPI%2Fbea-sanitize-filename/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001869,"owners_count":26083197,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["sanitize","uploads","wordpress","wordpress-mu-plugin","wordpress-plugin"],"created_at":"2025-03-29T16:19:02.244Z","updated_at":"2025-10-09T17:35:31.710Z","avatar_url":"https://github.com/BeAPI.png","language":"PHP","funding_links":["https://www.paypal.me/BeAPI"],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"https://beapi.fr\"\u003e![Be API Github Banner](.wordpress.org/banner-github.png)\u003c/a\u003e\n\n# BEA - Sanitize Filename\n\nThis plugin will remove all punctuation and accents from the filename of uploaded files, which is pretty handy.\nYou could then ask \"Why it's not already into core?\". This is [make WordPress core](https://core.trac.wordpress.org/ticket/22363) !\n\n# How ?\n\n## Requirements\n\n- No requirements\n\n## Installation\n\nAs we assume this is a must have plugin, it's recommended to use at it as mu-plugin. As it is a folder, you must use a MU Loader : https://github.com/BeAPI/wp-mu-loader.\n\n### WordPress\n\n- Download and copy the plugin folder into your must-use plugins folder.\n- Nothing more, this plugin is ready to use !\n\n### [Composer](http://composer.rarst.net/)\n\n- Add repository source : `{ \"type\": \"git\", \"url\": \"https://github.com/BeAPI/bea-sanitize-filename\" }`.\n- Include `\"bea/sanitize-filename\": \"dev-master\"` in your composer file for last master's commits or a tag released.\n- Nothing more, this plugin is ready to use !\n\n# What ?\n\n## Features\n\n* All accented letters will be converted to same letters without accent\n* Special characters will be deleted\n* Underscores will be replaced by hyphens\n\n## Compatibility for MAC owners\n\nOn MAC, you can also create an accented character with the combination of *\u003ccode\u003e`\u003c/code\u003e* and the wanted letter. This has the effect to create a character with a special filename system encoding format which is not sanitized.\nAn [issue](https://github.com/BeAPI/bea-sanitize-filename/issues/1) is open about this.\n  \n## Contributing\n\n## Testing\n\n### Introduction\n\nThe tests are based on [WP-Browser](https://github.com/lucatume/wp-browser).\n\nYou have WPUnit and Acceptance tests.  \n\n### Installation\n\n1. Install [Lando](https://docs.devwithlando.io/installation/installing.html)\n2. From command line into the project folder execute `./bin/lando-start.sh`\n3. From command line into the project folder execute `lando composer install`\n\nThe local url will be https://beasanitizefilename.lndo.site and credentials will be\n* user : admin\n* password : admin\n\n### Tools\nTo test the code, just launch :\n* For Wpunit tests and desktop : `lando test-local`\n* For desktop mobile : `lando test-mobile`\n\nIf you need to test the code on BrowserStack, you need to define two environments variables :\n* `BROWSERSTACK_USERNAME_REAL` : the usernmae of your browserStack account\n* `BROWSERSTACK_KEY` : the key of your browserStack account\n\n/!\\ Do not commit theses credentials /!\\\n\n## Customization\n\nNeed to customize the environment variables ? every codeception file can be overrided bit by bit by creating a new file without the .dist.\nSo to customize the .env file you'l need to :\n\n* Create a codeception.yml file\n* Put into the file :\n```\nparams:\n- .env.local\n```\n* Create a .env.local file and change the desired environment variables like `BROWSERSTACK_KEY`\n\n## Changelog\nPlease refer to the [contributing guidelines](.github/CONTRIBUTING.md) to increase the chance of your pull request to be merged and/or receive the best support for your issue.\n\n### Issues \u0026 features request / proposal\n\nIf you identify any errors or have an idea for improving the plugin, feel free to open an [issue](../../issues/new). Please provide as much info as needed in order to help us resolving / approve your request.\n\n# Who ?\n\nCreated by [Be API](https://beapi.fr), the French WordPress leader agency since 2009. Based in Paris, we are more than 30 people and always [hiring](https://beapi.workable.com) some fun and talented guys. So we will be pleased to work with you.\n\nThis plugin is only maintained by the [Be API team](https://beapi.fr), which means we do not guarantee some free support. Consider reporting an [issue](#issues--features-request--proposal) and be patient.\n\nIf you really like what we do or want to thank us for our quick work, feel free to [donate](https://www.paypal.me/BeAPI) as much as you want / can, even 1€ is a great gift for buying cofee :)\n\n## License\n\nBEA - Sanitize Filename is licensed under the [GPLv3 or later](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeapi%2Fbea-sanitize-filename","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeapi%2Fbea-sanitize-filename","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeapi%2Fbea-sanitize-filename/lists"}