davmixcool/laravel-meta-manager
Composer 安装命令:
composer require davmixcool/laravel-meta-manager
包简介
Laravel Meta Manager is an SEO tool that is used to improve SEO of a website or specific page by adding recommended meta tags to your application.
README 文档
README
Laravel Meta Manager is an SEO tool that is used to improve the SEO of a website or specific page by adding recommended meta tags to your application.
SEO Features
- Standard Meta Tags
- Facebook OpenGraph Meta Tags
- Twitter Card Meta Tags
- Dublin Core Meta Tags
- Link Tags
Requirements
- PHP 5.4 and above
Steps:
Install
Composer
Run the following to include this package via Composer
composer require davmixcool/laravel-meta-manager
Laravel 5.5+ uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.
Once the download is complete, the next thing you have to do is include the service provider within config/app.php.
'providers' => [ Davmixcool\MetaManager\MetaServiceProvider::class, ];
Then run;php artisan vendor:publish --provider="Davmixcool\MetaManager\MetaServiceProvider" to get the config of Laravel Meta Manager.
Configuration
Setup default application meta inmeta.phpconfig. (Optional but recommended)
Available options:
| Option | Description |
|---|---|
robots |
Robots option tells search engines what to follow and what not to follow. |
revisit_after |
Here you may specify how search engines will re-visit and re-crawl your site. |
referrer |
Here you may specify how you want other sites to get referrer information from your site. |
type |
Here you may specify the structure type of your website or a specific page |
title |
Here you may provide the title of your website or a specific page to help search engines understand it better. |
description |
Here you may provide the description of your website or a specific page to help search engines understand it better. |
image |
Here you may provide the URL to the image you want search engines and crawlers to make use of when displaying your website or a specific page. |
author |
Here you may provide the author's name you want search engines to make use of when displaying your website or a specific page. |
geo_region |
Here you specify the region of your location. This is useful if you have a physical location that is important for your business. |
geo_position |
Here you specify the geo-coordinates of your physical location in longitude and latitude. |
twitter_site |
Here you may provide your Twitter @username of your account |
twitter_card |
Here you may specify the way you want crawlers to understand your Twitter share type. |
fb_app_id |
Here you may provide your Facebook app id |
keywords |
Here you may provide keywords relevant to your website and the specific page. |
Usage
Once the configuration is complete you can then add the below at the meta area of the page you want to include meta tags;
@include('meta::manager')
The above will use the predefined configurations to prefill the generated meta tags. However, if you chose to define certain options on the fly then you can use the code below.
@include('meta::manager', [ 'title' => 'My Example Title', 'description' => 'This is my example description', 'image' => 'Url to the image', ])
Example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
@include('meta::manager', [
'title' => 'My Example Title',
'description' => 'This is my example description',
'image' => '',
])
</head>
<body>
</body>
</html>
Stargazers
Forkers
Maintainers
This package is maintained by David Oti and you!
License
This package is licensed under the MIT license.
davmixcool/laravel-meta-manager 适用场景与选型建议
davmixcool/laravel-meta-manager 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 42.48k 次下载、GitHub Stars 达 150, 最近一次更新时间为 2018 年 10 月 07 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「seo」 「tags」 「social」 「meta-tags」 「davmixcool」 「laravel-meta-manager」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 davmixcool/laravel-meta-manager 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 davmixcool/laravel-meta-manager 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 davmixcool/laravel-meta-manager 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A powerfull cacher based on laravels file cache driver
Simple Sharing generates social media share links within CP entry pages, allowing you to quickly & easily share entries.
Phalcon PHP Meta tags service
Help to manage meta data on Laravel Eloquent model
LinkedIn integration for Social
A tool for scraping URL resources (oEmbed, OpenGraph, Twitter cards, JSON-LD)
统计信息
- 总下载量: 42.48k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 151
- 点击次数: 19
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-10-07