Download the PHP package heimrichhannot/contao-exporter without Composer

On this page you can find all versions of the php package heimrichhannot/contao-exporter. 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 contao-exporter

Exporter

A module for exporting any contao entity.

Export config preview

Features

Classes

Name Description
CsvExporter An exporter for writing entity instances into a CSV file
XlsExporter An exporter for writing entity instances into an excel file (XLS)
MediaExporter An exporter that combines all files referenced by the selected properties of an entity in one archive file (e.g. zip) preserving the folder structure
PdfExporter An exporter for creating a pdf out of an entity

Hooks

Name Arguments Expected return value Description
exporter_modifyHeaderFields $arrFields, $objExporter $arrFields Modify the header fields just before just before being written to file
exporter_modifyMediaFilename $objFile, $strFieldname, $varFieldValue, $objMediaExporter $objFile->path Modify a filename just before added to the archive when using MediaExporter (also folder structure could be modified here)
exporter_modifyFilename $strFilename, $objExporter $strFilename Modify the export filename
exporter_modifyFilePath $strFilePath, $objExporter $strFilePath Modify the export file path
exporter_modifyFieldValue $varValue, $strField, $arrRow, $intCol $varValue Modify the field values. Only available in PhpExcelExporter

Technical instruction

Backend export

Step 1

Define your global operation in your entity's dca as follows:

Step 2

Add your backend module in your entity's config.php as follows:

Step 3

Create a configuration for your export by using the exporter's backend module (group devtools).

Frontend

You can use frontendedit or formhybrid_list in order to easily create a module for manipulating your entities in the frontend. It already contains a function to export entities after submission!

Step 1

Create a configuration for your export by using the exporter's backend module (group devtools).

Step 2

Add the following code to your module in order to your module:

If you add , this array will be iteratd automatically in your template. Alternatively you can print every entity's property using $this in the template.


All versions of contao-exporter with dependencies

PHP Build Version
Package Version
Requires php Version ~5.4 || ~7.0
contao/core-bundle Version ^3.5.1 || ~4.1
contao-community-alliance/composer-plugin Version ~2.4 || ~3.0
phpoffice/phpexcel Version >=1.8.1
heimrichhannot/contao-haste_plus Version >=1.3.23
heimrichhannot/contao-fieldpalette Version >=1.2
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 heimrichhannot/contao-exporter contains the following files

Loading the files please wait ....