What is the best practice for sending and receiving data between HTML and PHP?

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/webdev

Our great sponsors
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • Scout APM - Less time debugging, more time building
  • SaaSHub - Software Alternatives and Reviews
  • Lumen

    The Laravel Lumen Framework.

    I would let a framework handle this for you. It can render your HTML views and handle the security for you. It’s been a while since I’ve coded PHP, but I used to love https://laravel.com and https://lumen.laravel.com

  • Laravel

    Laravel is a web application framework with expressive, elegant syntax. We’ve already laid the foundation for your next big idea — freeing you to create without sweating the small things.

    I would let a framework handle this for you. It can render your HTML views and handle the security for you. It’s been a while since I’ve coded PHP, but I used to love https://laravel.com and https://lumen.laravel.com

  • SonarLint

    Deliver Cleaner and Safer Code - Right in Your IDE of Choice!. SonarLint is a free and open source IDE extension that identifies and catches bugs and vulnerabilities as you code, directly in the IDE. Install from your favorite IDE marketplace today.

  • Twig

    Twig, the flexible, fast, and secure template language for PHP

    The controller takes that data model instance and passes it to a view where the data can get inserted into markup and rendered as HTML. Use a templating engine for your view layer. I like twig for php. That way you're basically just writing html with some spiciness like loops and vars.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts