How coder-shubham02/digital-marketing-agency-web-site works
Project type and purpose
• Type: A monolithic, server-rendered PHP website (no separate SPA/frontend framework).
• Purpose: Serve marketing-focused pages (Home, About Us, Services, Contact) using reusable PHP “includes” for header, footer, navigation, and content sections.
File structure
• Root PHP pages (index.php, about-us.php, services.php, contact-us.php) act as entry points or “controllers.”
• includes/ folder holds reusable view components (header.php, footer.php, navigation.php, breadcrumb.php, plus sections/ subfolder).
• No database or external API subfolder—this is purely file-system based rendering.
README
• Title “Digital-Marketing-Agency-Web-Site” confirms a simple brochure-style website.
• No mention of a build tool, deployment pipeline, or data store.
a. Main components to include
• Client (Browser)
• Load Balancer or Reverse Proxy (optional)
• Web Server (Apache or Nginx) + PHP-FPM (PHP runtime)
• File System (application code + includes + static assets)
• Static Asset Server / CDN (optional)
• External Services (e.g., Google Analytics)
b. Relationships & data flow
1. Browser → HTTP GET → Load Balancer/Proxy → Web Server
2. Web Server invokes PHP runtime → reads .php page (e.g., services.php)
3. PHP script assembles view by including header.php, navigation.php, section_content_block.php, footer.php, etc., from includes/
4. PHP runtime returns generated HTML → Web Server → Browser
5. Browser parses HTML, requests linked CSS/JS/images from assets/
6. Optionally, Browser also loads Google Analytics script (external service call)
c. Architectural patterns & design principles
• Template Composition via PHP includes (promotes reuse, DRY)
• Monolithic deployment (single codebase on one or more web servers)
• Separation of concerns:
– Entry Points (root .php files)
– View Components (includes/)
– Static Assets (assets/, scripts/)
d. Key technologies & libraries
• PHP (server-side rendering)
• HTML/CSS/JavaScript
• jQuery, Owl-Carousel (carousel), custom animation.js & main.js
• CSS modules per page (about-us.css, contact-us.css, etc.)