$response = $client->sms()->send( new \Vonage\SMS\Message\SMS(TO_NUMBER, BRAND_NAME, 'A text message sent using the Nexmo SMS API') ); $message = $response->current(); if ($message->getStatus() == 0) { echo "The message was sent successfully\n"; } else { echo "The message failed with status: " . $message->getStatus() . "\n"; }