vendor folder #2283
Replies: 5 comments 4 replies
-
That's because there is no vendor folder when you clone the project, and nor should there be one. The vendor folder is created by composer when you add PHPMailer to your own project (if you're using PHPMailer) or if you clone it and then run Please refer to the installation instructions in the readme, and composer's documentation. |
Beta Was this translation helpful? Give feedback.
-
How do I go about that? Am a junior developer !
…On Tue, Mar 16, 2021 at 1:01 PM Marcus Bointon ***@***.***> wrote:
That's because there is no vendor folder when you clone the project, and
nor should there be one.
The vendor folder is created by composer when you add PHPMailer to your
own project (if you're *using* PHPMailer) or if you clone it and then run composer
install (if you're *working on* PHPMailer itself).
Please refer to the installation instructions in the readme, and
composer's documentation.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2283 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOQHE7XOIXBELZYHULJL7PDTD4T6VANCNFSM4ZIG2KGQ>
.
|
Beta Was this translation helpful? Give feedback.
-
I have installed composer in my pc, what else should I do? its not loading
the vendor folder in the project !
…On Tue, Mar 16, 2021 at 1:34 PM Marcus Bointon ***@***.***> wrote:
First rule of being a junior developer: read the docs. The installation
instructions for PHPMailer are here
<https://github.com/PHPMailer/PHPMailer#installation--loading>, and the
composer documentation is here <https://getcomposer.org/doc/00-intro.md>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2283 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOQHE7WNW4S5SGCUN225ZCLTD4XZZANCNFSM4ZIG2KGQ>
.
|
Beta Was this translation helpful? Give feedback.
-
This is my composer.json code where should I place the *composer require
Phpmailer/Phpmailer*
{
"name": "phpmailer/phpmailer",
"type": "library",
"description": "PHPMailer is a full-featured email creation and
transfer class for PHP",
"authors": [
{
"name": "Fredrick",
"email": ***@***.***"
},
{
"name": "Fred",
"email": ***@***.***"
},
{
"name": "Andy Prevost",
"email": ***@***.***"
},
{
"name": "Code_with_fredrick"
}
],
"funding": [
{
"url": "https://github.com/fredy-ricky",
"type": "github"
}
],
"require": {
"php": ">=5.5.0",
"ext-ctype": "*",
"ext-filter": "*",
"ext-hash": "*"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
"doctrine/annotations": "^1.2",
"phpcompatibility/php-compatibility": "^9.3.5",
"roave/security-advisories": "dev-latest",
"squizlabs/php_codesniffer": "^3.5.6",
"yoast/phpunit-polyfills": "^0.2.0"
},
"suggest": {
"ext-mbstring": "Needed to send email in multibyte encoding
charset",
"hayageek/oauth2-yahoo": "Needed for Yahoo XOAUTH2 authentication",
"league/oauth2-google": "Needed for Google XOAUTH2 authentication",
"psr/log": "For optional PSR-3 debug logging",
"stevenmaguire/oauth2-microsoft": "Needed for Microsoft XOAUTH2
authentication",
"symfony/polyfill-mbstring": "To support UTF-8 if the Mbstring PHP
extension is not enabled (^1.2)"
},
"autoload": {
"psr-4": {
"PHPMailer\\PHPMailer\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"PHPMailer\\Test\\": "test/"
}
},
"license": "LGPL-2.1-only"
}
…On Tue, Mar 16, 2021 at 3:00 PM Marcus Bointon ***@***.***> wrote:
What happened when you ran composer require phpmailer/phpmailer in your
project folder, as the readme tells you to?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2283 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOQHE7QRRIN2WUJMYG3TPF3TD5B65ANCNFSM4ZIG2KGQ>
.
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the tip!
…On Tue, Mar 16, 2021 at 4:30 PM Marcus Bointon ***@***.***> wrote:
Nope, you're doing it wrong. This is not the composer.json file for your
own project, it's PHPMailer's own, which you do not need to touch. The composer
install... line is a command you run in a terminal, you don't put it in a
file. If you were starting a new project, you'd do this:
mkdir my_ project
cd my_project
composer require phpmailer/phpmailer
That would create a vendor folder, install PHPMailer in it, and create an
autoload.php file to load it with. The whole point of composer is that
you do not have to touch your libraries, and you should not anyway!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2283 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOQHE7QUF7KV7XWCPDFM7B3TD5MOFANCNFSM4ZIG2KGQ>
.
|
Beta Was this translation helpful? Give feedback.
-
I haven't seen the vendor folder when trying to clone the project!
Beta Was this translation helpful? Give feedback.
All reactions