{"id":23346156,"url":"https://github.com/tpmanc/tiu-mailbox","last_synced_at":"2025-04-07T17:19:07.602Z","repository":{"id":57072243,"uuid":"69448773","full_name":"tpmanc/tiu-mailbox","owner":"tpmanc","description":"Get tiu.ru orders and messages from mailbox","archived":false,"fork":false,"pushed_at":"2017-06-14T06:46:22.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-13T19:28:56.438Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/tpmanc.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2016-09-28T09:38:29.000Z","updated_at":"2016-10-27T09:52:17.000Z","dependencies_parsed_at":"2022-08-24T14:54:34.077Z","dependency_job_id":null,"html_url":"https://github.com/tpmanc/tiu-mailbox","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/tpmanc%2Ftiu-mailbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpmanc%2Ftiu-mailbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpmanc%2Ftiu-mailbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpmanc%2Ftiu-mailbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tpmanc","download_url":"https://codeload.github.com/tpmanc/tiu-mailbox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247694881,"owners_count":20980733,"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-21T07:12:57.325Z","updated_at":"2025-04-07T17:19:07.579Z","avatar_url":"https://github.com/tpmanc.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tiu-mail\n\nGet tiu.ru orders and messages from mailbox.\n\n## REQUIREMENTS\n\n* [php imap extension](http://php.net/manual/imap.setup.php)\n\n## Install via Composer\n\nRun the following command\n\n```bash\n$ composer require tpmanc/tiu-mailbox \"*\"\n```\n\nor add\n\n```bash\n$ \"tpmanc/tiu-mailbox\": \"*\"\n```\n\nto the require section of your `composer.json` file.\n\n## Usage\n\n```php\n$tiu = new tpmanc\\tiu\\Tiu('{imap.yandex.ru:993/imap/ssl}INBOX', 'login@ya.ru', 'password');\n$tiu = $tiu-\u003esetLimit(50); // set mail count per page (default = 20)\n$pageCount = $tiu-\u003egetPageCount(); // get page count\n$tiu = $tiu-\u003egetByPage(0); // find tiu emails on first page\n\n$messages = $tiu-\u003egetMessages(); // get array of user messages\n$orders = $tiu-\u003egetOrders(); // get array of user orders\n\n$tiu-\u003eclose();\n```\n\n### Message object\n\nInfo about user message\n\n```php\n...\n\n$messages = $tiu-\u003egetMessages(); // get array of user messages\nforeach ($messages as $message) {\n    echo 'tiu id: ' . $message-\u003egetId();\n    echo 'theme: ' . $message-\u003egetTitle();\n    echo 'link: ' . $message-\u003egetLink();\n}\n...\n```\n\n### Order object\n\nInfo about user order\n\n```php\n...\n\n$orders = $tiu-\u003egetOrders(); // get array of user orders\nforeach ($orders as $order) {\n    echo 'tiu id: ' . $message-\u003egetId();\n    echo 'name: ' . $message-\u003egetUsername();\n    echo 'link: ' . $message-\u003egetLink();\n}\n...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpmanc%2Ftiu-mailbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftpmanc%2Ftiu-mailbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpmanc%2Ftiu-mailbox/lists"}