SEO Helper is a package that provides tools and helpers for SEO (Search Engine Optimization).

Overview

SEO Helper Packagist License For PHP

Github Workflow Status Coverage Status Scrutinizer Code Quality SensioLabs Insight Github Issues

Packagist Packagist Release Packagist Downloads

By ARCANEDEV©

SEO Helper is a package that provides tools and helpers for SEO (Search Engine Optimization).

Feel free to check out the releases, license, and contribution guidelines.

Features

  • Framework agnostic package.
  • Open Graph & Twitter Cards are supported.
  • Webmaster tools site verifier tags are supported.
  • Google Analytics tracking code is supported.
  • Easy setup & configuration.
  • Well documented & IDE Friendly.
  • Well tested with maximum code quality.
  • Laravel 5.x to 8.x are supported.
  • Made with ❤️ & .

Table of contents

  1. Installation and Setup
  2. Configuration
  3. Usage
  4. API
  5. Extras

Contribution

Any ideas are welcome. Feel free to submit any issues or pull requests, please check the contribution guidelines.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

Comments
  • Graph multiple properties with identical names

    Graph multiple properties with identical names

    • SEO-Helper Version: Latest
    • Laravel Version: 5.5.5
    • PHP Version: 7.1

    Description:

    It's impossible to add multiple properties to Graph with identical names.

    Steps To Reproduce:

    $this->seoGraph()->addProperty('locale:alternate', 'en');
    $this->seoGraph()->addProperty('locale:alternate', 'ru');
    

    Will output only last one in rendered HTML.

    feature request 
    opened by BakuDev 6
  • Convenience method to setup images in the controller.

    Convenience method to setup images in the controller.

    Now you can do something like, : and update the image on the cards and open graph.

    $this->seo()
              ->setTitle(trans('conectores.'.$conector_id.'.seo_title'))
              ->setImage(asset('img/conectores-aplicaciones-moviles/modulo-'.$conector_id.'.png'))
              ->setDescription(trans('conectores.'.$conector_id.'.seo_desc'));
    
    feature request 
    opened by kikoseijo 4
  • blade usage

    blade usage

    hello, how to output result into blade.

    I put this lines into my controller :

    $title = new Title;
    $title->set('Your awesome title');
    echo $title->render();
    

    this render the title before head tag, I need to set the title inside head to respect html strecture

    can you help please ?

    question 
    opened by mkibach 4
  • Extend Laravel support for custom meta and link tags

    Extend Laravel support for custom meta and link tags

    • SEO-Helper Version: 1.5.1
    • Laravel Version: 5.6.5
    • PHP Version: 7.1.14

    Description:

    Thanks for this package. Do you have any plans to extend the Laravel Trait to support the full range of capabilities this package has, such as being able to do the following:

    class PostController extends Controller
    {
        public function list()
        {
            $this->seo()->addMeta('prev', url('/page-1')); // Or 'addLink()' if more appropriate.
            $this->seo()->addMeta('next', url('/page-3'));
            $this->seo()->addMeta('robots', 'follow, noindex');
        }
    }
    
    need help question 
    opened by bridgeport 2
  • one title for all of them

    one title for all of them

    Hello, this lib seems great, but we should have the possibility from a single setTitle (or any other common stuff) with another like useGraph('OG',' twitter','...') to let the lib generated title for opengraph, twitter, and the other lib. This will reduce drastically the number of call to do to have all seo stuff.

    thanks

    question 
    opened by Grummfy 2
  • Google Analytics snippet is upgraded to new gtag.js snippet.

    Google Analytics snippet is upgraded to new gtag.js snippet.

    Google has new gtag.js which is backward compatible. However, new Analytics Beta program users are getting a different code which is not compatible with old gtag snippet code. Site verifications on search console etc is broken with old snippet / new code. See: https://developers.google.com/analytics/devguides/collection/upgrade/analyticsjs

    enhancement 
    opened by tkorkunckaya 1
  • How to add OpenGraph & TwitterCards

    How to add OpenGraph & TwitterCards

    • SEO-Helper Version: 1.5.*
    • Laravel Version: 5.6.*
    • PHP Version: 7.2.*

    How to Add Open Graph and Twitter on Laravel?:

    Heyho! First of all thanks for providing such an awesome package!

    So far, I just was using the normal SEO-Types inside my Laravel App. But i'm not able to add Graph or Cards to it. What I'm missing out?

    $this->seo()
         ->setTitle(Lang::get('meta.frontend.'.$page.'.title'))
         ->setDescription(Lang::get('meta.frontend.'.$page.'.description'))
         ->setKeywords([Lang::get('meta.frontend..'.$page.'.keywords')])
         ->setImage($page.  'seo.png');
    

    Where I need to pass the Graph or Card Object to the view? If i just using this code I cant see the values inside my Laravel app.

    $openGraph = new Graph;
    
    $openGraph->setType('website');
    $openGraph->setTitle('Your awesome title');
    $openGraph->setDescription('Your awesome description');
    $openGraph->setSiteName('Your site name');
    $openGraph->setUrl('http://my.awesome-website.com');
    $openGraph->setImage('http://my.awesome-website.com/img/cool-image.jpg');
    $openGraph->render();
    

    I tried to pass it into the setOpenGraph or setSeoTwitter Method, but thats somehow not working.

    $this->seo()
         ->setTitle(Lang::get('meta.frontend.'.$page.'.title'))
         ->setDescription(Lang::get('meta.frontend.'.$page.'.description'))
         ->setKeywords([Lang::get('meta.frontend..'.$page.'.keywords')])
         ->setImage($page.  'seo.png')
         ->setSeoTwitter()
         ->setSeoOpenGraph($openGraph);
    

    Thanks for an help, Stan

    question laravel 
    opened by StanBarrows 1
  • Error when install Seo Helper

    Error when install Seo Helper

    I got error after run composer required command: Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1. I used:

    • Laravel version 5.6
    • PHP version 7.1.3
    • Seo Helper lastest version.

    screen shot 2018-08-07 at 08 23 59

    invalid 
    opened by trungdung1995 1
  • How to implement hreflang for language and regional URLs

    How to implement hreflang for language and regional URLs

    • SEO-Helper Version: 1.4
    • Laravel Version: 5.4
    • PHP Version: 7.1

    Description:

    I've got a multi-language website & google propose use alternate meta tags instead of canonical. Here the article is: Use hreflang for language and regional URLs So, the question is how to implement this feature via seo-helper?

    feature request 
    opened by SpinyMan 1
  • Installation failed, reverting ./composer.json to its original content.

    Installation failed, reverting ./composer.json to its original content.

    • SEO-Helper Version: Default(latest)
    • Laravel Version: "laravel/framework": "5.3.*",
    • PHP Version: PHP version: 7.0.15-0ubuntu0.16.04.4

    Description:

    composer require arcanedev/seo-helper Using version ^1.3 for arcanedev/seo-helper
    ./composer.json has been updated
    Loading composer repositories with package information
    Updating dependencies (including require-dev)
    Your requirements could not be resolved to an installable set of packages.
    
      **Problem 1**
        - Conclusion: remove laravel/framework v5.3.31
        - Conclusion: don't install laravel/framework v5.3.31
        - arcanedev/seo-helper 1.3.0 requires arcanedev/support ~4.0 -> satisfiable by arcanedev/support[4.0.0, 4.0.1, 4.0.2, 4.1.0, 4.1.1, 4.1.2, 4.1.3, 4.1.4, 4.1.5, 4.1.6, 4.1.7, 4.1.8, 4.1.9].
        - arcanedev/seo-helper 1.3.1 requires arcanedev/support ~4.0 -> satisfiable by arcanedev/support[4.0.0, 4.0.1, 4.0.2, 4.1.0, 4.1.1, 4.1.2, 4.1.3, 4.1.4, 4.1.5, 4.1.6, 4.1.7, 4.1.8, 4.1.9].
        - arcanedev/seo-helper 1.3.2 requires arcanedev/support ~4.0 -> satisfiable by arcanedev/support[4.0.0, 4.0.1, 4.0.2, 4.1.0, 4.1.1, 4.1.2, 4.1.3, 4.1.4, 4.1.5, 4.1.6, 4.1.7, 4.1.8, 4.1.9].
        - arcanedev/support 4.0.0 requires illuminate/filesystem ~5.4.0 -> satisfiable by illuminate/filesystem[v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.9].
        - arcanedev/support 4.0.1 requires illuminate/filesystem ~5.4.0 -> satisfiable by illuminate/filesystem[v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.9].
        - arcanedev/support 4.0.2 requires illuminate/filesystem ~5.4.0 -> satisfiable by illuminate/filesystem[v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.9].
        - arcanedev/support 4.1.0 requires illuminate/filesystem ~5.4.0 -> satisfiable by illuminate/filesystem[v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.9].
        - arcanedev/support 4.1.1 requires illuminate/filesystem ~5.4.0 -> satisfiable by illuminate/filesystem[v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.9].
        - arcanedev/support 4.1.2 requires illuminate/filesystem ~5.4.0 -> satisfiable by illuminate/filesystem[v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.9].
        - arcanedev/support 4.1.3 requires illuminate/filesystem ~5.4.0 -> satisfiable by illuminate/filesystem[v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.9].
        - arcanedev/support 4.1.4 requires illuminate/filesystem ~5.4.0 -> satisfiable by illuminate/filesystem[v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.9].
        - arcanedev/support 4.1.5 requires illuminate/filesystem ~5.4.0 -> satisfiable by illuminate/filesystem[v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.9].
        - arcanedev/support 4.1.6 requires illuminate/filesystem ~5.4.0 -> satisfiable by illuminate/filesystem[v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.9].
        - arcanedev/support 4.1.7 requires illuminate/filesystem ~5.4.0 -> satisfiable by illuminate/filesystem[v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.9].
        - arcanedev/support 4.1.8 requires illuminate/filesystem ~5.4.0 -> satisfiable by illuminate/filesystem[v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.9].
        - arcanedev/support 4.1.9 requires illuminate/filesystem ~5.4.0 -> satisfiable by illuminate/filesystem[v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.9].
        - don't install illuminate/filesystem v5.4.0|don't install laravel/framework v5.3.31
        - don't install illuminate/filesystem v5.4.13|don't install laravel/framework v5.3.31
        - don't install illuminate/filesystem v5.4.17|don't install laravel/framework v5.3.31
        - don't install illuminate/filesystem v5.4.19|don't install laravel/framework v5.3.31
        - don't install illuminate/filesystem v5.4.9|don't install laravel/framework v5.3.31
        - Installation request for laravel/framework == 5.3.31.0 -> satisfiable by laravel/framework[v5.3.31].
        - Installation request for arcanedev/seo-helper ^1.3 -> satisfiable by arcanedev/seo-helper[1.3.0, 1.3.1, 1.3.2].
    

    Please suggest me how to install this package

    Thnaks

    need help 
    opened by ashok-neptrox 1
  • How to disable html encode?

    How to disable html encode?

    • SEO-Helper Version: 1.2.1
    • Laravel Version: 5.2.45
    • PHP Version: 7.0.8

    Hi, How to disable html encode in setDescription()?

    «description» -> «description»

    Thanks

    question feature request 
    opened by pe3udent 1
Releases(5.0.0)
Owner
ARCANEDEV
ARCANEDEV
Laravel Seo package for Content writer/admin/web master who do not know programming but want to edit/update SEO tags from dashboard

Laravel Seo Tools Laravel is becoming more and more popular and lots of web application are developing. In most of the web application there need some

Tuhin Bepari 130 Dec 23, 2022
A convenient helper for using the laravel-seo package with Filament Admin and Forms

Combine the power of Laravel SEO and Filament PHP. This package is a convenient helper for using the laravel-seo package with Filament Admin and Forms

Ralph J. Smit 39 Dec 21, 2022
Package to optimize your site automatically which results in a 35%+ optimization

Laravel Page Speed Simple package to minify HTML output on demand which results in a 35%+ optimization. Laravel Page Speed was created by Renato Marin

Renato Marinho 2.2k Dec 28, 2022
A helper package to flash a bootstrap alert to the browser via a Facade or a helper function.

Alert Box (Laravel) A helper package to flash a bootstrap alert to the browser via a Facade or a helper function. <div class="alert alert-info fade in

Ben-Piet O'Callaghan 17 Dec 30, 2022
SEO Tools for Laravel

SEOTools - SEO Tools for Laravel and Lumen SEOTools is a package for Laravel 5.8+ and Lumen that provides helpers for some common SEO techniques. Curr

Artesãos 2.7k Dec 31, 2022
Cache-purge-helper - Additional instances where nginx-helper and lscache plugin should be purged.

cache-purge-helper Additional instances where nginx-helper and lscache plugin should be purged. Install Extract the zip file. Upload them to /wp-conte

Jordan 10 Oct 5, 2022
An opinionated support package for Laravel, that provides flexible and reusable helper methods and traits for commonly used functionality.

Support An opinionated support package for Laravel, that provides flexible and reusable helper methods and traits for commonly used functionality. Ins

Ian Olson 3 Apr 14, 2021
Send ping to search engine by Index now protocol.

Index now PHP protocol Easy to use protocol that websites can call to notify search engines whenever website contents on any URL is updated or created

Baraja packages 3 Sep 10, 2022
This package provides new helper functions that take care of handling all the translation hassle and do it for you.

Laravel Translate Message ?? This package provides new helper functions that take care of handling all the translation hassle and do it for you. Insta

Basel Rabia 17 Feb 8, 2022
Laravel blade directives and php helpers for serverside rendered content, based on browser window size WITHOUT css. Requires Livewire and AlpineJS.

Laravel Livewire Window Size and Breakpoints Laravel blade directives and php helpers for server side rendered content, based on browser window size W

Tina Hammar 15 Oct 6, 2022
Collection of agnostic PHP Functions and helpers with zero dependencies to use as foundation in packages and other project

Collection of agnostic PHP Functions and helpers This package provides a lot of very usefull agnostic helpers to use as foundation in packages and oth

padosoft 54 Sep 21, 2022
Generate and autoload custom Helpers, Builder Scope, Service class, Trait

laravel-make-extender Generate and autoload custom helpers, It can generate multilevel helpers in the context of the directory. Generate Service class

Limewell 30 Dec 24, 2022
Laravel blade directives and php helpers for serverside rendered content, based on browser window size WITHOUT css

Laravel Window Size and Breakpoints Laravel blade directives and php helpers for server side rendered content, based on browser window size WITHOUT cs

Tina Hammar 7 Nov 23, 2022
Scripts, helpers and configs to make hacking on Synack less painful

SynackMoPleasure Scripts, helpers and configs to make hacking on Synack less painful TuPOC HTTP OOB PHP Logger This PHP script was created to test/exp

Osirys 3 Sep 20, 2022
Automatically load your helpers in your laravel application.

Laravel AutoHelpers Automatically load your helpers in your laravel application. Installation You can install the package via composer: composer requi

Florian Wartner 6 Jul 26, 2021
Laravel translation helpers

Laravel Translator Installation and setup Installation You can install the package via composer: composer require isaeken/laravel-translator Setup You

İsa Eken 5 Aug 12, 2022
Laravel Helpers Automatic Loading System

About Laravel Helpers Automatic Load Laravel Helpers Automatic Loading System Doc: Copy the Helpers folder and paste it on app folder Then Go To app/P

IQBAL HASAN 2 Nov 9, 2021
Because I can never remember exactly how to autoload my helpers.php file.

Laravel Helpers File (helpers.php) I add a app/helpers.php file to every project for any custom helpers I might want to create. Everytime I go to add

Caleb Porzio 59 Mar 31, 2022
Laravel magical helpers such as Controllers / Requests / Models

Laravel Magic provides Abstract Controller, Model, generic Request, Traits, Exceptions and various middlewares in order to generate very easily and quickly API resources from scratch.

Dominique Vienne 1 Sep 1, 2022