Download the PHP package i-kadar/cascading-deletion without Composer

On this page you can find all versions of the php package i-kadar/cascading-deletion. 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 cascading-deletion

Cascading Deletion Service

Overview

The Cascading Deletion Service is designed to manage and execute the deletion of entities within a system, focusing on the interdependencies between entities. The system is structured to ensure data integrity by comprehensively checking the eligibility for deletion of both primary and dependent entities, and by managing the cascading effect of deletions across related entities.

Core Components

1. CascadingDeletionService (CascadingDeletionService.php)

Purpose: Manages the initiation and orchestration of the cascading deletion process. Provides a simple interface for deleting entities within the system.

Key Functionalities:

2. Entity Repository (EntityRepository.php and EntityRepositoryInterface.php)

EntityRepository: An abstract class implementing EntityRepositoryInterface. Provides the core logic for managing the deletion of entities. Subclasses implement the abstract methods to handle the specific relationships between entities. EntityRepositoryInterface: Defines the contract for repository operations. Outlines essential methods for managing deletion targets.

Key Functionalities:

Unalterable Core Logic:

3. Deletion Targets (DeletionTargetInterface.php and DeletionTarget.php)

DeletionTargetInterface: Outlines essential methods for managing deletion targets. DeletionTarget: Implements DeletionTargetInterface, representing entities within the system.

Properties and Methods:

System Functionality

The system is tailored to handle complex entity relationships, especially focusing on scenarios where deleting one entity triggers the deletion of related entities. The designation of certain methods as final in EntityRepository underscores the system's commitment to maintaining a consistent and robust deletion process. This cascading deletion process is meticulously designed to maintain data integrity, handle dependencies efficiently, and avoid issues like infinite loops in dependency checks.

Usage Examples of CascadingDeletionService::deleteEntity Method

Example of Implementing a Basic Repository Class

In the following example, we demonstrate how to create a simple repository class that extends the abstract EntityRepository. This class is responsible for managing a specific type of entity in the context of cascading deletions.

BasicEntityRepository Example:

Example: Deleting an Entity from the BasicEntityRepository


All versions of cascading-deletion with dependencies

PHP Build Version
Package Version
No informations.
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 i-kadar/cascading-deletion contains the following files

Loading the files please wait ....