{"id":22640746,"url":"https://github.com/beastbytes/email-obfuscator","last_synced_at":"2025-03-29T05:25:57.124Z","repository":{"id":177328171,"uuid":"659805673","full_name":"beastbytes/email-obfuscator","owner":"beastbytes","description":"Yii3 widget to obfuscate email addresses to prevent harvesting by bots","archived":false,"fork":false,"pushed_at":"2023-06-30T14:00:08.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-06T19:54:46.739Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/beastbytes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2023-06-28T15:42:01.000Z","updated_at":"2023-06-29T14:43:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"90780eea-2ef6-4fca-bb25-e0ac31f67b56","html_url":"https://github.com/beastbytes/email-obfuscator","commit_stats":null,"previous_names":["beastbytes/email-obfuscator"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beastbytes%2Femail-obfuscator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beastbytes%2Femail-obfuscator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beastbytes%2Femail-obfuscator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beastbytes%2Femail-obfuscator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beastbytes","download_url":"https://codeload.github.com/beastbytes/email-obfuscator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246143346,"owners_count":20730244,"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":[],"created_at":"2024-12-09T04:13:47.727Z","updated_at":"2025-03-29T05:25:57.119Z","avatar_url":"https://github.com/beastbytes.png","language":"PHP","readme":"# emailobfuscator\nWidget to obfuscate an email address to help prevent harvesting by spam bots.\n\nIf JavaScript is disabled on the client, the widget will output either a message or an obfuscated version of the email address.\n\nIf JavaScript is enabled the \noutput is replaced with (by default) a mailto link showing (again by default) the email address. The content of the \nmailto link can be customised.\n\nFor license information see the [LICENSE](LICENSE.md) file.\n\n## Installation\n\nThe preferred way to install this extension is through [composer](http://getcomposer.org/download/).\n\nEither run\n\n```\nphp composer.phar require --prefer-dist beastbytes/emailobfuscator\n```\n\nor add\n\n```json\n\"beastbytes/emailobfuscator\": \"^1.0\"\n```\n\nto the require section of your composer.json.\n\n## Usage\n\nUse this extension in a view.\n\nTo output the default message (\"This e-mail address is protected to prevent harvesting by spam-bots\")\n\n```php\necho EmailObfuscator::widget([\n    'email' =\u003e 'my.address@example.com'\n]);\n```\n\n### Output\n\n#### JavaScript Disabled\n\n```html\n\u003cspan id=\"w0\"\u003eThis e-mail address is protected to prevent harvesting by spam-bots\u003c/span\u003e\n```\n\n#### JavaScript Enabled\n\n```html\n\u003cspan id=\"w0\"\u003e\u003ca href=\"mailto:my.address@example.com\"\u003emy.address@example.com\u003c/a\u003e\u003c/span\u003e\n```\n\n---\n\nTo output a different message set content['obfuscated']\n```php\necho EmailObfuscator::widget([\n    'email' =\u003e 'my.address@example.com',\n    'content' =\u003e ['obfuscated' =\u003e 'Enable JavaScript to see the email address']\n]);\n```\n\n### Output\n\n#### JavaScript Disabled\n\n```html\n\u003cspan id=\"w0\"\u003eEnable JavaScript to see the email address\u003c/span\u003e\n```\n\n#### JavaScript Enabled\n\n```html\n\u003cspan id=\"w0\"\u003e\u003ca href=\"mailto:my.address@example.com\"\u003emy.address@example.com\u003c/a\u003e\u003c/span\u003e\n```\n\n---\n\nTo output an obfuscated version of the email address set the obfuscators: \"my dot address at example dot com\"\n\n```php\necho EmailObfuscator::widget([\n    'email' =\u003e 'my.address@example.com',\n    'obfuscators' =\u003e [' dot ', ' at ']\n]);\n```\n\n### Output\n\n#### JavaScript Disabled\n\n```html\n\u003cspan id=\"w0\"\u003emy dot address at example dot com\u003c/span\u003e\n```\n\n#### JavaScript Enabled\n\n```html\n\u003cspan id=\"w0\"\u003e\u003ca href=\"mailto:my.address@example.com\"\u003emy.address@example.com\u003c/a\u003e\u003c/span\u003e\n```\n\n---\n\nTo set the content of the mailto link, set content['clear']\n\n```php\necho EmailObfuscator::widget([\n    'email' =\u003e 'my.address@example.com',\n    'content' =\u003e ['clear' =\u003e 'by email']\n]);\n```\n\n### Output\n\n#### JavaScript Disabled\n\n```html\n\u003cspan id=\"w0\"\u003eThis e-mail address is protected to prevent harvesting by spam-bots\u003c/span\u003e\n```\n\n#### JavaScript Enabled\n\n```html\n\u003cspan id=\"w0\"\u003e\u003ca href=\"mailto:my.address@example.com\"\u003eby email\u003c/a\u003e\u003c/span\u003e\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeastbytes%2Femail-obfuscator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeastbytes%2Femail-obfuscator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeastbytes%2Femail-obfuscator/lists"}