Download the PHP package jield-webdev/jield-export without Composer
On this page you can find all versions of the php package jield-webdev/jield-export. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jield-webdev/jield-export
More information about jield-webdev/jield-export
Files in jield-webdev/jield-export
Package jield-export
Short Description This repo can be used to export database objects (using Doctrine) to External data formats (Excel/Parquet/CSV)
License MIT
Homepage https://github.com/jield-webdev/jield-export
Informations about the package jield-export
jield-export
This repo can be used to export database objects (using Doctrine) to External data formats (Excel/Parquet/CSV)
Installation
To enable this module in a Laminas application, ad the following to the modules
section of
your config/application.config.php
file:
Configuration
Each entity which has to be exported has to be registered in the configuration file. The following snippet shows how this can be done. It is also possible to include this array in the configuration files
Columns file
Each object has to be transformed in to a set of columns. This is done by creating a class which extends
the AbstractEntityColums
. An example is shown below:
When the getDependencies
method is implemented, the dependencies will be exported ass well. This is useful when you
have
a dimension table which is used in a fact table.
The component will automatically instantiate the extended class with the EntityManager
, if more dependencies are
needed register the class in the service manager
Upload to Azure.
Create an Azure storage account and create a container. The container name is used in the configuration file. Register a
service in the service manager with StorageLocationServiceInterface::class
as key, this service should
implement \Jield\Export\Service\StorageLocationServiceInterface
and required 2 methods
getDefaultStorageLocation
which returns an object implementing\Jield\Entity\StorageLocationInterface
, this object should a connection string which supports an account key or SAS token (recommended). The system also support access tokens but thengetOAuth2Service()
should return a service which is able to generate an access_tokengetBlobService
a function returns a\AzureOSS\Storage\Blob\BlobRestProxy
object, the following sample code can be used
All versions of jield-export with dependencies
laminas/laminas-mvc Version ^3.7.0
jield-webdev/azure-blob-storage Version dev-main
doctrine/orm Version ^2 || ^3
codename/parquet Version ^0.7
webmozart/assert Version ^1.11.0
phpoffice/phpspreadsheet Version ^2.2
jetbrains/phpstorm-attributes Version ^1.0