Log in to watch this talk
You need to be logged in to access this video. If you don't have an account, purchase a virtual pass for the latest php[tek] conference to get access to the full video library.
HTMX to modernize your old school endpoints
When I started working in a legacy application, I saw one endpoint that returned HTML instead of JSON and thought "wow, that's old school". Little did I know that HTML responses could be the future to simplify the frontend and backend. HTMX makes things so simple to turn any element on your frontend to send a request to your server, handle anything, and return the HTML you want, even if you are using your framework's templating engine. HTMX simplifies so much of the connection between the frontend and backend. For developers that use PHP, it can remove the need completely of heavy web apps to use a frontend framework that relies on API calls. HTMX can keep all of your frontend HTML in your PHP application, without sacrificing modern AJAX style websites
Kalen Johnson