Download the PHP package intelfric/laravel-encrypted-route without Composer

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

Laravel Encrypted Route

Latest Version on Packagist Total Downloads

A Laravel package that encrypts full route URLs for enhanced security and obfuscation. Transform your readable URLs into encrypted, random-looking paths that maintain full functionality while hiding your application's structure.

Features

Example

Transform this:

Into this:

Installation

Install the package via Composer:

Laravel Auto-Discovery

Laravel 5.5+ automatically discovers the package. For older versions, add the service provider:

Publish Configuration

Configuration

The configuration file config/encryptedroute.php provides several options:

Usage

Basic Usage

Using Helper Function

Using Facade

Using Route Macro

Advanced Usage

Temporary URLs with Expiry

URL Validation

Using the Facade for Complex Operations

How It Works

  1. URL Generation: When you call encrypted_url(), the package:

    • Validates the route exists
    • Encrypts the route name and parameters using Laravel's encryption
    • Generates a URL with the encrypted data
  2. URL Resolution: When a user visits an encrypted URL:

    • The package decrypts the path
    • Validates the route and checks expiry
    • Either redirects to the original route or dispatches it internally
  3. Security: All encryption uses Laravel's built-in encryption system, ensuring your URLs are secure and tamper-proof.

Configuration Options

Route Behavior

Control how encrypted routes are handled:

URL Expiry

Set default expiry for all encrypted URLs:

Route Restrictions

Control which routes can be encrypted:

Performance

Enable caching for better performance:

Environment Variables

You can configure the package using environment variables:

Use Cases

1. Admin Panel Security

Hide admin routes from being easily discovered:

2. Temporary File Downloads

Create expiring download links:

3. Email Links

Generate secure links for emails:

4. API Endpoints

Obfuscate API endpoint structures:

Error Handling

The package handles various error scenarios:

Requirements

Testing

The package includes comprehensive tests. To run them:

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Security

If you discover any security vulnerabilities, please email [email protected] instead of using the issue tracker.

License

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

Credits

Changelog

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


Made with ❤️ by Intelfric Tech


All versions of laravel-encrypted-route with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^9.0|^10.0|^11.0|^12.0
illuminate/routing Version ^9.0|^10.0|^11.0|^12.0
illuminate/encryption Version ^9.0|^10.0|^11.0|^12.0
illuminate/http Version ^9.0|^10.0|^11.0|^12.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 intelfric/laravel-encrypted-route contains the following files

Loading the files please wait ...