What's in the box.
Gridly PHP is a feature-rich Multipurpose Site web template built on PHP 8.1 with a clean MVC architecture, Bootstrap 4, and MySQL database integration. It ships with 25 server-rendered pages, a filterable photo gallery, a blog module, map integration, all powered by PHP with PDO database abstraction and Composer autoloading — fully ready for shared hosting deployment.
Built for PHP developers delivering versatile, multipurpose websites for any industry 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
- 25 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 25 Pages
- home.php — Standard hero and multipurpose showcase
- home-boxed-with-background.php — Boxed layout with background image
- home-contact-form.php — Homepage with integrated contact form
- home-full-width.php — Full-width homepage
- home-gap.php — Gapped layout variant
- home-google-maps.php — Location-aware hero with Google Maps integration
- home-parallax.php — Parallax background hero variant
- home-with-banner.php — Homepage with announcement banner
- layout-1.php — 6 — Six distinct grid layout variants
- locations.php — Map-driven locations and contact page
- team.php — Team and staff profiles
- blog.php — News and articles archive
- blog-details-4-sidebar-variants.php — Full articles in multiple sidebar formats
- elements.php — UI component reference page
- login.php — Account login
Key Features
- 25 Fully Designed HTML5 Pages across home variants, grid layouts, blog, team, and account
- 8 Distinct Home Layout Variants — boxed, full-width, gap, parallax, banner, Google Maps, contact form, and standard
- Bootstrap 4 — responsive, mobile-first grid system
- 6 Grid Layout Variants — six distinct content presentation and grid styles
- Google Maps Integration — location-aware home page with Google Maps background
- Locations Page — map-driven locations and contact page
- Team Section — team and staff member profiles
- Elements Reference Page — UI component showcase for easy customisation
- Slick Carousel — featured content and category sliders
- Masonry Grid — dynamic masonry layout for portfolio and blog showcases
- Magnific Popup Lightbox — full-screen image and video popup
- Flaticon Icon Set — comprehensive icon library for the UI
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
- Multipurpose Site Businesses: Server-rendered, database-backed multipurpose site for any industry 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 pages, 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
- Parallax — 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.
Buyer’s guideExvox — Creative Multipurpose HTML Template | Bootstrap 5 (63+ Pages, 13 Banner Variations) — see how Gridly compares with the alternatives.
Gridly in other formats
The same design, built natively in each stack. Every format is its own product with its own demo, documentation, download and reviews.
-
GridlyHTML5
$19
$49View HTML5 → -
GridlyReact
$24
$49View React → -
GridlyVue.js
$15
$49View Vue.js → -
GridlyAngular
$27
$49View Angular → -
GridlyWordPress
$65
$105View WordPress → -
This page GridlyPHP $16
$49You are viewing it -
GridlyAI Smart Website
$2,999
$3,299View AI Smart Website → -
Save 20%
Developer bundleAll 6 code formats
$132.80
$166View bundle →
What's changed.
- 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
Need Gridly installed or customized?
Fixed prices, done by the developers who built this template. Pick a service and we take it from there.
- Theme installation
- Color scheme customization
- Speed optimization
- 1-hour web development








Reviews
There are no reviews yet.