PHPackages                             cable8mm/qr-images - 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. [CLI &amp; Console](/categories/cli)
4. /
5. cable8mm/qr-images

ActiveLibrary[CLI &amp; Console](/categories/cli)

cable8mm/qr-images
==================

QR images generated by command

v1.2.9(1mo ago)021MITPHPPHP ^8.0CI passing

Since Nov 26Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/cable8mm/qr-images)[ Packagist](https://packagist.org/packages/cable8mm/qr-images)[ RSS](/packages/cable8mm-qr-images/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (10)Dependencies (11)Versions (19)Used By (0)

About QR Images
---------------

[](#about-qr-images)

[![code-style](https://github.com/cable8mm/qr-images/actions/workflows/code-style.yml/badge.svg)](https://github.com/cable8mm/qr-images/actions/workflows/code-style.yml)[![run-tests](https://github.com/cable8mm/qr-images/actions/workflows/run-tests.yml/badge.svg)](https://github.com/cable8mm/qr-images/actions/workflows/run-tests.yml)[![Packagist Version](https://camo.githubusercontent.com/69c061143a63573853dcf35f8f463e4b0c9558d113607e5e3dda851a934dc07a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6361626c65386d6d2f71722d696d61676573)](https://camo.githubusercontent.com/69c061143a63573853dcf35f8f463e4b0c9558d113607e5e3dda851a934dc07a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6361626c65386d6d2f71722d696d61676573)[![Packagist Downloads](https://camo.githubusercontent.com/91d3a2fe09d1d5c72b6e7e98f63ca2bb0116764e185ad9099f1cb73482623891/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6361626c65386d6d2f71722d696d61676573)](https://camo.githubusercontent.com/91d3a2fe09d1d5c72b6e7e98f63ca2bb0116764e185ad9099f1cb73482623891/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6361626c65386d6d2f71722d696d61676573)[![Packagist Dependency Version](https://camo.githubusercontent.com/c13fa756acb9ee5a988c4aa4371bbd93fb9ce2c52992cc35eba4629e1f2d7a25/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f6361626c65386d6d2f71722d696d616765732f706870)](https://camo.githubusercontent.com/c13fa756acb9ee5a988c4aa4371bbd93fb9ce2c52992cc35eba4629e1f2d7a25/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f6361626c65386d6d2f71722d696d616765732f706870)[![Packagist Dependency Version](https://camo.githubusercontent.com/b2613c157137a5167351607c96d45d805a4801c503fab2c54ccba49c4a9a3790/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f6361626c65386d6d2f71722d696d616765732f73796d666f6e79253246636f6e736f6c65)](https://camo.githubusercontent.com/b2613c157137a5167351607c96d45d805a4801c503fab2c54ccba49c4a9a3790/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f6361626c65386d6d2f71722d696d616765732f73796d666f6e79253246636f6e736f6c65)[![Packagist Stars](https://camo.githubusercontent.com/2d0dea80aa23753ac27ca078b629ba08900deaadeafa9cf998aa45d0b9a26684/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f6361626c65386d6d2f71722d696d61676573)](https://camo.githubusercontent.com/2d0dea80aa23753ac27ca078b629ba08900deaadeafa9cf998aa45d0b9a26684/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f6361626c65386d6d2f71722d696d61676573)[![Packagist License](https://camo.githubusercontent.com/91efa84ad2c69fb90cf68ba05386d49f8ee0727c1b0093f13a0f7967ce5fabfa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6361626c65386d6d2f71722d696d61676573)](https://camo.githubusercontent.com/91efa84ad2c69fb90cf68ba05386d49f8ee0727c1b0093f13a0f7967ce5fabfa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6361626c65386d6d2f71722d696d61676573)

QR Images is a tool for converting WiFi connection information to QR codes.

We have provided the API Documentation on the web. For more information, please visit  ❤️

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

[](#installation)

```
composer create-project cable8mm/qr-images INSTALLED_FOLDER
```

You have the flexibility to change INSTALLED\_FOLDER to suit your preferences.

Usage
-----

[](#usage)

### Basic Usage

[](#basic-usage)

```
# Rename example CSV file
mv resources/SSID_QR_TEST.csv resources/SSID_QR.csv

# Run the command
bin/application save-image

# Select export type (0-3)
# 0: eps, 1: fpdf, 2: png, 3: svg

# Find generated QR codes
cd resources/export
ls
```

### Multiple CSV Files

[](#multiple-csv-files)

QR Images now supports processing multiple CSV files:

```
# Process a specific CSV file
bin/application save-image custom_wifi.csv

# Process multiple CSV files
bin/application save-image --file=office.csv --file=home.csv

# Process all CSV files in resources directory
bin/application save-image --all

# Process with wildcards
bin/application save-image "data/*.csv"
```

### CSV File Format

[](#csv-file-format)

Your CSV file should have the following format (3 columns minimum):

```
1,WIFI:S:SK_WiFiGIGADDF0_5G;T:WPA;P:JSV38@6701;;,WIFI:S:SK_WiFiGIGADDF0_2.4G;T:WPA;P:JSV38@6701;;
2,WIFI:S:SK_WiFiGIGADDF4_5G;T:WPA;P:KSV21@6702;;,WIFI:S:SK_WiFiGIGADDF4_2.4G;T:WPA;P:KSV21@6702;;
```

- Column 1: Network number (integer)
- Column 2: 5GHz WiFi QR code string
- Column 3: 2.4GHz WiFi QR code string

### Notice

[](#notice)

Ensure that the source file is not saved as UTF-8 with BOM. If your source file is currently in UTF-8 with BOM, please save it **again** as UTF-8 (without BOM).

Configuration
-------------

[](#configuration)

QR Images now supports flexible configuration through multiple methods.

### Configuration File

[](#configuration-file)

Create a `config/qr-images.php` file in your project root:

```
