PHP Package: spatie/laravel-html

A PHP library for generating SEO-optimized HTML content easily within Laravel applications.

Current Version: 3.12.1
Last Updated: 2025-10-02
PHP Requirement: ^8.2
Dependencies:
spatie/laravel
spatie/html
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

The Laravel HTML package by Spatie provides a convenient way to create SEO-friendly HTML code effortlessly in your Laravel projects. With an intuitive interface and powerful features, it streamlines the process of generating optimized HTML content. This library empowers developers to enhance their web applications with structured and search engine optimized markup, contributing to improved visibility and ranking. Elevate your Laravel development experience with the Laravel HTML package today.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 3.12.1

Download Download v3.12.1

Previous Versions

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/spatie/laravel-html/3.12.1/loader.php';
require_once 'libs/spatie/laravel/{lib_version}/loader.php';
require_once 'libs/spatie/html/{lib_version}/loader.php';

use Spatie\Html\Html;

$obj = new Html();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.