Download the PHP package zepekegno/obfuscate-id-bundle without Composer

On this page you can find all versions of the php package zepekegno/obfuscate-id-bundle. 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 obfuscate-id-bundle

ObfuscateIdBundle

Latest Stable Version Total Downloads License PHP Version Require

Introduction

ObfuscateIdBundle is a Symfony extension that enables obfuscation of identifiers in URLs and API responses. This new version introduces several improvements, including:

Installation

Install the bundle via Composer:

Then, activate it in bundles.php if not automatically enabled:

Configuration

Add the following configuration in config/packages/obfuscate_id.yaml:

Define the environment variables in .env:

If OBFUSCATE_ID_SECRET is not defined, the bundle will automatically generate a persistent default secret key at installation time. This ensures a consistent encryption key across application restarts and deployments.

The persistent IV will also be generated.

Usage

1. Obfuscation in Controllers

Obfuscation is now automatic, meaning you no longer need to manually annotate route parameters. The bundle will automatically deobfuscate IDs in controller actions:

For entity-based routes, it automatically resolves the entity:

You may also use the annotation explicitly to control deobfuscation:

2. Automatic Obfuscation of IDs in Doctrine

When an entity is loaded, its ID is automatically obfuscated. Add the #[Obfuscate] annotation to the relevant property:

3. Using Obfuscation in Twig

Use the obfuscate filter to mask an identifier in a template:

Doctrine Events

The bundle listens for the following events:

Development

Install dependencies:

Support

If you encounter any issues, open an issue on GitHub. For feature requests, please provide a detailed description of the use case and expected behavior.


All versions of obfuscate-id-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
symfony/framework-bundle Version ^6.0 || ^7.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 zepekegno/obfuscate-id-bundle contains the following files

Loading the files please wait ....