Download the PHP package pavelzanek/redirections-laravel without Composer

On this page you can find all versions of the php package pavelzanek/redirections-laravel. 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 redirections-laravel

Redirections for Laravel

Manage your redirects easily. This package provides an easy way to integrate a redirection tool to your Laravel application.

  1. How it works
  2. Installations
    • Migrations
    • Config
  3. Optional
    • Views
    • Translations
  4. Pruning Table
  5. Events
  6. Todos
  7. Testing
  8. Security
  9. Chnagelog
  10. License

How it works

You can manage redirects in your Laravel application. Once installed, you can create, edit, and delete redirects without the need to install additional packages.

There is a lot of consideration for application performance. The tool caches the redirect information, specifically the source url. With each request to the server, the middleware will run, which will determine whether the requested url address is not listed in the cache. If it is found here, a query will be made to the database, which will find the target url address. Meanwhile, an event is dispatched and the associated queued event listener takes care of storing the additional redirection information.

Don't forget to run php artisan queue:work, php artisan horizon or something else what you use.

It may happen that the redirection will be unused over time, or completely unused - and records will also remain in the database. For these cases, you can schedule a command that will automatically take care of cleaning the database from unused records.

Furthermore, the tool includes functions such as easy import and export of redirects, graphs of the usability of redirects, etc.

Installations

Source URLs are cached. Check if your project has cache settings configured. You can use from several prepared drivers (file, Redis, ...). Package also requires PHP 8.1 at least.

Migrations

First of all, generate and customize migration files. It can be useful, if you want to add someting (for example - some realationships).

Config file

Optional

Views

If you want to change design of the app, you can generate views. The tool contains several pre-made templates for different CSS frameworks. Now available:

Translations

Also you can generate translations files.

Pruning table with redirects

You can prune your table with redirects. There is the command for do that:

Alternatively you can schedule this command in your kernel file (app/Console/Kernel.php):

Events

If someone uses a redirect (that is, goes to the source URL), the RedirectWasUsedEvent event is fired. So you can hook your own listener if needed.

Name Class
RedirectWasUsedEvent PavelZanek\RedirectionsLaravel\Events\RedirectWasUsedEvent

Todos

Testing

The tool includes several tests for easier scalability.

Security

If you've found a bug regarding security please mail [email protected] instead of using the issue tracker.

Changelog

Please see CHANGELOG for more information on what has changed recently.

License

Copyright (c) Pavel Zaněk. MIT Licensed, see LICENSE for details.


All versions of redirections-laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
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 pavelzanek/redirections-laravel contains the following files

Loading the files please wait ....