Download the PHP package albinvar/php-csv-generator without Composer
On this page you can find all versions of the php package albinvar/php-csv-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download albinvar/php-csv-generator
More information about albinvar/php-csv-generator
Files in albinvar/php-csv-generator
Package php-csv-generator
Short Description The Termux Webzone CLI App.
License MIT
Homepage https://github.com/albinvar/php-csv-generator
Informations about the package php-csv-generator
Php-Csv Generator
Table of Contents
- Introduction
- Installation
- Features
- Contributing
- License
Introduction
A simple php library used to generate php array to csv, json and csv to php array and json.
Installation
Attach the library to your php code.
Manual installation
- Download the script from here.
- Add the script to your php code.
Updation
Features
- Convert CSV to php array
- Convert array to CSV format
- Convert array & CSV to json
- Import JSON and Convert to array.
- Export JSON format and save or stream json file
- Export CSV file & save to preferred location
- Export CSV file & Stream to browser
Array to CSV
You can convert an array into a csv file using the following example.
The first argument excepts the filenams and 2nd argument excepts the download type which expects a boolean format.
CSV to Array
You can convert a csv file to an array using the following example.
JSON to Array
You can convert a JSON file to an array using the following example.
Export to JSON format
You can export to JSON from both CSV or Array The first argument expects the filename and 2nd argument excpects the download type which should be in a boolean format.
Contributing
Pull requests are always welcome...
License
MIT. See LICENSE for more details.