Git Product home page Git Product logo

laravel-meta-manager's Introduction

Laravel Meta Manager

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.

GitHub license GitHub issues CodeFactor Stable Download Twitter

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

Stargazers repo roster for @davmixcool/laravel-meta-manager

Forkers

Forkers repo roster for @davmixcool/laravel-meta-manager

Maintainers

This package is maintained by David Oti and you!

License

This package is licensed under the MIT license.

laravel-meta-manager's People

Contributors

davmixcool avatar kossa avatar lloricode avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

laravel-meta-manager's Issues

Default title not showing up

I installed the library and everything is working great but the title by default, that is not showing up. Any ideas?

Title not working

Hi, i'm using your library but when i use you example:

@include('meta::manager', [ 'title' => 'My title', 'description' => 'my description', 'keywords' => 'my keywords', ])

The description and keywords are working but title doesn't change

Unable to locate publishable resources.

Hello @davmixcool i have installed laravel -meta-manager using composer into my laravel project having version 6.5 , but when i am trying publish query its giving and error like "Unable to locate publishable resources." please give solution for same

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.