Include only Zend Framework 2.2.4 Mail lib

408 views Asked by At

On lot of old posts the answer was just to go

include('full path to zend lib/Some lib.php');

but in zend 2.2.4 in one module there is lot of dirs and subdirs I don't think it would be good to include all of that.

Also saw lot of answers:

require_once 'Zend/Loader/Autoloader.php';
Zend_Loader_Autoloader::getInstance();

but because of above mentioned problem I can't use it either.

So question is how to upload just email module (like every regular class) and use it? Is it even possible or I have to install full framework (I had lot of troubles installing it and still didn't manage to install...) ?

1

There are 1 answers

6
Sven On BEST ANSWER

I suppose you should be able to install any Zend framework component via Composer.

"require": {
    "zendframework/zend-mail": "2.2.4"
}