PHP Package: humbug/php-scoper

PHP library that provides scoping functionality for secure application development, ensuring namespace isolation and preventing naming conflicts.

Current Version: 0.18.16
Last Updated: 2025-01-12
PHP Requirement: ^8.2
Dependencies:
phpunit/phpunit
symfony/console
php-fig/log
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

php-scoper is a versatile PHP library designed to help developers secure their applications through namespace scoping. By isolating namespaces, it reduces the likelihood of naming conflicts and enhances code organization. With a user-friendly interface, it simplifies the scoping process, making it ideal for projects of all sizes.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 0.18.16

Download Download v0.18.16

Code Integration Example

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

<?php
// Example from PHPlibraries.com
require_once 'libs/humbug/php-scoper/0.18.16/loader.php';
require_once 'libs/sebastianbergmann/phpunit/12.4.1/loader.php';
require_once 'libs/symfony/console/7.3.4/loader.php';
require_once 'libs/php-fig/log/3.0.2/loader.php';

use Humbug\PhpScoper\ClassName1;
use PHPUnit\Framework\TestCase;

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