{"id":36989325,"url":"https://github.com/checkmobi/checkmobi-php","last_synced_at":"2026-01-13T23:29:29.978Z","repository":{"id":31195080,"uuid":"34755806","full_name":"checkmobi/checkmobi-php","owner":"checkmobi","description":"CheckMobi PHP SDK","archived":false,"fork":false,"pushed_at":"2024-02-04T16:03:06.000Z","size":27,"stargazers_count":6,"open_issues_count":0,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-10T16:28:12.556Z","etag":null,"topics":["hlr-lookups","ivr-application","missed-call","mnp-lookup","sms-api","two-factor-authentication","voice-api"],"latest_commit_sha":null,"homepage":"https://checkmobi.com","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/checkmobi.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}},"created_at":"2015-04-28T21:04:04.000Z","updated_at":"2024-02-04T16:02:29.000Z","dependencies_parsed_at":"2022-09-13T17:21:18.305Z","dependency_job_id":null,"html_url":"https://github.com/checkmobi/checkmobi-php","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/checkmobi/checkmobi-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/checkmobi%2Fcheckmobi-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/checkmobi%2Fcheckmobi-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/checkmobi%2Fcheckmobi-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/checkmobi%2Fcheckmobi-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/checkmobi","download_url":"https://codeload.github.com/checkmobi/checkmobi-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/checkmobi%2Fcheckmobi-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28405130,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["hlr-lookups","ivr-application","missed-call","mnp-lookup","sms-api","two-factor-authentication","voice-api"],"created_at":"2026-01-13T23:29:29.419Z","updated_at":"2026-01-13T23:29:29.973Z","avatar_url":"https://github.com/checkmobi.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# checkmobi-php\n\nThe official SDK for integrating with the [CheckMobi API][1]. CheckMobi is a service that provides affordable services like: \n- Two-factor authentication via SMS, Missed Call, and IVR\n- SMS API for marketing and transactional notifications.\n- Voice API for creating custom IVRs.\n\nThis PHP SDK makes it easy for developers to add CheckMobi's features like SMS and Voice to their PHP apps without much hassle.\n\n## Requirements\n\nIn order to use the library you need to have available one of `CURL` or `HTTP_Request2` extension:\n\n### Using `CURL`\n\n```\nphp-curl\nphp-openssl\n```\n\n### Using `HTTP_Request2` :\n\n```\npear install HTTP_Request2\n```\n\nThe SDK initially checks for the `CURL` extension and then falls back to `HTTP_Request2` if necessary. You can set the transport method using the constructor's `options` parameter.\n\n## Installation\n\nThe SDK can be installed using `Composer`:\n\n```sh\ncomposer require  checkmobi/checkmobi-php\n```\n\n## Get started\n\n### Create the CheckMobiRest client\n\n```php\nuse checkmobi\\CheckMobiRest;\n$client = new CheckMobiRest(\"secret key here\");\n```\n\nIn case you want to change the default behaviours of the library you can use the `options` array properties:\n\n| Property       | Default                     | Description                                                                                                                                                                                                                                                                                                                                      |\n|----------------|-----------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| api.base_url   | https://api.checkmobi.com   | API endpoint.                                                                                                                                                                                                                                                                                                                                    |\n| api.version    | v1                          | API endpoint version.                                                                                                                                                                                                                                                                                                                            |\n| net.transport  | `RequestInterface::HANDLER_DEFAULT` | Transport engine: `RequestInterface::HANDLER_DEFAULT` - will try to use `CURL` if available otherwise fallbacks to `HTTP_Request2`, `RequestInterface::HANDLER_CURL` will force to use CURL, if fails will trigger an exception, `RequestInterface::HANDLER_HTTP2` will force `HTTP_Request2` instantiation, if fails will trigger an exception. |\n| net.timeout    | 30                          | Connection and request timeout in seconds.                                                                                                                                                                                                                                                                                                       |\n| net.ssl_verify_peer| true                    | Indicates if the server certificate is verified or not before transmitting any data.                                                                                                                                                                                                                                                             |\n\n#### Example\n\n```php\n$client = new CheckMobiRest(\"secret key here\", [\n    \"net.timeout\" =\u003e 10, \n    \"net.ssl_verify_peer\" =\u003e false\n]);\n```\n\n### Resources\n\nThe SDK is a wrapper over the REST API described [here][1]. For all properties accepted by the following methods check [the documentation][1].\n\n```php\n\n// get list of countries \u0026 flags\n\n$response = $client-\u003eGetCountriesList();\n\n// get account details\n\n$response = $client-\u003eGetAccountDetails();\n\n// get prefixes\n\n$response = $client-\u003eGetPrefixes();\n\n// checking a number for being valid\n\n$response = $client-\u003eCheckNumber(array(\"number\" =\u003e \"+number_here\"));\n\n// validate a number using \"Missed call method\". (type can be : sms, ivr, reverse_cli)\n\n$response = $client-\u003eRequestValidation(array(\"type\" =\u003e \"reverse_cli\", \"number\" =\u003e \"+number_here\"));\n\n// verify a pin for a certain request\n\n$response = $client-\u003eVerifyPin(array(\"id\" =\u003e \"request id here\", \"pin\" =\u003e \"5659\"));\n\n// check validation status for a certain request\n\n$response = $client-\u003eValidationStatus(array(\"id\" =\u003e \"request id here\"));\n\n// get remote config profile\n\n$response = $client-\u003eGetRemoteConfigProfile(array(\"number\" =\u003e \"+number_here\", \"platform\" =\u003e \"android\"));\n\n// send a custom sms\n\n$response = $client-\u003eSendSMS(array(\"to\" =\u003e \"+number_here\", \"text\" =\u003e \"message here\"));\n\n// get sms details\n\n$response = $client-\u003eGetSmsDetails(array(\"id\" =\u003e \"sms id here\"));\n\n// place call\n\n$params = [\n    \"from\" =\u003e \"+source_number_here\", \n    \"to\" =\u003e \"+destination_number_here\", \n    \"events\" =\u003e [\n        [\"action\" =\u003e \"speak\", \"text\" =\u003e \"Hello world\", \"loop\" =\u003e 2, \"language\" =\u003e \"en-US\"]\n    ]\n];\n$response = $client-\u003ePlaceCall($params);\n\n// get call details\n\n$response = $client-\u003eGetCallDetails(array(\"id\" =\u003e \"call id here\"));\n\n// hangup call\n\n$response = $client-\u003eHangUpCall(array(\"id\" =\u003e \"call id here\"));\n\n// perform HLR Lookup\n\n$response = $client-\u003eHLRLookup([\"number\"=\u003e \"+number here\"]);\n\n// perform MNP Lookup\n\n$response = $client-\u003eMNPLookup([\"number\"=\u003e \"+number here\"]);\n\n// perform number verification\n\n$response = $client-\u003eVerifyLookup([\"number\"=\u003e \"+number here\"]);\n\n```\n\n### Response handling\n\nThe response it's an object of the `CheckMobiResponse` type which exposes the following methods:\n\n| Method        | Description                                                                        |\n|---------------|------------------------------------------------------------------------------------|\n| is_success    | `boolean` - returns if the response represents an error or not.                    |\n| status_code   | `integer` - the HTTP status code received.                                         |\n| payload       | `array` or `NULL` - The json decoded response payload as received from the server. |\n\n#### Example\n\n```php\n\nif($response-\u003eis_success()) {\n    // success \n    print_r($response-\u003epayload());\n}\nelse\n{\n    // failure\n    print \"error code: \".$response-\u003epayload()[\"code\"].\" error message: \".$response-\u003epayload()[\"error\"];\n}\n```\n\n[1]:https://checkmobi.com/documentation/api-reference/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheckmobi%2Fcheckmobi-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcheckmobi%2Fcheckmobi-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheckmobi%2Fcheckmobi-php/lists"}