Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am working to test PHP7 for my Drupal sites. Turns out the 'jsmin' is not a standard install, but is available at https://github.com/rgrove/jsmin-php. However, the maintainer, has posted warnings about using the software saying it is a dead end. What is the future for javascript minimization with PHP7?
Comments
Comment #2
mikeytown2 CreditAttribution: mikeytown2 commentedPretty sure it works with PHP7, as that's how I'm using it.
Comment #3
webservant316 CreditAttribution: webservant316 commentedOh yes, sorry, it does work and I am using it on one site. However, my other site is managed and they do not want to install the jsmin extension from github, further notes at github communicate that it is a dead project.
So I wondered what the plan is for the future?
Comment #4
mikeytown2 CreditAttribution: mikeytown2 commentedThe jsmin extension is this repository https://github.com/sqmk/pecl-jsmin
This is the PHP7 branch https://github.com/sqmk/pecl-jsmin/tree/feature/php7
Comment #5
mikeytown2 CreditAttribution: mikeytown2 commentedThere is also the AdvAgg External Compression module if you want something else. It supports the Google Closure Compiler https://developers.google.com/closure/compiler/docs/gettingstarted_app
Comment #6
mikeytown2 CreditAttribution: mikeytown2 commentedShould I close out this support request or do you have more questions?
Comment #7
webservant316 CreditAttribution: webservant316 commentedthis was helpful and I installed your recommended jsmin extension at #4 above on my other server for php7 so I am set.
yes close the ticket.
thanks!
Comment #8
mikeytown2 CreditAttribution: mikeytown2 commented