Download the PHP package adnzaki/excel-creator without Composer

On this page you can find all versions of the php package adnzaki/excel-creator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package excel-creator

ExcelCreator

A simple way to work with PHPSpreadsheet

Introduction

ExcelCreator is an additional tool that enables you to use PHPSpreadsheet more easily. ExcelCreator simplifies method calls like $spreadsheet->getActiveSheet()->getColumnDimension('A')->setWidth(12) into $excel->setColumnWidth('A', 12). You may think it does not really help you, but imagine that you have to write code like you usually use in PHPSpreadsheet many times. If you are a lazy programmer, ExcelCreator is a perfect tool to access commonly-used features in PHPSpreadsheet in a convenient way.

Installation

The only thing you need to install ExcelCreator is via Composer with the following options.

With existing composer.json file

If you have existing composer.json file, add a requirement pointed to "adnzaki/excel-creator": "^1.0"

And then run composer update to install it.

No composer.json file

Run composer require adnzaki/excel-creator to install it and automatically creates composer.json file.

Install the latest source code

If you prefer get the latest source code of ExcelCreator, simply change the version from ^1.0 to dev-main, and then run composer update to switch the source code.

Usage

This section will guide you how to transform PHPSpreadsheet original use into ExcelCreator

Note that you have to set Content-Type header before use this method. And also the second parameter should follow the PHPSpreadsheet file type.

Styles that have been supported in ExcelCreator are Alignment, Border, Color, Fill and Font

Note: Wrapped text can be overridden if you set style array after wrapText() without defining wrapText in alignment.

Or if you would like to set some columns with the same size:

And if you would like to set default column's width

Or if you would like to set some rows with the same height:

But now setMultipleRowsHeight() supports more multiple rows:

And if you would like to set default row's height


All versions of excel-creator with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0
phpoffice/phpspreadsheet Version ^1.28
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package adnzaki/excel-creator contains the following files

Loading the files please wait ....