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 /r/webdev

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • Lumen

    Discontinued 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

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • 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