elminson / emailtoftp
Email to FPT
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 1
Open Issues: 0
Type:project
Requires
- nicolab/php-ftp-client: ^1.4
- phpmailer/phpmailer: ^6.0
- ssilence/php-imap-client: @dev
README
Upload files to ftp using email
Server need lib imap_open enable ##Installation
Untill Big o’ 2.0 is ready (ssilence/php-imap-client), use the following command to install PHP-imap-library:
composer require ssilence/php-imap-client dev-master
After install ssilence/php-imap-client dev-master
composer create-project elminson/emailtoftp
or
composer require elminson/emailtoftp
Configuration
$config = [ 'validCredential' => 'valid@gmail.net', 'smtp' => [ 'server' => 'mail.gmail.net', 'user' => 'emailtoftp@gmail.net', 'password' => 'securepassword' ], 'ftp' => [ 'upload_folder' => 'aqui/', 'host' => 'ftpdomain.net', 'userftp' => 'ftpuser', 'passwordftp' => 'ftppasswrod' ] ];
##Usage
$email = new Emailreader($config); echo "Total Files Uploaded : ".$email->total_files;
#Dependencies
"ssilence/php-imap-client": "dev-master", "nicolab/php-ftp-client": "^1.4"