{"id":18486138,"url":"https://github.com/mathsgod/whatsapp-client","last_synced_at":"2025-06-18T00:35:58.044Z","repository":{"id":178514520,"uuid":"661956578","full_name":"mathsgod/whatsapp-client","owner":"mathsgod","description":null,"archived":false,"fork":false,"pushed_at":"2023-07-04T04:35:55.000Z","size":8,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-13T22:24:13.702Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/mathsgod.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":"2023-07-04T03:57:05.000Z","updated_at":"2023-07-04T03:57:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"b0fe6953-98b0-40a4-957f-69a0bfc65650","html_url":"https://github.com/mathsgod/whatsapp-client","commit_stats":null,"previous_names":["mathsgod/whatsapp-client"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mathsgod/whatsapp-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathsgod%2Fwhatsapp-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathsgod%2Fwhatsapp-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathsgod%2Fwhatsapp-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathsgod%2Fwhatsapp-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mathsgod","download_url":"https://codeload.github.com/mathsgod/whatsapp-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathsgod%2Fwhatsapp-client/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260463410,"owners_count":23013296,"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-11-06T12:47:57.344Z","updated_at":"2025-06-18T00:35:53.027Z","avatar_url":"https://github.com/mathsgod.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WhatsApp Client\n\n## Description\n\nThis is a simple WhatsApp client that uses the WhatsApp Web API to send and receive messages.\n\n## Installation\n\n```bash\ncomposer require mathsgod/whatsapp-client\n```\n\n## Usage\nYou can generate token from https://business.facebook.com/settings/system-users/\n\nPhone number id is not phone number, find it in https://developers.facebook.com/apps/{app_id}/whatsapp-business/wa-dev-console/\n\n\n### Send a text message\n```php\n\n$wa = new WhatsApp\\Client($token, $phone_number_id);\n\n$wa-\u003esendText(\"85298765432\",\"Hello World!\");\n\n```\n\n\n### Send a document\n```php\n\n$wa = new WhatsApp\\Client($token, $phone_number_id);\n\n$wa-\u003esendDocument(\"85298765432\",$url,\"document.pdf\");\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathsgod%2Fwhatsapp-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathsgod%2Fwhatsapp-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathsgod%2Fwhatsapp-client/lists"}