Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

where is vendor folder #714

Open
NathanielB2 opened this issue Aug 30, 2023 · 7 comments
Open

where is vendor folder #714

NathanielB2 opened this issue Aug 30, 2023 · 7 comments
Labels
question This issue is about one or more questions regarding this library.

Comments

@NathanielB2
Copy link

Hello,

I'm sure this is painfully obvious and i should have seen info of it's removal but the examples still have require_once DIR.'/../vendor/autoload.php'; I have an older version I'm currently using and it does have that folder but I'm wanting the newer version so i can run it on php 8.1.

Thanks
Nathaniel

@Sebbo94BY Sebbo94BY added the question This issue is about one or more questions regarding this library. label Aug 30, 2023
@Sebbo94BY
Copy link
Collaborator

Hi @NathanielB2 ,
Usually, you already have a PHP project, where you include this project using composer.

composer then automatically creates the vendor/ directory and installs there all your dependencies.

This autoload.php is automatically managed by composer.

@NathanielB2
Copy link
Author

I just downloaded the zip. I have a new computer as my laptop died that I had composer on. I'll see about setting up composer now on my PC.

Thanks

@Sebbo94BY
Copy link
Collaborator

The alternative would be to include the necessary PHP files in the src/ directory, but the common way is to use composer.

@NathanielB2
Copy link
Author

I have not used composer all that much and I find myself lost on the setup. I have composer and xampp installed. In visual studio code I installed composer by DEVSENSE but when I installed the package php-imap using composer require php-imap/php-imap not all files installed. Then trying composer require php-imap/php-imap:dev-master I get the errors

Failed to download php-imap/php-imap from dist: The zip extension and unzip/7z commands are both missing, skipping.

The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source

In GitDownloader.php line 82:

git was not found in your PATH, skipping source download

@Sebbo94BY
Copy link
Collaborator

composer requires the PHP zip extension and the a respective package on the operating system (e.g. unzip/7z): https://getcomposer.org/doc/00-intro.md#system-requirements

This is the reason, why composer is not working for you.

@NathanielB2
Copy link
Author

Hi, I did uncheck the extension for imap in the php.ini file but I still get the error well as the git path. I'll see about making it work from the zip file I guess.

@NathanielB2
Copy link
Author

NathanielB2 commented Aug 31, 2023

I finally got it to work. Still not a composer fan.

I did get the notice:
Package sebastian/phpcpd is abandoned, you should avoid using it. No replacement was suggested.
Package webmozart/path-util is abandoned, you should avoid using it. Use symfony/filesystem instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This issue is about one or more questions regarding this library.
Projects
None yet
Development

No branches or pull requests

2 participants