How to install/enable tidy extension? #682
-
|
I have a php7.4 application which uses Tidy. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
I think you can't. The php provided would've needed to be compiled with the I also tried to follow this guide: https://atlas.dev/blog/add-extensions-to-laravel-herd-without-homebrew And found (seemingly) the so file: https://packages.macports.org/php84-tidy/ But setting it in the php.ini like so: didn't make a difference. That said: Would be nice if it would just be included. |
Beta Was this translation helpful? Give feedback.
-
|
Actually, it works! I just put the so into the wrong ini file (I thought I was using php 8.4, but I was using php 8.3). Caveat: You will have to install macports and tidy through macports. So here's how it works:
And then it works! |
Beta Was this translation helpful? Give feedback.
Actually, it works! I just put the so into the wrong ini file (I thought I was using php 8.4, but I was using php 8.3). Caveat: You will have to install macports and tidy through macports. So here's how it works:
tidy.soin the folderphp83-tidy-8.3.12_0.darwin_25.arm64/opt/local/lib/php83/extensions/no-debug-non-zts-20230831//Users/<User>/Library/Application Support/Herd/config/php/83extension=/path/to/tidy.sointo your php.iniAnd then it works!