Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/naoyamiyagawa/cakephp4-csv-download-demo

Demo implementation for CSV/TSV download in CakePHP4
https://github.com/naoyamiyagawa/cakephp4-csv-download-demo

cakephp4 csv php tsv

Last synced: about 2 months ago
JSON representation

Demo implementation for CSV/TSV download in CakePHP4

Awesome Lists containing this project

README

        

# CakePHP4 CSV/TSV Download Demo

This is a sample app to implement CSV/TSV download feature with CakePHP4. (it can be implemented in the same way in CakePHP3 as well)

- [CakePHP4](https://cakephp.org/)
- [sathi/csv-combine](https://github.com/satthi/csv-combine)

More detailed is here:
[CakePHPでCSV/TSVダウンロード機能を実装する🥮 - Fusic Tech Blog](https://tech.fusic.co.jp/posts/2022-11-27-cakephp-csv-tsv-download/)

[See Implemetations](https://github.com/NaoyaMiyagawa/cakephp4-csv-download-demo/compare/5cc67326f620791cbaab7eca61a25a5ffbf09044...7886cc21c8374badf11de2df74446bec77299149)

## How to Get Started

```bash
cp .env.example .env; vim .env

docker compose up -d

# Install php dependencies
docker compose exec web composer install
```

Visit http://localhost/pages/demo

![demo_page](./docs/demo_page.png)

## Sample Files
Can be found here `./sample_files`