CSV
csv-collection
Our great sponsors
CSV | csv-collection | |
---|---|---|
7 | 1 | |
3,277 | 10 | |
0.9% | - | |
9.2 | 3.4 | |
11 days ago | 11 months ago | |
PHP | PHP | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
CSV
-
CSV importer with field mapping
I'd recommend https://packagist.org/packages/league/csv. You can find docs/examples here https://csv.thephpleague.com/.
-
How to query a CSV input in PHP as if it was a database table?
Take a look at https://csv.thephpleague.com/. This will make it easy to read in rows using a for loop and insert them into a database.
-
Need help in processing a CSV file with around a million lines.
Either use something like league/csv or use fgetcsv directly.
-
How to read a csv file in PHP?
I suggest https://csv.thephpleague.com/ as a replacement for reading CSV files.
- Cara Upload Banyak Data Sekaligus Dengan Laravel
- Importing .csv data to website.
-
Packing for importing/exporting csv files
https://github.com/thephpleague/csv is probably the most widely used.
csv-collection
-
Need help in processing a CSV file with around a million lines.
I wrote a package for this a while ago for some projects in our company :) https://github.com/DutchCodingCompany/csv-collection. It has helped us quiet a few times! It uses the 'fgetcsv' and a LazyCollection internally.
What are some alternatives?
Flysystem - Abstraction for local and remote filesystems
fast-excel - 🦉 Fast Excel import/export for Laravel
Gaufrette - PHP library that provides a filesystem abstraction layer − will be a feast for your files!
Apache MIME Types - Apache MIME Types
Lurker - Resource Tracking
Hoa Mime - The Hoa\Mime library.
Ferret - Mime detection library
PHP FFmpeg - An object oriented PHP driver for FFMpeg binary
FileTypeDetector - Detects file type by filename or content and generates correct mimetype.
filesystem - Filesystem Package provide a fluent, object-oriented interface for working with filesystem.
Canal - Analyze content to determine the appropriate Internet media type
UnifiedArchive - UnifiedArchive - an archive manager with unified interface for different formats (bundled with cli utility). Supports all formats with basic operations (reading, extracting and creation) and popular formats specific features (compression level, password-protection, comment)