Download the PHP package samad/array-conversion without Composer
On this page you can find all versions of the php package samad/array-conversion. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download samad/array-conversion
More information about samad/array-conversion
Files in samad/array-conversion
Package array-conversion
Short Description PHP Library for converting associative arrays as html table, XML, JSON, CSV. Also add, remove or edit column can be possible.
License MIT
Homepage https://github.com/samadfcibd/ArrayConversion
Informations about the package array-conversion
ArrayConversion
PHP Library for converting associative arrays as html table, XML, JSON, CSV. Also add, remove or edit column can be possible.
Inspired by yajra/laravel-datatables
Installation
Install the library by composer with following command:
Documentation
An associative/ multidimensional array or object can be manipulate with this script. You can convert the array/ object to HTML table, CSV file, JSON or XML data.
Suppose, you have an array as like following:
now, you can convert this $data
as HTML table
also, this $data
can be converted into following formats:
- CSV file
toCSV()
- JSON format
toJson()
- XML format
toXml()
Add, Edit or Remove column
You can add an extra column by using closure.
As like Action
to each single array of $data
or you can remove single/ multiple column from each single array
also, you can edit column from each single array
After installation this library, you will see a file index.php
with details example.
License
The MIT License (MIT). Please see License File for more information.