src/Sender/Status.php
public function extractResponse(Response $response)
    {
        // dump the first 2 lines indicated by the string "0|Returns to follow\n\n"
        $cleaned     = substr($response->body, strlen("0|Returns to follow\n\n"), strlen($response->body));
        $statusitems = explode("\n", $cleaned);

        $siit     = new \ArrayIterator(array_filter($statusitems));
        $toreturn = [];
        foreach ($siit as $item) {
            $expected = array('msisdn', 'status_code');
            $parts    = explode('|', $item);
            $it       = new \ArrayIterator($parts);
            if (count($expected) != $it->count()) {
                throw new BulkSmsException(
                    "Count of BulkSMS response does not match expectations!. Return: " . $response->body
                );
            }

            $status = [];
            foreach ($expected as $statusitem) {
                $status[ $statusitem ] = $it->current();
                $it->next();

            }
            $toreturn[ ] = $status;
        }

        return $toreturn;
    }
public function extractResponse(Response $response)
    {
        // dump the first 2 lines indicated by the string "0|Returns to follow\n\n"
        $cleaned     = substr($response->body, strlen("0|Returns to follow\n\n"), strlen($response->body));
        $statusitems = explode("\n", $cleaned);

        $siit     = new \ArrayIterator(array_filter($statusitems));
        $toreturn = [];
        foreach ($siit as $item) {
            $expected = array('msisdn', 'status_code');
            $parts    = explode('|', $item);
            $it       = new \ArrayIterator($parts);
            if (count($expected) != $it->count()) {
                throw new BulkSmsException(
                    "Count of BulkSMS response does not match expectations!. Return: " . $response->body
                );
            }

            $status = [];
            foreach ($expected as $statusitem) {
                $status[ $statusitem ] = $it->current();
                $it->next();

            }
            $toreturn[ ] = $status;
        }

        return $toreturn;
    }
Extract response from Sender - depends on sender

@param Response $response

@return array('msisdn', 'status_code')
@throws BulkSmsException