承接 devrabiul/laravel-seo-manager 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

devrabiul/laravel-seo-manager

Composer 安装命令:

composer require devrabiul/laravel-seo-manager

包简介

Laravel SEO Manager is an SEO tool that improves SEO by adding recommended meta tags.

README 文档

README

Laravel SEO Manager is a powerful and easy-to-use SEO optimization tool for Laravel applications. It helps enhance your website's search engine rankings by automatically adding essential meta tags and structured data to your web pages. With built-in support for Facebook OpenGraph, Twitter Cards, Schema Markup (JSON-LD), and Dublin Core metadata, this package ensures your content is properly indexed and displayed across search engines and social media platforms.

By integrating Laravel SEO Manager, you can boost organic traffic, improve click-through rates (CTR), and enhance your website’s visibility in Google Search, Bing, and other search engines. Whether you're managing a blog, eCommerce store, or business website, this package provides a comprehensive SEO solution with customizable settings to match your specific needs.

Latest Stable Version Total Downloads Monthly Downloads GitHub license Buy us a tree GitHub Repo stars

🚀 Live Demo

👉 Try the Live Demo

Live Demo Thumbnail

SEO Features

  • Standard SEO (title, description, robots, etc.)
  • Dublin Core metadata for academic and library-focused sites.
  • Facebook OpenGraph for social sharing optimizations.
  • Twitter Card for rich Twitter previews.
  • Schema Markup for structured data (JSON-LD).

Requirements

  • PHP 5.4 or higher
  • Laravel 5.5+ (supports package auto-discovery)

Installation

Step 1: Install via Composer

Run the following command to install the package:

composer require devrabiul/laravel-seo-manager

Step 2: Service Provider (Laravel 5.4 and below)

Laravel 5.5 and above support auto-discovery, so no manual provider registration is needed. For earlier versions of Laravel, you need to add the service provider to config/app.php:

'providers' => [
    Devrabiul\LaravelSeoManager\SEOManagerServiceProvider::class,
],

Step 3: Publish the Configuration

Run the following command to publish the configuration file:

php artisan vendor:publish --provider="Devrabiul\LaravelSeoManager\SEOManagerServiceProvider"

This will create the laravel-seo-manager.php configuration file in the config directory.

Configuration

After installation, you can configure the meta tags in the config/laravel-seo-manager.php file. Here's a summary of the available options:

Option Description
robots Defines search engine crawling rules (e.g., all, noindex)
revisit_after Time interval for search engine re-crawling (e.g., 1 day)
referrer Specifies referrer policy for browsers (e.g., no-referrer)
type Defines the type of page (e.g., website, article)
title The title of the page or website
description A description of the page or website
image URL to an image to be used by search engines
author The author of the page
geo_region Geographic region of your business (e.g., London)
geo_position Latitude and longitude of your physical location
twitter_site Your Twitter handle (e.g., @username)
twitter_card Type of Twitter card (e.g., summary_large_image)
fb_app_id Your Facebook App ID for OpenGraph
keywords Keywords for your page to help search engines identify content

Usage

After configuring the meta tags, you can include them in your Blade templates by adding the following code:

Standard Meta Tags

@include('seo::meta')

This will automatically use the values set in the laravel-seo-manager.php config file. However, you can override specific values by passing them as arguments:

@include('seo::meta', [
    'title' => 'My Custom Title',
    'description' => 'This is a custom description.',
    'image' => 'https://example.com/image.jpg',
])

Schema Markup

You can also include schema markup using the schema view. Here’s an example for a blog post:

@include('seo::schema', [
    'breadcrumbs' => [
        ['name' => 'Home', 'url' => url('/')],
        ['name' => 'Blog', 'url' => url('/blog')],
        ['name' => 'Post Title', 'url' => url()->current()],
    ],
    'article_body' => 'This is the content of the article...',
    'date_published' => '2024-01-01T12:00:00+00:00',
    'date_modified' => '2024-01-05T14:30:00+00:00',
])

Example Usage

Here’s a complete example of using the package:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    @include('seo::meta', [
        'title' => 'My Example Title',
        'description' => 'This is my example description.',
        'image' => 'https://example.com/image.jpg',
    ])
</head>
<body>
    <h1>Welcome to My Website</h1>
    @include('seo::schema', [
        'breadcrumbs' => [
            ['name' => 'Home', 'url' => url('/')],
            ['name' => 'About', 'url' => url('/about')],
        ],
        'article_body' => 'This is the body content of the article...',
        'date_published' => '2024-01-01T12:00:00+00:00',
        'date_modified' => '2024-01-05T14:30:00+00:00',
    ])
</body>
</html>

Maintainers

This package is maintained by Muhammad Rabiul and you!

License

This package is licensed under the MIT license.

devrabiul/laravel-seo-manager 适用场景与选型建议

devrabiul/laravel-seo-manager 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 6.57k 次下载、GitHub Stars 达 39, 最近一次更新时间为 2025 年 02 月 06 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「Sitemap」 「seo」 「tags」 「JSON-LD」 「social」 「open graph」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 devrabiul/laravel-seo-manager 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 devrabiul/laravel-seo-manager 我们能提供哪些服务?
定制开发 / 二次开发

基于 devrabiul/laravel-seo-manager 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 6.57k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 40
  • 点击次数: 36
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 39
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-02-06