Download the PHP package palmtree/csv without Composer

On this page you can find all versions of the php package palmtree/csv. 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 csv

Palmtree CSV

Build Status Code Quality Code Coverage

A CSV reader and writer for PHP.

The Reader class implements the Iterator interface, loading one line into memory at a time. This means large files can be parsed without hitting any memory limits.

Requirements

Installation

Use composer to add the package to your dependencies:

Usage

Reading

Reading from a CSV File

Normalize Data Types

A number of different normalizers can be used to convert data from strings into certain data types. Below is contrived example using some of the currently bundled normalizers:

No Headers

If your CSV contains no headers pass false as the second argument to the constructor:

Header Offset

If your CSV headers are not on the first row you may specify the (zero based) row offset:

Inline Reading

You may use the InlineReader to parse a CSV string rather than a file, if it was obtained from an API call or some other means:

Writing

Build and Download a CSV File

Writing to a CSV File

See the examples directory for more usage examples.

Advanced Usage

CSV Control

You can access the document object to change the CSV delimiter, enclosure and escape character:

Line Endings

CSVs default to \r\n line endings. Access the document object if you need to change this:

Fine-grained Control

The document object extends PHP's SplFileObject and inherits its methods:

Configuration

If you're trying to read a CSV file in or generated by an old Mac computer you may need to include the following snippet before creating a new Reader instance:

This is because Macs used to use \r as a line separator. See here for more details.

License

Released under the MIT license


All versions of csv with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
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 palmtree/csv contains the following files

Loading the files please wait ....