PHPackages                             shimabox/smbarrayto - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. shimabox/smbarrayto

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

shimabox/smbarrayto
===================

Array to csv, tsv, ltsv, xml, json, ...

v1.0.4(5y ago)11.5k1MITPHPPHP ^5.4|^7.0

Since Dec 21Pushed 5y ago1 watchersCompare

[ Source](https://github.com/shimabox/SMBArrayto)[ Packagist](https://packagist.org/packages/shimabox/smbarrayto)[ Docs](https://github.com/shimabox/SMBArrayto)[ RSS](/packages/shimabox-smbarrayto/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (4)Versions (6)Used By (1)

SMBArrayto
==========

[](#smbarrayto)

[![License](https://camo.githubusercontent.com/1e7867d45074915d1ed0dec12a9d24583668dcc68419fe4050a6902fa62781e0/68747470733a2f2f706f7365722e707567782e6f72672f7368696d61626f782f736d626172726179746f2f6c6963656e7365)](https://packagist.org/packages/shimabox/smbarrayto)[![Build Status](https://camo.githubusercontent.com/04b03bfd8b144c90ad5cef3a541766881095146e3e7a4fe05869f966a83817e7/68747470733a2f2f7472617669732d63692e6f72672f7368696d61626f782f534d424172726179746f2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/shimabox/SMBArrayto)[![Maintainability](https://camo.githubusercontent.com/def88ed541929e99be7dd31e7a85cb281f703043059ada829da3ecc5f467b65c/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f66393330336465663135666266633734643366352f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/shimabox/SMBArrayto/maintainability)[![Coverage Status](https://camo.githubusercontent.com/46bfe1b39c6b1bfd83222c6feaa9bff1385865b05bf7c2bc712b1e88ee0bfded/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f7368696d61626f782f534d424172726179746f2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/shimabox/SMBArrayto?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/86276f880b6f81043972601f23216c404840c80b4341d1b759d5a1c71fe21408/68747470733a2f2f706f7365722e707567782e6f72672f7368696d61626f782f736d626172726179746f2f762f737461626c65)](https://packagist.org/packages/shimabox/smbarrayto)[![Latest Unstable Version](https://camo.githubusercontent.com/bc9bdde36c0af3039461aedd39639173ab1aa8bea09413168521743db7dbdb21/68747470733a2f2f706f7365722e707567782e6f72672f7368696d61626f782f736d626172726179746f2f762f756e737461626c65)](https://packagist.org/packages/shimabox/smbarrayto)

Array to csv, tsv, ltsv, xml, json, ...

Overview
--------

[](#overview)

- Array to csv, tsv, ltsv, xml, json, ...
- And provides a download function, output function, write function

Requirements
------------

[](#requirements)

- PHP 5.4+ or newer
- [Composer](https://getcomposer.org)
- [GitHub - fjyuu/monolog-ltsv-formatter: LTSV Formatter for Monolog](https://github.com/fjyuu/monolog-ltsv-formatter)
- [GitHub - spatie/array-to-xml: A simple class to convert an array to xml](https://github.com/spatie/array-to-xml)

Installation
------------

[](#installation)

```
composer require shimabox/smbarrayto

```

Basic Usage
-----------

[](#basic-usage)

### In the case of csv download

[](#in-the-case-of-csv-download)

- It does not create the actual file
    - It makes use of the temporary file
- Use the header function

```
