Download the PHP package csvtoolkit/fastcsv without Composer

On this page you can find all versions of the php package csvtoolkit/fastcsv. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package fastcsv

FastCSV PHP Extension

PHP Extension RFC 4180

A high-performance PHP extension for reading and writing CSV files with full RFC 4180 compliance and advanced features.

Tip: For a unified API that automatically leverages this extension when available, check out PHP-CSVHelper. It provides a consistent interface that uses FastCSV for maximum performance while gracefully falling back to SplFileObject when needed.

Features

Classes

FastCSVReader

High-performance CSV reader with advanced navigation capabilities.

FastCSVWriter

High-performance CSV writer with proper quoting and escaping.

FastCSVConfig

Configuration class for customizing CSV parsing and writing behavior.

Installation

Recommended: Using PIE (PHP Installer for Extensions)

The easiest way to install FastCSV is using PIE:

For detailed PIE installation instructions, see PIE_INSTALLATION.md.

Manual Installation

Prerequisites

From Source

Enable Extension

Add to your php.ini:

Or load dynamically:

Development

Building

The extension uses an external C library located in the lib/ directory (git submodule). The build process automatically includes:

Testing

Run the test suite:

Current Test Status

Technical Details

Architecture

The extension is built on top of a high-performance C library with the following components:

Memory Management

The extension uses Arena-based memory allocation for optimal performance:

RFC 4180 Compliance

Full compliance with CSV standard including:

Performance

The extension is optimized for high-performance CSV processing with significant improvements over PHP's native SplFileObject:

Benchmark Results (PHP 8.4.8, 1GB Memory Limit)

Read Operations Performance

Data Size Implementation Median Time (ms) Throughput (records/sec) Speed Improvement
Small (1K rows) FastCSV 3.67 272,410 4.1x faster
SplFileObject 15.03 66,520
Medium (100K rows) FastCSV 176.04 568,049 3.6x faster
SplFileObject 639.51 156,370
Large (1M rows) FastCSV 1,987.23 503,212 4.8x faster
SplFileObject 9,468.64 105,612

Combined Read/Write Operations

Data Size Implementation Median Time (ms) Throughput (records/sec) Speed Improvement
Small (1K rows) FastCSV 22.76 87,870 1.6x faster
SplFileObject 35.5 56,341
Medium (100K rows) FastCSV 590.78 338,535 2.5x faster
SplFileObject 1,469.31 136,118
Large (1M rows) FastCSV 7,088.8 282,135 2.9x faster
SplFileObject 20,513.19 97,498

Key Performance Advantages

Technical Performance Features

Contributing

See CONTRIBUTING.md for development guidelines.

License

This project is licensed under the terms specified in the LICENSE file.

Changelog

Recent Updates

For the latest updates and bug reports, please check the project's issue tracker.


All versions of fastcsv with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package csvtoolkit/fastcsv contains the following files

Loading the files please wait ....