New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

sukohi/fluent-csv

A Laravel package to generate or save csv file with encoding like SJIS-win.
29,358 8

Larablocks Analysis

sukohi/fluent-csv works with Laravel 5 to 8 (latest release 3.0.5, Sep 25, 2020), all past end of life (the last on Jan 24, 2023): no more fixes, even for security.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 5 to 8, past end of life since Jan 24, 2023
  • No release in the last 12 months (last: Sep 25, 2020)
  • 49 downloads a month (needs 10,000)
  • 8 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Sep 25, 2020.
  • No releases in the last 12 months.
  • First released: Jun 8, 2017.
  • Monthly downloads: 49, down 67% from six months ago.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 26, 2026.

Install
composer require sukohi/fluent-csv
Latest Version:3.0.5
Laravel:5 – 8
License:MIT
Last Updated:Sep 25, 2020
Links: GitHub  ·  Packagist
Maintainer: Sukohi

FluentCsv

A Laravel package that allows you to generate or save csv file being encoded.
This package is maintained under Laravel 5.7.

Installation

Execute composer command.

composer require sukohi/fluent-csv:3.*

Usage

Download

$csv_data = [   // UTF-8 
    ['データ 1-1', 'データ 1-2', 'データ 1-3'],
    ['データ 2-1', 'データ 2-2', 'データ 2-3'],
    ['データ 3-1', 'データ 3-2', 'データ 3-3'],
];
$to_encoding = 'SJIS-win';
$fluent = \FluentCsv::setData($csv_data, $to_encoding);
return $fluent->download('テスト.csv');    // File name can be multi-byte character.

Save

$csv_data = [   // UTF-8 
    ['データ 1-1', 'データ 1-2', 'データ 1-3'],
    ['データ 2-1', 'データ 2-2', 'データ 2-3'],
    ['データ 3-1', 'データ 3-2', 'データ 3-3'],
];
$fluent = \FluentCsv::setData($csv_data, 'SJIS-win');

if($fluent->save(storage_path('app/public/test.csv'))) {

    echo 'Complete!';

}

Add data in loop

$items = \App\Item::get();
$fluent = \FluentCsv::setEncoding('SJIS-win');

foreach($items as $item) {

    $fluent->addData($item->only(['id', 'name']));

}

return $fluent->download('test.csv');

Clear data

$fluent->clearData();

Retrieve

// Basic way
$path = '/PATH/TO/YOUR/CSV/FOLDER/test.csv';
$data = \FluentCsv::parse($path);

// with encoding
$path = '/PATH/TO/YOUR/CSV/FOLDER/test.csv';
$from_encoding = 'sjis-win';
$data = \FluentCsv::parse($path, $from_encoding);

License

This package is licensed under the MIT License.

Copyright 2017 Sukohi Kuhoh

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

670,032,257 9,703
laravel/framework

The Laravel Framework.

640,572,096 35,338
laravel/tinker

Powerful REPL for the Laravel framework.

546,909,908 7,440
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

465,816,364 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

431,187,642 4,660

Version History

Version Released Laravel License
3.0.5 ^5.7|^6.0|^7.0|^8.0 MIT
3.0.4 ^5.7|^6.0|^7.0 MIT
3.0.3 ^5.7|^6.0 MIT
3.0.2 ^5.7|^6.0 MIT
3.0.1 ^5.7|^6.0 MIT