vendor

Vendor is a fundamental tool for modern PHP development

PHP packages installed via Vendor are automatically available to all domains/virtual hosts on your GoPanel server

Syntax

vendor <vendor/package>

Examples

To install PHPMailer and make it available across all domains/virtual hosts on your GoPanel server
$ /go/vendor phpmailer/phpmailer

Verification Test:
Create a PHP file in any domain:

<?php
require "vendor/autoload.php";

$mail = new PHPMailer\PHPMailer\PHPMailer();
if (class_exists('PHPMailer\PHPMailer\PHPMailer')) {
    echo "PHPMailer is working!";
} else {
    echo "PHPMailer not found";
}
?>

Related GoPanel commands

-


At Your Service

Our team is on hand 24/7 to not only solve technical issues, but to offer the guidance and technical support you need to succeed online. Give us a ring.

+2 01006931666 Chat
© 2020 - 2025 GoPanel Inc., all rights reserved.