phpcomposer-phppopper.js

How to install popper.js via composer?


I manage all my dependencies via composer. One of those dependencies is for twbs/bootstrap and composer was able to resolve that package. However, bootstrap depends on popper.js and so far I have had no luck finding popper.js version 2.11.8 or higher via composer. I don't want to maintain popper.js manually, but simply by calling composer update. Do you know of an alternative package name that can be used?


Solution

  • I learned from the maintainer that bootstrap has integrated popper.js in the js module bootstrap.bundle.min.js. Just include this module in the body of your php file instead of bootstrap.min.js.