2017 © Pedro Peláez
 

library laravel-social-share-cards

Easy Social Cards

image

setkyar/laravel-social-share-cards

Easy Social Cards

  • Friday, November 18, 2016
  • by setkyar
  • Repository
  • 6 Watchers
  • 44 Stars
  • 1,060 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 8 Forks
  • 2 Open issues
  • 3 Versions
  • 8 % Grown

The README.md

Easy Social Share Cards for Your Laravel App

Installation

First, pull in the package through Composer., (*1)

composer require setkyar/laravel-social-share-cards

And then, if using Laravel 5, include the service provider within config/app.php., (*2)

'providers' => [
    SetKyar\Social\SocialServiceProvider::class,
];

Run php artisan vendor:publish to get config of Laravel social share config., (*3)

Usage

Setup FB APP ID and your site's twitter account in social.php config. (Those are optional), (*4)

fb_app_id
twitter_site

Include meta-article in the head tag with title, description, and image which you want to appear on Facebook, Twitter and Google+ ., (*5)

title, description, and image must fill! author is optional!, (*6)

@include('social::meta-article', [
    'title'         => 'Hello World',
    'description'   => 'Welcome from Hello World',
    'image'         => 'http://static01.nyt.com/images/2015/02/19/arts/international/19iht-btnumbers19A/19iht-btnumbers19A-facebookJumbo-v2.jpg',
    'author'        => 'Set Kyar Wa Lar'
])

Example

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    @include('social::meta-article', [
        'title'         => 'Hello World',
        'description'   => 'Welcome from Hello World',
        'image'         => 'http://static01.nyt.com/images/2015/02/19/arts/international/19iht-btnumbers19A/19iht-btnumbers19A-facebookJumbo-v2.jpg',
        'author'        => 'Set Kyar Wa Lar'
    ])
    <title>Document</title>
</head>
<body>

</body>
</html>

Example Appearance

Facebook Appearance

Facebook Apperance, (*7)

Twitter Appearance

Twitter Apperance, (*8)

Google+ Appearance

Google+ Apperance, (*9)

Contributing

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

Thanks

The Versions

18/11 2016

dev-master

9999999-dev https://github.com/setkyar/laravel-social-share-cards

Easy Social Cards

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Set Kyar Wa Lar

setkyar laravel-social-share-cards

18/11 2016

1.1

1.1.0.0 https://github.com/setkyar/laravel-social-share-cards

Easy Social Cards

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Set Kyar Wa Lar

setkyar laravel-social-share-cards

18/11 2016

1.0

1.0.0.0 https://github.com/setkyar/laravel-social-share-cards

Easy Social Cards

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Set Kyar Wa Lar

setkyar laravel-social-share-cards