Download the PHP package 3slab/vdm-library-ftp-transport-bundle without Composer
On this page you can find all versions of the php package 3slab/vdm-library-ftp-transport-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download 3slab/vdm-library-ftp-transport-bundle
More information about 3slab/vdm-library-ftp-transport-bundle
Files in 3slab/vdm-library-ftp-transport-bundle
Package vdm-library-ftp-transport-bundle
Short Description Vdm Ftp Transport
License proprietary
Informations about the package vdm-library-ftp-transport-bundle
VdmLibraryFtpTransportBundle
Not maintained anymore : use VdmLibraryFlysystemTransportBundle instead with VdmLibraryBundle v3.x
This source can collect data from a ftp server.
Configuration reference
Configuration | Description | |
---|---|---|
dsn | the url you want to collect (needs to start by ftp or sftp) | |
retry_strategy.max_retries | needs to be 0 because ftp transport does not support this feature | |
options.mode | two mode available (move | delete), move to deplace the file in other folder when it is treated, delete to remove it. |
options.ftp_options | options to manage your ftp actions | |
options.ftp_options.dirpath | path to your directory | |
options.ftp_options.storage | If you choose option move you have to configure this path. |
|
options.monitoring.enabled | if true, hook up in the vdm library bundle monitoring system to send information about the FTP response |
Custom ftp executor
A custom ftp executor allows you to customize how you call the ftp server. It's necessary if you have differents action to make on files.
Just create a class in your project that extends Vdm\Bundle\LibraryFtpTransportBundle\Executor\AbstractFtpExecutor
. It will
automatically replace the default executor.
If you have 2 custom executor. Only a single one will be used, the second is ignored.
There are 2 important things your custom executor needs to do :
yield
a new envelope with a VDM Message instance- Add a
StopAfterHandleStamp
stamp to the yielded envelope if you want to stop after handling the last file (if not, the messenger worker loop over and will execute it once again).
Note : thanks to the yield system, you can implement a loop in your execute function and return items once at a time
Note : you can keep state in your custom executor so if it is executed again, adapt your ftp call
Monitoring
If you enable monitoring, it will track the following metrics :
- Size of the Ftp file body
- Counter the ftp error
All versions of vdm-library-ftp-transport-bundle with dependencies
league/flysystem-sftp Version ^1.0
league/flysystem Version ^1.0