Download the PHP package bernhardh/nova-redirect-tester without Composer

On this page you can find all versions of the php package bernhardh/nova-redirect-tester. 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 nova-redirect-tester

A Laravel Nova tool for testing redirects

This is a laravel nova tool, where you can test visually if all your redirects are working as expected.

Animate

Table of content

  1. Why should I use this package?
  2. Installation
  3. Create tests
  4. Editing Groups
  5. Examples

Why should I use this package?

If you have a lot of old urls you have redirected to new ones (for example you changed the url structure, migrated to laravel or introduced new language specific urls) and you are using Laravel Nova, then this package can help you have an eye on these redirects.

This is especially important to keep your visitors and SEO power by preventing broken redirects.

Installation

You can install the package in to a Laravel app that uses Nova via composer:

After that, run the builtin migrations, which will create 2 tables:

Now you must register the tool with Nova. This is done in the tools method of the NovaServiceProvider.

Now you will find the Redirect Tester menu entry in your Nova sidebar. Right now, there are no tests, please read on to find out, how to create new tests.

Create tests

You can either fill up the two database tables nova_redirect_tester and nova_redirect_tester_groups by yourself (for example with phpmyadmin) or you use Nova to manage this. The easiest way to to this, is to create the two Nova resources, by extending the package nova resources:

Now you can add a new test like any other nova resource.

Editing Groups

The Group resource is hidden by default in your sidebar. You can change that, by adding public static $displayInNavigation = true; to your App\Nova\RedirectTestGroup class.

Examples

If you wanna try it out, just add the following routes to your routes/web.php:

and then add the following Redirect Tests in nova:

Group Status Code Url From Url To
Articles 301 /cms/categories/articles/my-first-article.htm /articles/my-first-article
Articles 301 /cms/categories/articles/the-2-article.htm /articles/the-2-article
Articles 301 /static-site/prices /articles/prices
Default 404 /this-url-does-not-exist
Default 301 /my-old-url /this-test-will-fail

This will result in the following:

image


All versions of nova-redirect-tester with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.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 bernhardh/nova-redirect-tester contains the following files

Loading the files please wait ....