evabioz / og-middleware by evabioz

Laravel middleware for allow open graph bot visit it
9
0
2
Package Data
Maintainer Username: evabioz
Maintainer Contact: evabioz@gmail.com (Dennis Lin)
Package Create Date: 2017-07-11
Package Last Update: 2017-07-11
Language: PHP
License: MIT
Last Refreshed: 2025-02-06 03:07:03
Package Statistics
Total Downloads: 9
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

og-middleware

Laravel middleware for allow open graph bot visit it

Requirements

  • PHP 5.5.9+
  • Laravel 5+

Installation

First, pull in the package through Composer.

composer require evabioz/og-middleware

And then include the service provider within app/config/app.php.

'providers' => [
    Evabioz\OGMiddleware\OGMiddlewareServiceProvider::class,
];

Publish the package config file

$ php artisan vendor:publish --provider="Evabioz\OGMiddleware\OGMiddlewareServiceProvider"

Configuration

You can use named route, or asterix syntax (without start and end markers).

// within app/config/og-middleware.php

'route_endpoint_list' => [

    // 'foo/bar' => OpenGraphEndpoint::class

],

License

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