PHP Package: spiral/interceptors

Spiral interceptors provide seamless control flow for PHP applications, enhancing flexibility and performance.

Current Version: 3.14.0
Last Updated: Date not available
PHP Requirement: >=8.1
Dependencies:
spiral/container
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

Spiral interceptors are a powerful tool in PHP development, allowing developers to intercept method calls and modify behavior dynamically. With their ability to intercept and modify method parameters and return values, interceptors can be used to implement cross-cutting concerns, logging, caching, and more. By leveraging interceptors, developers can enhance the modularity and reusability of their codebase while keeping the application's core logic clean and concise.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 3.14.0

Download Download v3.14.0

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/spiral/interceptors/3.14.0/loader.php';
require_once 'libs/spiral/container/{lib_version}/loader.php';

use Spiral\Interceptors\Tests\InterceptorTest;

$obj = new InterceptorTest();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.