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

webservant316 created an issue. See original summary.

mikeytown2’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev

Pretty sure it works with PHP7, as that's how I'm using it.

webservant316’s picture

Oh 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?

mikeytown2’s picture

The 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

mikeytown2’s picture

There 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

mikeytown2’s picture

Should I close out this support request or do you have more questions?

webservant316’s picture

this 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!

mikeytown2’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.