{"id":13409512,"url":"https://github.com/tedious/Fetch","last_synced_at":"2025-03-14T14:31:29.825Z","repository":{"id":3557503,"uuid":"4618753","full_name":"tedious/Fetch","owner":"tedious","description":"An IMAP library for PHP","archived":false,"fork":false,"pushed_at":"2024-01-11T18:25:13.000Z","size":1550,"stargazers_count":503,"open_issues_count":79,"forks_count":160,"subscribers_count":26,"default_branch":"master","last_synced_at":"2024-10-29T21:27:27.732Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.tedivm.com","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/tedious.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2012-06-10T21:57:02.000Z","updated_at":"2024-10-22T09:51:23.000Z","dependencies_parsed_at":"2024-06-18T11:13:15.969Z","dependency_job_id":"a9d993c8-90c4-4f18-80c5-81e3699ef59c","html_url":"https://github.com/tedious/Fetch","commit_stats":{"total_commits":204,"total_committers":40,"mean_commits":5.1,"dds":0.5147058823529411,"last_synced_commit":"9a1b0eb87d343eb0c8c57acb33973c594b8aca8d"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tedious%2FFetch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tedious%2FFetch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tedious%2FFetch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tedious%2FFetch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tedious","download_url":"https://codeload.github.com/tedious/Fetch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243593419,"owners_count":20316182,"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-07-30T20:01:01.538Z","updated_at":"2025-03-14T14:31:24.805Z","avatar_url":"https://github.com/tedious.png","language":"PHP","funding_links":[],"categories":["电子邮件 Email","Table of Contents","PHP","目录"],"sub_categories":["Email","电子邮件 Email"],"readme":"# Fetch [![Build Status](https://travis-ci.org/tedious/Fetch.svg?branch=master)](https://travis-ci.org/tedious/Fetch)\n\n[![License](http://img.shields.io/packagist/l/tedivm/fetch.svg)](https://github.com/tedious/fetch/blob/master/LICENSE)\n[![Latest Stable Version](http://img.shields.io/github/release/tedious/fetch.svg)](https://packagist.org/packages/tedivm/fetch)\n[![Coverage Status](http://img.shields.io/coveralls/tedious/Fetch.svg)](https://coveralls.io/r/tedious/Fetch?branch=master)\n[![Total Downloads](http://img.shields.io/packagist/dt/tedivm/fetch.svg)](https://packagist.org/packages/tedivm/fetch)\n\nFetch is a library for reading email and attachments, primarily using the POP \nand IMAP protocols.\n\n\n## Installing\n\n \u003e N.b. A note on Ubuntu 14.04 (probably other Debian-based / Apt managed\n \u003e systems), the install of php5-imap does not enable the extension for CLI\n \u003e (possibly others as well), which can cause composer to report fetch\n \u003e requires `ext-imap`\n \n ```sh\nsudo ln -s /etc/php5/mods-available/imap.ini /etc/php5/cli/conf.d/30-imap.ini\n ```\n\n### Composer\n\nInstalling Fetch can be done through a variety of methods, although Composer\nis recommended.\n\nUntil Fetch reaches a stable API with version 1.0 it is recommended that you\nreview changes before even Minor updates, although bug fixes will always be\nbackwards compatible.\n\n```\n\"require\": {\n  \"tedivm/fetch\": \"0.7.*\"\n}\n```\n\n### Pear\n\nFetch is also available through Pear.\n\n```\n$ pear channel-discover pear.tedivm.com\n$ pear install tedivm/Fetch\n```\n\n### Github\n\nReleases of Fetch are available on [Github][:releases:].\n\n\n## Sample Usage\n\nThis is just a simple code to show how to access messages by using Fetch. It\nuses Fetch own autoload, but it can (and should be, if applicable) replaced\nwith the one generated by composer.\n\n```php\nuse Fetch\\Server;\nuse Fetch\\Message;\n\n$server = new Server('imap.example.com', 993);\n$server-\u003esetAuthentication('username', 'password');\n\n/** @var Message[] $message */\n$messages = $server-\u003egetMessages();\n\nforeach ($messages as $message) {\n    echo \"Subject: {$message-\u003egetSubject()}\", PHP_EOL;\n    echo \"Body: {$message-\u003egetMessageBody()}\", PHP_EOL;\n}\n```\n\n## License\n\nFetch is licensed under the BSD License. See the LICENSE file for details.\n\n[:releases:]: https://github.com/tedious/Fetch/releases\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftedious%2FFetch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftedious%2FFetch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftedious%2FFetch/lists"}