From b6349baa4b7c1b9d7233ee2f8a7aa7a985857113 Mon Sep 17 00:00:00 2001 From: eileen Date: Thu, 13 Jun 2019 21:58:28 -0400 Subject: [PATCH] Add csv reader package Adds https://csv.thephpleague.com/9.0/ because we can now (since we are php 7.x+ now). Apart from being a pretty good package it will help with writing tests for csv output It will also help us cleanup some of our csv code down the way --- composer.json | 3 ++- composer.lock | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 70 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 271f33cf59..1cfa14b776 100644 --- a/composer.json +++ b/composer.json @@ -61,7 +61,8 @@ "psr/simple-cache": "~1.0.1", "cweagans/composer-patches": "~1.0", "pear/log": "1.13.1", - "katzien/php-mime-type": "2.1.0" + "katzien/php-mime-type": "2.1.0", + "league/csv": "^9.2" }, "require-dev": { "cache/integration-tests": "dev-master" diff --git a/composer.lock b/composer.lock index 7fe362a0ac..3ca2b51fe2 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "a337d7adf0d57f28a1aff44917fe1b92", + "content-hash": "027475804731d7ef0bd3e0feb2139d3c", "packages": [ { "name": "civicrm/civicrm-cxn-rpc", @@ -451,6 +451,73 @@ ], "time": "2017-03-23T02:05:33+00:00" }, + { + "name": "league/csv", + "version": "9.2.1", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/csv.git", + "reference": "b574a7d8b28f1528e011d8652fb7d2e83410d4c9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/csv/zipball/b574a7d8b28f1528e011d8652fb7d2e83410d4c9", + "reference": "b574a7d8b28f1528e011d8652fb7d2e83410d4c9", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "php": ">=7.0.10" + }, + "require-dev": { + "ext-curl": "*", + "friendsofphp/php-cs-fixer": "^2.12", + "phpstan/phpstan": "^0.9.2", + "phpstan/phpstan-phpunit": "^0.9.4", + "phpstan/phpstan-strict-rules": "^0.9.0", + "phpunit/phpunit": "^6.0" + }, + "suggest": { + "ext-iconv": "Needed to ease transcoding CSV using iconv stream filters" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "9.x-dev" + } + }, + "autoload": { + "psr-4": { + "League\\Csv\\": "src" + }, + "files": [ + "src/functions_include.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ignace Nyamagana Butera", + "email": "nyamsprod@gmail.com", + "homepage": "https://github.com/nyamsprod/", + "role": "Developer" + } + ], + "description": "Csv data manipulation made easy in PHP", + "homepage": "http://csv.thephpleague.com", + "keywords": [ + "csv", + "export", + "filter", + "import", + "read", + "write" + ], + "time": "2019-06-07T06:24:33+00:00" + }, { "name": "marcj/topsort", "version": "1.1.0", -- 2.25.1