PHP Package: psr-discovery/discovery

PHP library for PSR-compliant discovery mechanisms providing dynamic class loading and introspection capabilities.

Current Version: 1.2.0
Last Updated: 2024-12-05
PHP Requirement: ^8.2
Dependencies:
php-fig/container
php-fig/log
phpunit/phpunit
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

The Discovery PHP library offers a comprehensive framework for automating class discovery, enabling dynamic loading, and facilitating introspection tasks according to PSR standards. With robust features and an intuitive interface, it streamlines development processes and enhances code modularity and scalability. Embrace the power of efficient class management with Discovery.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 1.2.0

Download Download v1.2.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/psr-discovery/discovery/1.2.0/loader.php';
require_once 'libs/php-fig/container/{lib_version}/loader.php';
require_once 'libs/php-fig/log/3.0.2/loader.php';
require_once 'libs/sebastianbergmann/phpunit/12.4.4/loader.php';

use Psr\Discovery\Discovery;
use Psr\Container\Container;
use PHPUnit\Framework\TestCase;

$obj = new Discovery();
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.