{"id":16236032,"url":"https://github.com/blopa/messengerbotphp","last_synced_at":"2025-07-23T13:31:07.964Z","repository":{"id":70312537,"uuid":"82349532","full_name":"blopa/MessengerBotPHP","owner":"blopa","description":"A very simple PHP Messenger Bot API wrapper for sending messages","archived":false,"fork":false,"pushed_at":"2017-11-04T05:04:59.000Z","size":10,"stargazers_count":17,"open_issues_count":2,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-03T04:23:22.549Z","etag":null,"topics":["api","bot","facebook","messenger","wrapper"],"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/blopa.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-18T00:23:20.000Z","updated_at":"2025-02-21T15:49:09.000Z","dependencies_parsed_at":"2023-02-25T09:46:12.644Z","dependency_job_id":null,"html_url":"https://github.com/blopa/MessengerBotPHP","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/blopa/MessengerBotPHP","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blopa%2FMessengerBotPHP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blopa%2FMessengerBotPHP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blopa%2FMessengerBotPHP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blopa%2FMessengerBotPHP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blopa","download_url":"https://codeload.github.com/blopa/MessengerBotPHP/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blopa%2FMessengerBotPHP/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266688946,"owners_count":23969139,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["api","bot","facebook","messenger","wrapper"],"created_at":"2024-10-10T13:28:46.022Z","updated_at":"2025-07-23T13:31:07.925Z","avatar_url":"https://github.com/blopa.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MessengerBotPHP\n\u003e A very simple PHP [Messenger Bot API](https://developers.facebook.com/docs/messenger-platform) for sending messages.    \n\u003e Based on [Telegram Bot API](https://github.com/Eleirbag89/TelegramBotPHP) by [Eleirbag89](https://github.com/Eleirbag89).\n\nRequirements\n---------\n\n* PHP5\n* Curl for PHP5 must be enabled.\n* Create a Facebook App at [https://developers.facebook.com/apps/](https://developers.facebook.com/apps/)\n\nFor the WebHook:\n* An SSL certificate (Facebook API requires this). You can use [Cloudflare's Free Flexible SSL](https://www.cloudflare.com/ssl) which crypts the web traffic from end user to their proxies if you're using CloudFlare DNS.    \n\nInstallation\n---------\n\n* Copy Messenger.php into your server and include it in your new bot script\n```php\ninclude(\"Messenger.php\");\n$facebook = new Messenger($bot_id);\n```\n\nConfiguration (WebHook)\n---------\n\nNavigate to [https://developers.facebook.com/apps/YOUR_APP_ID/messenger/](https://developers.facebook.com/apps/YOUR_APP_ID/messenger/) and add the webhook.\n\nExamples\n---------\n\n```php\n$facebook = new Messenger($bot_id);\n$text = $facebook-\u003eText();\n$chat_id = $facebook-\u003eChatID();\n$message_id = $facebook-\u003eEntryID();\n$message = \"Hello World\";\n$result = $facebook-\u003esendMessage($chat_id, $message);\n```\n\nSee examples.php for the complete example.\n\nEmoticons\n------------\nFor a list of emoticons to use in your bot messages, please refer to the column Bytes of this table:\nhttp://apps.timwhitlock.info/emoji/tables/unicode\n\nF.A.Q.\n------------\n**Q: Can you implement \u003c???\u003e function?**\n\nA: I can try. Open a issue and I'll see what I can do.\n\n**Q: Your code is awesome. How can I help?**\n\nA: Thank you! You can help by codding more features, creating pull requests, or donating using Bitcoin: **1BdL9w4SscX21b2qeiP1ApAFNAYhPj5GgG**\n\nLicense\n------------\nFree. Don't forget to star :D and send pull requests. :D\n\n**Free Software, Hell Yeah!**","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblopa%2Fmessengerbotphp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblopa%2Fmessengerbotphp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblopa%2Fmessengerbotphp/lists"}