can HTMX be used with PHP? #706
-
Hello to all, |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Hi There, Yep, htmx is backend agnotstic: if your backend can produce HTML (and php can) then you can use htmx with it. I've posted your question to the discord chat as well to see if someone with direct php/htmx experience can chime in. Cheers, |
Beta Was this translation helpful? Give feedback.
-
As a PHP developer: yes it can. As @1cg says - the backend needs to respond with HTML, which PHP is of course excellent at doing. |
Beta Was this translation helpful? Give feedback.
-
You can also take a look at: |
Beta Was this translation helpful? Give feedback.
-
We program extensively with Kirby CMS, a modern, PHP-based CMS which has many amazing features, among which is the fact that you can return any of your site's content in different formats, called 'content representations' - eg., so you can return that blog article as JSON, as XML, or as an HTML snippet for displaying article 'cards' in a 'related articles' section on the page. It makes implementing things like lists, pagination and searching on the frontend using htmx an absolute joy. |
Beta Was this translation helpful? Give feedback.
As a PHP developer: yes it can.
As @1cg says - the backend needs to respond with HTML, which PHP is of course excellent at doing.