{"id":16444951,"url":"https://github.com/jaymon/emailparse","last_synced_at":"2026-05-15T04:32:46.675Z","repository":{"id":7063647,"uuid":"8347397","full_name":"Jaymon/EmailParse","owner":"Jaymon","description":"Easily parse emails in PHP","archived":false,"fork":false,"pushed_at":"2013-02-22T00:46:29.000Z","size":120,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-08T22:38:21.245Z","etag":null,"topics":["email","email-parsing","php-library"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jaymon.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-02-22T00:43:21.000Z","updated_at":"2018-04-08T01:10:15.000Z","dependencies_parsed_at":"2022-07-30T09:37:59.118Z","dependency_job_id":null,"html_url":"https://github.com/Jaymon/EmailParse","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jaymon%2FEmailParse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jaymon%2FEmailParse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jaymon%2FEmailParse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jaymon%2FEmailParse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jaymon","download_url":"https://codeload.github.com/Jaymon/EmailParse/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240816563,"owners_count":19862310,"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":["email","email-parsing","php-library"],"created_at":"2024-10-11T09:42:44.421Z","updated_at":"2026-05-15T04:32:41.650Z","avatar_url":"https://github.com/Jaymon.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EmailParse\n\nEasy parsing of emails in PHP\n\n## Parse an email\n\n    include_once('EmailMap.php');\n    include_once('EmailParse.php');\n\n    // $input is a raw email string\n    // get $input from some other php library like a pop3 library or something\n\n    $ep = new EmailParse();\n    $email_map = $ep-\u003eparse($input);\n\n    print_r($email_map-\u003egetTo()); // getTo() returns a list since there can be more than one to address\n    echo $email_map-\u003egetFrom();\n\n    echo $email-\u003egetSubject();\n    echo $email-\u003egetPlainBody();\n\n    print_r($email_map-\u003egetAttachments());\n\n## Todo\n\nRight now you have to have the full email before you can parse it, some email can be pretty big\nif they have lots of attachments (or one really big attachment). So it would probably be prudent\nto make `parse()` be able to take a file-pointer so it can read in the email line by line or something.\nI haven't done this yet because it's never been a problem in the places I use this lib.\n\n## License\n\nMIT, pull requests encouraged.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaymon%2Femailparse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaymon%2Femailparse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaymon%2Femailparse/lists"}