Download the PHP package divineomega/seo-middleware without Composer

On this page you can find all versions of the php package divineomega/seo-middleware. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package seo-middleware

SEO Middleware

This package contains various middleware classes that can be uses with Laravel 5.1 and above to easily add various SEO benefits to your site / web application.

Features

Quick Start

  1. Run composer require divineomega/seo-middleware.
  2. In the $middleware array in your app/Http/Kernel.php file:
    • For HTTP to HTTPS redirects, add \DivineOmega\SeoMiddleware\Http\Middleware\HttpsOnly::class.
    • For removal of www. from requests, add \DivineOmega\SeoMiddleware\Http\Middleware\RemoveWww::class.
  3. Remember to set the APP_ENV variable to prod (in the project's .env file) when the application is running in production. Some middleware will only function when this is set to allow for easier local development.

Available Middleware Classes

Any of these middleware classes can be used globally, by adding them to the $middleware array in apps/Http/Kernel.php file. They can also be used on a per route basis, by adding them to the $routeMiddleware array in the same file and then associated them with a route in your apps/Http/routes.php file.

HttpsOnly Middleware

The HttpsOnly middleware will redirect any HTTP request to their HTTPS equivalents. The security of websites is becoming an ever increasing ranking signal for search engine rankings.

The HTTP to HTTPS redirect will only take place if the application environment is set to prod (production), to aid with local development environments in the setup of HTTPS can be difficult and in many cases unnecessary. Changing this setting can be set in your project's .env file, as shown in the example extracts below.

RemoveWww Middleware

The RemoveWww middleware will check for www. within the URL of any requests made to your web application and then redirect them to a version of the URL without the www. removed. This can be beneficial for SEO purposes by the potential for similar URLs to be indexed with the same content.

This redirect will occur regardless of the application environment (APP_ENV) setting.


All versions of seo-middleware with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.9
laravel/framework Version ^5.0||^6.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package divineomega/seo-middleware contains the following files

Loading the files please wait ....