Coder Social home page Coder Social logo

async-page-builder-demo's Introduction

Build Symfony pages, with async blocks

A media website is full of reusable components and building those components is challenging. With our designers we start by creating wireframes defining reusable components used by the backend developers.

Using async PHP, is a solution to organize PHP code by Component. Performances are optimized thanks to concurrent resolution of all components.

image

This demo app contains 2 pages:

  • The home with a list of last published articles.
  • The article page with a single article, a list of related articles and the same list of last published articles used in the home page.

We define a table to specify which blocks are used by each page.

Pages\Blocks LastArticles ArticleContent RelatedArticles
app_index X
app_article X X X

Technical stack

  • PHP 8.1+
  • Symfony 6
  • AMP v3+ (dev) with Fibers
  • Contents from HTTP API

Installation

Requires PHP 8.1 and Symfony CLI.

symfony composer install
symfony server:start -d

Credits

This demo have been created by Jérôme TAMARELLE.

It is inpired by how we build Prisma Media's websites.

async-page-builder-demo's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.