Skip to content

All-Access from $9.75/mo, billed yearly. Every template, every format, commercial use.

Slide Sigma All-Access
Get All-Access

Website Templates

Freshly — Recipe Sharing PHP Website Template

by MetropolitanHost · updated Apr 28, 2026

Included in All-Access PHP

Download this template, and every other one, with All-Access.

  • Monthlybilled $27 every month$27/mo
  • Yearlybilled $117 every year$9.75/mo
  • Lifetimeone payment$349
Subscribe to Download

Unlimited downloads · commercial use · Sign in

Need only this one? Buy it alone for $23 on MetropolitanHost

Framework
PHP 8.x
Libraries
Swiper, WOW.js, Slick, Magnific Popup
Browsers
Chrome, Firefox, Safari, Edge
Responsive
Yes - Mobile First
Documentation
Included
Updates
Free lifetime updates
W3C valid
Yes
Version
11.2.0

About This Item

Freshly PHP is a feature-rich Recipe Sharing web template built on PHP 8.1 with a clean MVC architecture, Bootstrap 4, and MySQL database integration. It ships with 18 server-rendered pages, a filterable recipe gallery, a full e-commerce module with cart and checkout, a blog module, all powered by PHP with PDO database abstraction and Composer autoloading — fully ready for shared hosting deployment.

Built for PHP developers delivering recipe sharing and food blog websites where server-side rendering, dynamic content management, and database-backed functionality are required. The MVC structure separates routing, controllers, models, and view templates cleanly. PDO prepared statements protect every database query against SQL injection, and all user input is sanitised before output. No Node.js, no build step — deploy directly to any cPanel or Plesk host.

Everything in the Package

  • 18 server-rendered PHP pages with MVC routing
  • PHP 8.1 — named arguments, match expressions, and readonly properties
  • MySQL database integration via PDO with prepared statements throughout
  • Composer autoloading — PSR-4 class autoloading, no manual require chains
  • Bootstrap 4 — responsive grid, mobile-first layout
  • Contact form with server-side validation, CSRF token protection, and PHPMailer SMTP integration
  • Environment configuration via .env — DB credentials, SMTP settings, and app URL
  • Full SQL schema dump included — import and run immediately
  • Swiper carousels and WOW.js scroll animations on all pages
  • Retina-ready, fully responsive from 320px to 1920px+
  • Well documented — setup guide covering database import, .env configuration, and SMTP setup

MVC Architecture and File Structure

  • Router: app/Router.php — maps URL paths to controller methods via regex route matching
  • Controllers handle request logic and pass typed data arrays to view templates
  • Models wrap PDO queries with typed return objects — swap MySQL for PostgreSQL by changing the DSN
  • Views: templates/ directory with reusable partials — header.php, footer.php, navbar.php
  • All user input sanitised with htmlspecialchars() before output and PDO bindings before DB queries
  • CSRF tokens generated with bin2hex(random_bytes(32)) on form render, validated on POST
  • Folder structure: app/Controllers/, app/Models/, app/Router.php, templates/, public/, config/, database/

All 18 Pages

  • home-v1.php — v4 — Four distinct hero and recipe showcase layouts
  • about.php — Brand story and culinary mission
  • recipe-grid.php — Community recipe listing
  • recipe-details.php — Individual recipe and cooking guide page
  • recipe-submit.php — Community recipe submission form
  • recipe-authors.php — Contributor and cook directory
  • recipe-categories.php — Recipe archive by category
  • shop.php — Cookbook and kitchen goods archive
  • product-details.php — Individual food product page
  • cart–checkout.php — Purchase flow pages
  • team.php — Chef and culinary contributor profiles
  • blog.php — Food and lifestyle editorial
  • blog-details.php — Full article view
  • contact-us.php — Contact form and enquiry

Key Features

  • 18 Fully Designed HTML5 Pages across home, recipe, shop, blog, and team
  • 4 Unique Home Layouts — four distinct hero styles and recipe showcase arrangements
  • Bootstrap 4 — responsive, mobile-first grid system
  • Recipe Grid Archive — community recipe listing in grid layout
  • Recipe Detail — individual recipe and cooking guide page
  • Recipe Submit Page — community recipe submission and contribution form
  • Recipe Authors Directory — community cook and contributor profiles
  • Recipe Categories — recipe archive filtered by cuisine or category
  • Shop & Product Detail — cookbook and kitchen goods archive and individual item page
  • Cart & Checkout — complete purchase flow for food products
  • Team Profiles — chef and culinary contributor directory
  • Blog & Blog Details — food and lifestyle editorial content

Security

  • PDO prepared statements on every database query — SQL injection not possible through the model layer
  • CSRF tokens on all POST forms — validated server-side before processing
  • htmlspecialchars() applied to all user-supplied output — XSS prevention throughout
  • DB credentials, SMTP passwords, and secrets stored in .env — never committed to version control
  • File upload validation — MIME type check, extension whitelist, and size limit enforced server-side

Use Cases

  • Recipe Sharing Businesses: Server-rendered, database-backed recipe sharing and food blog site with no build step required
  • PHP Developers: MVC architecture, PDO models, and Composer autoloading — extend without tech debt
  • Shared Hosting Deployments: Pure PHP 8.1 — runs on any cPanel or Plesk host without Node.js or Docker
  • Agencies: Dynamic content management via MySQL — update recipes, galleries, and blog from the database or admin panel

Credits and Dependencies

  • PHP 8.1 — PHP License
  • Bootstrap 4 — MIT License
  • Composer — MIT License
  • vlucas/phpdotenv — BSD-3 License
  • PHPMailer — LGPL 2.1 License
  • Slick — MIT License
  • Magnific — MIT License
  • Lightbox — MIT License
  • Font Awesome 6 — Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT
  • Google Fonts — SIL Open Font License
  • Demo images: Unsplash — Unsplash License (free for commercial use, no attribution required)
  • Demo images: Freepik — Freepik License (free for commercial use with attribution)
  • All demo images are for preview purposes only and are NOT included in the download.

Changelog

v1.0 2026-03-22

  • PHP 8.1 MVC architecture with Composer PSR-4 autoloading
  • MySQL database with full SQL schema dump included
  • PDO prepared statements on all queries u2014 SQL injection protected
  • CSRF token protection on all POST forms
  • Dynamic content management via MySQL database
  • PHPMailer SMTP contact form integration
  • .env configuration for DB credentials, SMTP, and app URL

Sign in

Your All-Access plan and downloads in one place.

or use your email

New here? Create an account