Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Use Zend Library without installation of Zend Framework

How to use zend library without using zend framework installation?

I am trying to use zend library(Mail and Mime) without zend framework installation, its not returning any error messages... but for my project i'm using Mail and Mime library only, How to use Zend Library without installing zend framework ..

Thanks, Vinoth S

like image 699
VinothPHP Avatar asked Jul 02 '10 10:07

VinothPHP


1 Answers

Download Zend Framework and put it into a folder accessible by your PHP. Then either do

include '/path/to/folder/containing/Zend/lib/Zend/Mail.php';
include '/path/to/folder/containing/Zend/lib/Zend/Mime.php';

$mailer = new Zend_Mail;

Or - better and more conventient - setup your autoloader and/or include path so PHP can find the classes directly, without you having to include them.

Also see

  • the requirements appendix for a detailed list of requirements for Zend Framework.
like image 66
Gordon Avatar answered Nov 12 '22 23:11

Gordon