src/LazyStrings.php
private function parse($csvUrl)
    {
        $csvFile = fopen($csvUrl, 'r');
        $strings = [];

        if ($csvFile !== false) {
            while (($row = fgetcsv($csvFile, 1000, ',')) !== false) {
                if ($row[0] !== '' && $row[0] !== 'id') {
                    $id = $this->str->strip($row[0]);
                    $value = $row[1];

                    if ($this->nested) {
                        if ($this->str->hasDots($id)) {
                            $strings = array_replace_recursive($strings, $this->str->convertToArray($id, $value));
                        } else {
                            $strings[$id] = $value;
                        }
                    } else {
                        $strings[$id] = $value;
                    }
                }
            }

            fclose($csvFile);
        }

        return $strings;
    }
private function parse($csvUrl)
    {
        $csvFile = fopen($csvUrl, 'r');
        $strings = [];

        if ($csvFile !== false) {
            while (($row = fgetcsv($csvFile, 1000, ',')) !== false) {
                if ($row[0] !== '' && $row[0] !== 'id') {
                    $id = $this->str->strip($row[0]);
                    $value = $row[1];

                    if ($this->nested) {
                        if ($this->str->hasDots($id)) {
                            $strings = array_replace_recursive($strings, $this->str->convertToArray($id, $value));
                        } else {
                            $strings[$id] = $value;
                        }
                    } else {
                        $strings[$id] = $value;
                    }
                }
            }

            fclose($csvFile);
        }

        return $strings;
    }
Parse provided csv document.

@param string $csvUrl Url of google doc.

@return array