Coder Social home page Coder Social logo

laravel-seo-manager's Introduction

Laravel SEO Manager

Laravel SEO Manager

Latest Version on Packagist Total Downloads Code Quality Code Coverage GitHub Tests Action Status PHPStan

This package provides simple functionality to manage SEO tags based on URL path within your Laravel application.

You can put the URL path available within your app with the JSON of tags you want to get in the view under the specified path. The wildcard * notation is available as well. You will get the manager variable with tags for each view as a Collection instance by default. The model to use by the package and variable name is customizable in the config file.

The package requires PHP ^8.x and Laravel ^8.71 or ^9.0.

#StandWithUkraine

SWUbanner

Installation

Install the package using composer:

composer require michael-rubel/laravel-seo-manager

Publish the migration:

php artisan vendor:publish --tag="seo-manager-migrations"

Publish the config file:

php artisan vendor:publish --tag="seo-manager-config"

Usage

After publishing the config and running migrations, you can apply URLs in the seo_tags table using following patterns:

  • /test-url/*
  • /test-url/my-target
  • /test-url/any-target/*

Wildcard * has a lower priority than explicit define.

  • Note: If you're going to override the model to use a different database structure, make sure your model implements SeoTagContract. The package uses two simple methods to get the database columns.

Contributing

If you see the way we can improve the package, you're free to open an issue or pull request.

Testing

composer test

laravel-seo-manager's People

Contributors

michael-rubel avatar

Stargazers

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

Watchers

 avatar

Forkers

ajimoti

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.