Download the PHP package nebbo.o/laravel-sheet-parser without Composer
On this page you can find all versions of the php package nebbo.o/laravel-sheet-parser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download nebbo.o/laravel-sheet-parser
More information about nebbo.o/laravel-sheet-parser
Files in nebbo.o/laravel-sheet-parser
Download nebbo.o/laravel-sheet-parser
More information about nebbo.o/laravel-sheet-parser
Files in nebbo.o/laravel-sheet-parser
Vendor nebbo.o
Package laravel-sheet-parser
Short Description A Laravel package to parse data from public Google Sheets and CSV files using a unified interface.
License MIT
Package laravel-sheet-parser
Short Description A Laravel package to parse data from public Google Sheets and CSV files using a unified interface.
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-sheet-parser
Laravel Sheet Parser 🚀
A Laravel package to parse data from CSV files and public Google Sheets using a unified interface.
Features
- Parse CSV files or public Google Sheets seamlessly.
- Consistent API for both data sources.
- Convert to arrays, JSON, or Laravel collections.
-
Retrieve rows, columns, headers, or specific data points.
Installation
Require the package via Composer:
Usage
1. Parsing CSV files
2. Parsing Google Sheets
Make sure the sheet is publicly accessible (Anyone with the link can view).
API Reference
Both and implement the same .
Methods
| Method | Description |
|---|---|
toArray(): array |
Returns the data as an array of associative arrays (using headers as keys). |
toJson(): string |
Returns the data as JSON. |
toCollection(): \Illuminate\Support\Collection |
Returns the data as a Laravel collection. |
headers(): array |
Returns the headers row. |
count(): int |
Returns the number of data rows (excluding headers). |
row(int $index): ?array |
Returns a specific row by index. |
column(string $header): array |
Returns all values from a specific column. |
first(): ?array |
Returns the first row of data. |
last(): ?array |
Returns the last row of data. |
hasHeader(string $header): bool |
Checks if a given header exists. |
Error Handling
The package provides custom exceptions you can catch to handle errors gracefully:
-
– CSV file does not exist.
-
– CSV file cannot be read.
-
– File is not a CSV.
-
– Invalid or missing Google Sheet URL.
-
– Failed to fetch or parse Google Sheet data.
Requirements
- 8.1+
-
10, 11, or 12
License
This package is open-sourced software licensed under the MIT license
All versions of laravel-sheet-parser with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
illuminate/support Version ^10.0 || ^11.0 || ^12.0
guzzlehttp/guzzle Version ^7.9
illuminate/support Version ^10.0 || ^11.0 || ^12.0
guzzlehttp/guzzle Version ^7.9
The package nebbo.o/laravel-sheet-parser contains the following files
Loading the files please wait ...