简体   繁体   中英

Can I add PHP Zip to a Laravel project using composer?

I need to use the PHP zip extension in a Laravel project. The PHP manual talks about building PHP with the zip extension, http://php.net/manual/en/zip.installation.php .

My environments all run on Ubuntu, though on differing versions. I see plenty of articles talking about using apt-get to install the extension.

I'm pretty sure that I can use composer to manage this extension, but I can't find any articles on it. Can I do this? How do I add it? I would prefer to use composer if possible.

Ok, just found this on the composer site:

Composer has platform packages, which are virtual packages for things that are installed on the system but are not actually installable by Composer. This includes PHP itself, PHP extensions and some system libraries.

It can not do the install, but presumably adding the ext reference to composer.json will give satisfy my IDE.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM