Download the PHP package avadim/fast-excel-templator without Composer
On this page you can find all versions of the php package avadim/fast-excel-templator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download avadim/fast-excel-templator
More information about avadim/fast-excel-templator
Files in avadim/fast-excel-templator
Package fast-excel-templator
Short Description Lightweight and very fast Excel Spreadsheet generator from XLSX-templates in PHP
License MIT
Homepage https://github.com/aVadim483/fast-excel-templator
Informations about the package fast-excel-templator
FastExcelTemplator
FastExcelTemplator is a part of the FastExcelPhp Project which consists of
- FastExcelWriter - to create Excel spreadsheets
- FastExcelReader - to reader Excel spreadsheets
- FastExcelTemplator - to generate Excel spreadsheets from XLSX templates
- FastExcelLaravel - special Laravel edition
Introduction
FastExcelTemplator can generate Excel-compatible spreadsheets in XLSX format (Office 2007+) from XLSX templates, very quickly and with minimal memory usage. This library is designed to be lightweight, super-fast and requires minimal memory usage.
Features
- Supports XLSX format only (Office 2007+) with multiple worksheets
- Transfers from templates to target spreadsheets styles, images, notes
- Replaces the entire cell values and substrings
- You can use any row from a template as row template to insert and replace a row with new values
- The library can read styling options of cells - formatting patterns, colors, borders, fonts, etc.
Installation
Use composer
to install FastExcelTemplator into your project:
Usage
Example of template
From this template you can get a file like this
Step 1 - open template and set replacements
Step 2 - transfer the top of the sheet and the table headers from the template to the output file
There are 6 rows read from template, the output file also contains 6 lines
Step 3 - insert inner table rows
We filled in and inserted rows 7, 8 and 9
Step 4 - Now transfer the remaining rows and save file
You can find code examples in /demo folder
List of functions
Class Excel
Excel::template($template, $output): Excel -- Open template file
- sheet(?string $name = null): ?Sheet -- Select the specified sheet
- fill(array $replacement) -- Set replacements of the entire cell value for all sheets
- replace(array $replacement) -- Set replacements of substrings in a cells for all sheets
- save(?string $fileName = null, ?bool $overWrite = true): bool -- Save generated XLSX-file
- download(string $name = null): void -- Download generated file to client (send to browser)
Class Sheet
- fill(array $replacement) -- Set replacements of the entire cell value for the sheet
- replace(array $replacement) -- Set replacements of substrings in a cell for the sheet
- getRowTemplate(int $rowNumber, ?bool $savePointerPosition = false) -- Gets template from the row
- getRowTemplates(int $rowNumberMin, int $rowNumberMax, ?bool $savePointerPosition = false) -- Gets row template
- transferRows(?int $countRows = null, $callback = null) -- Transfers rows from template to output
- transferRowsUntil(?int $maxRowNum = null, $callback = null) -- Transfers rows from template to output
- insertRow($rowTemplates, ?array $cellData = [])
- skipRows(?int $countRows = null)
- skipRowsUntil(?int $maxRowNum = null)
Class RowTemplateCollection
- cloneCell(string $colSource, $colTarget, ?bool $checkMerge = false): RowTemplateCollection
Do you like FastExcelTemplator?
if you find this package useful you can support and donate to me for a cup of coffee:
- USDT (TRC20) TSsUFvJehQBJCKeYgNNR1cpswY6JZnbZK7
- USDT (ERC20) 0x5244519D65035aF868a010C2f68a086F473FC82b
- ETH 0x5244519D65035aF868a010C2f68a086F473FC82b
Or just give me a star on GitHub :)
All versions of fast-excel-templator with dependencies
ext-zip Version *
ext-json Version *
ext-mbstring Version *
ext-xmlreader Version *
ext-dom Version *
avadim/fast-excel-helper Version ^1.2
avadim/fast-excel-writer Version ^6.1
avadim/fast-excel-reader Version ^2.20