承接 wall-e/laravel-seo 相关项目开发

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

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

wall-e/laravel-seo

最新稳定版本:1.0.0

Composer 安装命令:

composer require wall-e/laravel-seo

包简介

A simple SEO meta manager for Laravel

README 文档

README

A simple and flexible SEO meta manager for Laravel applications.
Easily manage meta tags, Open Graph, Twitter cards, canonical URLs, and more for any Laravel project.

📦 Installation

Require the package via Composer:

composer require wall-e/laravel-seo

⚙️ Configuration

Publish the configuration file to customize defaults:

php artisan vendor:publish --provider="WallE\LaravelSeo\SeoServiceProvider" --tag=config 

This will create config/seo.php where you can set default meta values:

return [
    'title' => 'Default Site Title',
    'description' => 'Default description for your site.',
    'keywords' => 'laravel, seo, ecommerce',
    'author' => 'Your Name',
    'developer' => 'Your Company',
    'contact' => 'info@example.com',
    'og_image' => asset('assets/frontend/media/common/logo.png'),
    'twitter_site' => '@yourtwitterhandle',
    'robots' => 'index, follow',
];

🛠️ Usage

Set meta tags in a controller

You can set meta tags dynamically in your controllers:

use WallE\LaravelSeo\Facades\Seo;

Seo::set('title', $product->name)
   ->set('description', $product->short_description)
   ->set('keywords', 'shop, ecommerce, ' . $product->category->name)
   ->set('og_image', $product->image_url)
   ->set('twitter_site', '@yourtwitterhandle');

Include meta tags in Blade templates

Add this in the section of your layout:

@include('seo::meta')

This automatically renders all basic meta tags, Open Graph, Twitter cards, and canonical URLs.

🌐 Features

  • Fully manage basic meta tags: title, description, keywords, author, developer, contact, copyright

  • Open Graph support for Facebook, LinkedIn, etc.

  • Twitter card support

  • Canonical URL support

  • Fully configurable defaults via config/seo.php

  • Reusable in any Laravel project

  • Optimized for SEO and social media sharing

🔧 Customizing Views

If you want to customize the Blade template for meta tags:

php artisan vendor:publish --provider="WallE\LaravelSeo\SeoServiceProvider" --tag=views
  • The view will be copied to resources/views/vendor/seo/meta.blade.php.

  • You can edit it to change the HTML structure of meta tags.

📝 Contributing

Fork the repository and submit pull requests.

Bug reports, feature requests, and improvements are welcome.

Make sure to follow semantic versioning for updates.

📜 License

MIT License. See the LICENSE file for details.

🔗 Links

Packagist: https://packagist.org/packages/wall-e/laravel-seo

GitHub Repository: https://github.com/Rahman-Shaikat/laravel-seo.git

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

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