Framework Structure - Vendors

Vendors are the third-party libraries that integrated to further extend ApPHP Framework's functionalities. This is a framework-level vendor sub-directory and it contains all third-party modules or libraries which your application may need. The libraries and modules that placed in the vendor sub-directory are not modified from their original, distributed state. As a developer you may use framework-level vendors for your purposes, although it's generally intended for internal use of the framework helpers.

Of course, you may create an application-level vendor sub-directory, that will be used for your application purposes only. In this case you may create a a sub-folder called vendors and place it in protected directory of your application. Find more information about application vendors here.

Currently there are following framework-level vendors:
Below you may see an example that illustrates how CMailer helper uses the phpmailer vendor code from the ApPHP framework:
public static function send($to, $subject, $message, $params = '')
{
    if(!strcasecmp(self::$_mailer, 'smtpMailer')){
        return self::smtpMailer($to, $subject, $message, $params);
    }else if(!strcasecmp(self::$_mailer, 'phpMailer')){
        return self::phpMailer($to, $subject, $message, $params);
    }else{
        return self::phpMail($to, $subject, $message, $params);
    }		
}

Click to find more information about vendors for applications.