{"id":22169168,"url":"https://github.com/messente/messente-api-php","last_synced_at":"2025-10-27T17:13:47.159Z","repository":{"id":48719009,"uuid":"173294596","full_name":"messente/messente-api-php","owner":"messente","description":"Messente API library: https://packagist.org/packages/messente/messente-api-php","archived":false,"fork":false,"pushed_at":"2025-07-24T11:17:53.000Z","size":497,"stargazers_count":6,"open_issues_count":0,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-07-24T15:52:52.998Z","etag":null,"topics":["number-lookup","omnichannel","phonebook","statistics"],"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/messente.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,"zenodo":null}},"created_at":"2019-03-01T11:57:16.000Z","updated_at":"2025-01-22T14:00:58.000Z","dependencies_parsed_at":"2025-04-23T18:34:26.641Z","dependency_job_id":"e585d201-5b26-4b8e-a4fe-16233b515d59","html_url":"https://github.com/messente/messente-api-php","commit_stats":{"total_commits":35,"total_committers":4,"mean_commits":8.75,"dds":0.4285714285714286,"last_synced_commit":"9cc0ae8b367f6d87175be677bb3537e9d41caecd"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/messente/messente-api-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/messente%2Fmessente-api-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/messente%2Fmessente-api-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/messente%2Fmessente-api-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/messente%2Fmessente-api-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/messente","download_url":"https://codeload.github.com/messente/messente-api-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/messente%2Fmessente-api-php/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266887132,"owners_count":24001063,"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-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["number-lookup","omnichannel","phonebook","statistics"],"created_at":"2024-12-02T06:29:04.564Z","updated_at":"2025-10-27T17:13:47.152Z","avatar_url":"https://github.com/messente.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Messente API Library\n\n- Messente API version: 2.0.0\n- PHP artifact version: 3.4.1\n\n[Messente](https://messente.com) is a global provider of messaging and user verification services.  * Send and receive SMS, Viber and WhatsApp messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you\u0026#39;re not sending any unwanted messages.  Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.\n\n## Installation\n\nInstall Messente API library with `composer require messente/messente-api-php`.\n\n## Features\n\nMessente API has the following features:\n\n- Omnichannel ([external docs](https://messente.com/documentation/omnichannel-api)),\n- Phonebook ([external docs](https://messente.com/documentation/phonebook-api)).\n\nMessente API Library provides the operations described below to access the features.\n\n### AccountBalanceApi\n\n1. Get account balance [`getAccountBalance`](docs/Api/AccountBalanceApi.md#getaccountbalance)\n1. Get account balance [`getAccountBalanceUsingPost`](docs/Api/AccountBalanceApi.md#getaccountbalanceusingpost)\n\n### BlacklistApi\n\n1. Adds a phone number to the blacklist [`addToBlacklist`](docs/Api/BlacklistApi.md#addtoblacklist)\n1. Deletes a phone number from the blacklist [`deleteFromBlacklist`](docs/Api/BlacklistApi.md#deletefromblacklist)\n1. Returns all blacklisted phone numbers [`fetchBlacklist`](docs/Api/BlacklistApi.md#fetchblacklist)\n1. Checks if a phone number is blacklisted [`isBlacklisted`](docs/Api/BlacklistApi.md#isblacklisted)\n\n### BulkMessagingApi\n\n1. Sends a bulk Omnimessage [`sendBulkOmnimessage`](docs/Api/BulkMessagingApi.md#sendbulkomnimessage)\n\n### ContactsApi\n\n1. Adds a contact to a group [`addContactToGroup`](docs/Api/ContactsApi.md#addcontacttogroup)\n1. Creates a new contact [`createContact`](docs/Api/ContactsApi.md#createcontact)\n1. Deletes a contact [`deleteContact`](docs/Api/ContactsApi.md#deletecontact)\n1. Lists a contact [`fetchContact`](docs/Api/ContactsApi.md#fetchcontact)\n1. Lists groups of a contact [`fetchContactGroups`](docs/Api/ContactsApi.md#fetchcontactgroups)\n1. Returns all contacts [`fetchContacts`](docs/Api/ContactsApi.md#fetchcontacts)\n1. Removes a contact from a group [`removeContactFromGroup`](docs/Api/ContactsApi.md#removecontactfromgroup)\n1. Updates a contact [`updateContact`](docs/Api/ContactsApi.md#updatecontact)\n\n### DeliveryReportApi\n\n1. Retrieves the delivery report for the Omnimessage [`retrieveDeliveryReport`](docs/Api/DeliveryReportApi.md#retrievedeliveryreport)\n\n### GroupsApi\n\n1. Creates a new group with the provided name [`createGroup`](docs/Api/GroupsApi.md#creategroup)\n1. Deletes a group [`deleteGroup`](docs/Api/GroupsApi.md#deletegroup)\n1. Lists a group [`fetchGroup`](docs/Api/GroupsApi.md#fetchgroup)\n1. Returns all groups [`fetchGroups`](docs/Api/GroupsApi.md#fetchgroups)\n1. Updates a group with the provided name [`updateGroup`](docs/Api/GroupsApi.md#updategroup)\n\n### NumberLookupApi\n\n1. Requests info about phone numbers [`fetchInfo`](docs/Api/NumberLookupApi.md#fetchinfo)\n\n### NumberVerificationApi\n\n1. verify number [`verifyNumber`](docs/Api/NumberVerificationApi.md#verifynumber)\n1. verified the PIN code entered by the user. [`verifyPin`](docs/Api/NumberVerificationApi.md#verifypin)\n\n### OmnimessageApi\n\n1. Cancels a scheduled Omnimessage [`cancelScheduledMessage`](docs/Api/OmnimessageApi.md#cancelscheduledmessage)\n1. Sends an Omnimessage [`sendOmnimessage`](docs/Api/OmnimessageApi.md#sendomnimessage)\n\n### PricingApi\n\n1. Get pricelist for account [`getPricelist`](docs/Api/PricingApi.md#getpricelist)\n1. Get pricing for a specific country [`getPrices`](docs/Api/PricingApi.md#getprices)\n\n### StatisticsApi\n\n1. Requests statistics reports for each country [`createStatisticsReport`](docs/Api/StatisticsApi.md#createstatisticsreport)\n\n### WhatsAppTemplatesApi\n\n1. Creates a WhatsApp template [`createWhatsappTemplate`](docs/Api/WhatsAppTemplatesApi.md#createwhatsapptemplate)\n1. Deletes a WhatsApp template [`deleteWhatsappTemplate`](docs/Api/WhatsAppTemplatesApi.md#deletewhatsapptemplate)\n1. Requests a WhatsApp template with the given ID [`getWhatsappTemplateById`](docs/Api/WhatsAppTemplatesApi.md#getwhatsapptemplatebyid)\n1. Requests a list of WhatsApp templates [`listWhatsappTemplates`](docs/Api/WhatsAppTemplatesApi.md#listwhatsapptemplates)\n1. Updates a WhatsApp template [`updateWhatsappTemplate`](docs/Api/WhatsAppTemplatesApi.md#updatewhatsapptemplate)\n\n## Auth\n\n**Type**: HTTP basic authentication\n\nRead the [external getting-started article](https://messente.com/documentation/getting-started) which explains API keys and Sender ID logic.\n\n## Getting started: sending an omnimessage\n\n```php\n\u003c?php\nrequire_once(__DIR__ . '/../vendor/autoload.php');\n\nuse Messente\\Api\\Api\\OmnimessageApi;\nuse Messente\\Api\\Model\\Omnimessage;\nuse Messente\\Api\\Configuration;\nuse Messente\\Api\\Model\\WhatsApp;\nuse Messente\\Api\\Model\\WhatsAppParameter;\nuse Messente\\Api\\Model\\WhatsAppComponent;\nuse Messente\\Api\\Model\\WhatsAppLanguage;\nuse Messente\\Api\\Model\\WhatsAppTemplate;\n\n\n// Configure HTTP basic authorization: basicAuth\n$config = Configuration::getDefaultConfiguration()\n    -\u003esetUsername('\u003cMESSENTE_API_USERNAME\u003e')\n    -\u003esetPassword('\u003cMESSENTE_API_PASSWORD\u003e');\n\n$apiInstance = new OmnimessageApi(\n    new GuzzleHttp\\Client(),\n    $config\n);\n\n$omnimessage = new Omnimessage([\n    \"to\" =\u003e \"\u003cphone number in e.164 format\u003e\"\n]);\n\n$viber = new Viber(\n    [\"text\" =\u003e \"Hello Viber!\", \"sender\" =\u003e \"MyViberSender\"]\n);\n\n$sms = new SMS(\n    [\"text\" =\u003e \"Hello SMS!\", \"sender\" =\u003e \"MySmsSender\"]\n);\n\n$whatsAppParameters = [new WhatsAppParameter(['type' =\u003e 'text', 'text' =\u003e 'hello whatsapp'])];\n$whatsAppComponent = new WhatsAppComponent(['type' =\u003e 'body', 'parameters' =\u003e $whatsAppParameters]);\n$whatsAppLanguage = new WhatsAppLanguage(['code' =\u003e '\u003clanguage_code\u003e']);\n$whatsAppTemplate = new WhatsAppTemplate(\n    [\n        'name'=\u003e '\u003ctemplate_name\u003e',\n        'language'=\u003e $whatsAppLanguage,\n        'components' =\u003e [$whatsAppComponent]\n    ]\n);\n\n$whatsapp = new WhatsApp(\n    [\n        'sender' =\u003e '\u003csender name (optional)\u003e',\n        'template' =\u003e $whatsAppTemplate,\n    ]\n);\n\n$omnimessage-\u003esetMessages([$whatsapp, $viber, $sms]);\n\n\ntry {\n    $result = $apiInstance-\u003esendOmnimessage($omnimessage);\n    print_r($result);\n} catch (Exception $e) {\n    echo 'Exception when calling sendOmnimessage: ', $e-\u003egetMessage(), PHP_EOL;\n}\n?\u003e\n\n```\n\n## License\n\n[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0.html)\n\n## Terms\n\n[https://messente.com/terms-and-conditions](https://messente.com/terms-and-conditions)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmessente%2Fmessente-api-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmessente%2Fmessente-api-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmessente%2Fmessente-api-php/lists"}