Giter Site home page Giter Site logo

arcanedev / seo-helper Goto Github PK

View Code? Open in Web Editor NEW
320.0 22.0 50.0 592 KB

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

License: MIT License

PHP 100.00%
arcanedev php laravel seo meta twitter open-graph tags html

seo-helper's People

Contributors

arcanedev-maroc avatar marclaporte avatar mngzir avatar rstrydom 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

seo-helper's Issues

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');
    }
}

Laravel 9

I love this package.

Any plan to upgrade to Laravel 9?

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

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

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.

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 ?

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

Laravel 5.7 support

I'm sure this is already on your radar, but I find it good to have an issue to track.

Please support Laravel 5.7

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

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

get only title string

hi . i want to get site title and use in other place on page layout .
how i should get title string without meta html ?

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.