2017 © Pedro Peláez
 

library seomanager

Seo Manager For Laravel

image

aistglobal/seomanager

Seo Manager For Laravel

  • Thursday, May 31, 2018
  • by aistglobal
  • Repository
  • 0 Watchers
  • 0 Stars
  • 339 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 185 % Grown

The README.md

Manager

Statistics Latest Stable VersionTotal Downloads Total Downloads Latest Unstable Version License Monthly Downloads Daily Downloads composer.lock, (*1)

Structure

src/
tests/
vendor/

Installation

1 - Dependency

The first step is using composer to install the package and automatically update your composer.json file, you can do this by running:, (*2)

composer require aistglobal/seomanager

Note: If you are using Laravel 5.5, the steps 2 and 3, for providers and aliases, are unnecessaries. SeoManager supports Laravel new Package Discovery., (*3)

2 - Provider

You need to update your application configuration in order to register the package so it can be loaded by Laravel, just update your config/app.php file adding the following code at the end of your 'providers' section:, (*4)

config/app.php, (*5)

// file START ommited
    'providers' => [
        // other providers ommited
        Seo\Manager\Providers\ManagerServiceProvider::class,
    ],
// file END ommited

3 - Facade

Facades are not supported in Lumen., (*6)

In order to use the SeoManager facade, you need to register it on the config/app.php file, you can do that the following way:, (*7)

// file START ommited
    'aliases' => [
        // other Facades ommited

             'SeoManager'=>Seo\Manager\Facades\SeoManager::class,

                 ],
// file END ommited

4 Configuration

Publish config

In your terminal type, (*8)

php artisan vendor:publish
php artisan migrate
php artisan storage:link

In seo_manager.php configuration file you can determine the properties of the default values and some behaviors., (*9)

Meta tags Generator

With SEOMeta you can create meta tags to the head, (*10)

  • 1 add {!! SEO::generate(true) !!} to site head, (*11)

  • 2 add {!! SeoManager::generateManager() !!} to site body you can be shut seo manager in admin permission, (*12)

EX

@if(Auth::user->hasRole() == 'admin')
{!! SeoManager::generateManager() !!}
@endif
  • 3 usage in controller
use Seo\Manager\Facades\SeoManager;

class HomeController extends Controller
{
 public function index(Request $request)
    {
       SeoManager::seoManager($request,$keywords, $title, $description, $ogType, $image = null, $locale = null, $locales = null, $canonical = null);

       return view('home');
    }
}

Testing

bash $ composer test, (*13)

Security

If you discover any security related issues, please email vahe.saroyan.web@gmail.com instead of using the issue tracker., (*14)

Credits

License

The MIT License (MIT). Please see License File for more information., (*15)

The Versions

31/05 2018

dev-master

9999999-dev https://github.com/AIST-Global/laravel-seo-manager

Seo Manager For Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

manager twitter laravel5 seo opengraph webmaster meta tags seomanager laravel5.6

31/05 2018

v0.0.3

0.0.3.0 https://github.com/AIST-Global/laravel-seo-manager

Seo Manager For Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

manager twitter laravel5 seo opengraph webmaster meta tags seomanager laravel5.6

31/05 2018

v0.0.2

0.0.2.0 https://github.com/AIST-Global/laravel-seo-manager

Seo Manager For Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

manager twitter laravel5 seo opengraph webmaster meta tags seomanager laravel5.6

15/05 2018

v0.0.1

0.0.1.0 https://github.com/AIST-Global/laravel-seo-manager

Seo Manager For Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

manager twitter laravel5 seo opengraph webmaster meta tags seomanager laravel5.6