bowphp/meta-manager 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

bowphp/meta-manager

Composer 安装命令:

composer require bowphp/meta-manager

包简介

Meta Manager is an SEO tool that is used to improve SEO of a Bowphp web application by adding recommended meta tags to your web pages.

README 文档

README

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.

GitHub license GitHub issues CodeFactor Twitter

SEO Features

  • Standard Meta Tags
  • Facebook OpenGraph Meta Tags
  • Twitter Card Meta Tags
  • Dublin Core Meta Tags
  • Link Tags

Requirements

  • PHP 8.1 and above
  • Bowphp 5.x
  • Tintin 3.x

Steps

Install

Run the following to include this package via Composer

composer require bowphp/meta-manager

Once the download is complete, the next thing you have to do is include the service provider within app/Kernel.php.

public function configurations(): array
{
    return [
        ...
        Bow\MetaManager\MetaManagerConfiguration::class,
    ];
}

Configuration

Setup default application meta in meta.php config. (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;

%meta()

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.

%meta([
    '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">
    %meta([
      'title'  => 'My Example Title',
      'description' => 'This is my example description',
      'image'=> '',
    ])
</head>
<body>
</body>
</html>

Maintainers

Contact

papac@bowphp.com - @papacdev

Please, if there is a bug on the project contact me by email or leave me a message on Slack. or join us on Slask

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

bowphp/meta-manager 适用场景与选型建议

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

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

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

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-05-02