{"id":15307214,"url":"https://github.com/michalsn/codeigniter-safe-email","last_synced_at":"2026-04-16T03:32:46.439Z","repository":{"id":138836947,"uuid":"77470029","full_name":"michalsn/CodeIgniter-Safe-Email","owner":"michalsn","description":"Makes web scrapers life a little bit harder.","archived":false,"fork":false,"pushed_at":"2016-12-27T17:27:50.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-14T07:44:23.164Z","etag":null,"topics":["codeigniter","email","email-","jquery","obstruction"],"latest_commit_sha":null,"homepage":"","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/michalsn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2016-12-27T16:54:06.000Z","updated_at":"2019-03-13T07:56:56.000Z","dependencies_parsed_at":"2023-03-21T19:52:58.003Z","dependency_job_id":null,"html_url":"https://github.com/michalsn/CodeIgniter-Safe-Email","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"4cb1c11809ccb299e8a6d5c84df79239868fe5a9"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/michalsn/CodeIgniter-Safe-Email","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalsn%2FCodeIgniter-Safe-Email","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalsn%2FCodeIgniter-Safe-Email/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalsn%2FCodeIgniter-Safe-Email/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalsn%2FCodeIgniter-Safe-Email/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michalsn","download_url":"https://codeload.github.com/michalsn/CodeIgniter-Safe-Email/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalsn%2FCodeIgniter-Safe-Email/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31870508,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"online","status_checked_at":"2026-04-16T02:00:06.042Z","response_time":69,"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":["codeigniter","email","email-","jquery","obstruction"],"created_at":"2024-10-01T08:09:23.389Z","updated_at":"2026-04-16T03:32:46.414Z","avatar_url":"https://github.com/michalsn.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CodeIgniter Safe Email\n[![Build Status](https://travis-ci.org/michalsn/CodeIgniter-Safe-Email.svg?branch=master)](https://travis-ci.org/michalsn/CodeIgniter-Safe-Email)\n\nHow is this working exactly? This class converts all emails on the web page to \"special tags\", that web scrapers can't read. Most of the web scrapers can't run JavaScript. This class requires special jQuery plugin to convert \"special tags\" back to email addresses. This is the whole secret.\n\n* Full automation\n* No additional inline javascript\n* No special helper calls in code\n\n## Installation\n\nCopy `application/hooks/Safe_email.php` to your project.\n\nAdd below code to `application/config/hooks.php` file\n```php\n$hook['post_controller'][] = array(\n    'class'    =\u003e 'Safe_email',\n    'function' =\u003e 'initialize',\n    'filename' =\u003e 'Safe_email.php',\n    'filepath' =\u003e 'hooks'\n);\n```\n\nEnable hooks in your `application/config/config.php` file, by setting `$config['enable_hooks']` variable to `TRUE`.\n\nAdd jQuery plugin from `assets/js/jQuery.safeEmail.min.js` to your project and load it like this:\n```js\n$(document).ready(function() {\n    $.safeEmail();\n});\n```\n## Configuration options\n\nAt this time only available configuration option is identifier for \"special tags\".\n\nDefault value is `ci-safe-email`, but this may be changed in Safe_email class. Just edit `$class_name` variable. If you change it, be aware that you need to initialize `$.safeEmail` call with additional option, like this: `$.safeEmail({className: 'some-new-class-name'})`.\n\n## Limitations\n\nIf web scraper is build on something like PhantomJS, this class won't help you.\n\n## Testing\n\n```bash\ncomposer install\n./vendor/bin/phpunit\n```\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichalsn%2Fcodeigniter-safe-email","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichalsn%2Fcodeigniter-safe-email","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichalsn%2Fcodeigniter-safe-email/lists"}