PHP Libraries › humbug › php-scoper PHP library that provides scoping functionality for secure application development, ensuring namespace isolation and preventing naming conflicts.
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.
Classes: Humbug\PhpScoper\Container Humbug\PhpScoper\Patcher\SymfonyParentTraitPatcher Humbug\PhpScoper\Patcher\Patcher Humbug\PhpScoper\Patcher\PatcherChain Humbug\PhpScoper\Patcher\SymfonyPatcher Humbug\PhpScoper\Patcher\NullPatcher Humbug\PhpScoper\Patcher\ComposerPatcher Humbug\PhpScoper\NotInstantiable Humbug\PhpScoper\Symbol\SymbolsRegistry Humbug\PhpScoper\Symbol\SymbolRegistry Humbug\PhpScoper\Symbol\Reflector Humbug\PhpScoper\Symbol\EnrichedReflector Humbug\PhpScoper\Symbol\NamespaceRegistry Humbug\PhpScoper\Symbol\EnrichedReflectorFactory Humbug\PhpScoper\Console\ConsoleScoper Humbug\PhpScoper\Console\ConfigLoader Humbug\PhpScoper\Console\InputOption\PhpVersionInputOption Humbug\PhpScoper\Console\Application Humbug\PhpScoper\Console\Command\AddPrefixCommand Humbug\PhpScoper\Console\Command\InspectSymbolCommand Humbug\PhpScoper\Console\Command\InspectCommand Humbug\PhpScoper\Console\Command\ChangeableDirectory Humbug\PhpScoper\Console\Command\InitCommand Humbug\PhpScoper\Console\ScoperLogger Humbug\PhpScoper\Console\File Humbug\PhpScoper\Configuration\ConfigurationFactory Humbug\PhpScoper\Configuration\ConfigurationKeys Humbug\PhpScoper\Configuration\SymbolsConfiguration Humbug\PhpScoper\Configuration\PrefixValidator Humbug\PhpScoper\Configuration\RegexChecker Humbug\PhpScoper\Configuration\Prefix Humbug\PhpScoper\Configuration\Configuration Humbug\PhpScoper\Configuration\SymbolsConfigurationFactory Humbug\PhpScoper\Configuration\Throwable\InvalidConfiguration Humbug\PhpScoper\Configuration\Throwable\InvalidConfigurationValue Humbug\PhpScoper\Configuration\Throwable\UnknownConfigurationKey Humbug\PhpScoper\Configuration\Throwable\InvalidConfigurationFile Humbug\PhpScoper\Autoload\ScoperAutoloadGenerator Humbug\PhpScoper\Autoload\ComposerFileHasher Humbug\PhpScoper\PhpParser\NodeTraverser Humbug\PhpScoper\PhpParser\TraverserFactory Humbug\PhpScoper\PhpParser\UnexpectedParsingScenario Humbug\PhpScoper\PhpParser\Printer\StandardPrinter Humbug\PhpScoper\PhpParser\Printer\PrinterFactory Humbug\PhpScoper\PhpParser\Printer\Printer Humbug\PhpScoper\PhpParser\Printer\StandardPrinterFactory Humbug\PhpScoper\PhpParser\StringNodePrefixer Humbug\PhpScoper\PhpParser\UseStmtName Humbug\PhpScoper\PhpParser\NodeVisitor\NewdocPrefixer Humbug\PhpScoper\PhpParser\NodeVisitor\NameStmtPrefixer Humbug\PhpScoper\PhpParser\NodeVisitor\ClassAliasStmtAppender Humbug\PhpScoper\PhpParser\NodeVisitor\ConstStmtReplacer Humbug\PhpScoper\PhpParser\NodeVisitor\ExcludedFunctionExistsEnricher Humbug\PhpScoper\PhpParser\NodeVisitor\AttributeAppender\ParentNodeAppender Humbug\PhpScoper\PhpParser\NodeVisitor\AttributeAppender\IdentifierNameAppender Humbug\PhpScoper\PhpParser\NodeVisitor\FunctionIdentifierRecorder Humbug\PhpScoper\PhpParser\NodeVisitor\UseStmt\UseStmtManipulator Humbug\PhpScoper\PhpParser\NodeVisitor\UseStmt\UseStmtPrefixer Humbug\PhpScoper\PhpParser\NodeVisitor\UseStmt\UseStmtCollector Humbug\PhpScoper\PhpParser\NodeVisitor\UseStmt\UseStmtCollection Humbug\PhpScoper\PhpParser\NodeVisitor\EvalPrefixer Humbug\PhpScoper\PhpParser\NodeVisitor\ClassIdentifierRecorder Humbug\PhpScoper\PhpParser\NodeVisitor\Resolver\IdentifierResolver Humbug\PhpScoper\PhpParser\NodeVisitor\Resolver\OriginalNameResolver Humbug\PhpScoper\PhpParser\NodeVisitor\MultiConstStmtReplacer Humbug\PhpScoper\PhpParser\NodeVisitor\StringScalarPrefixer Humbug\PhpScoper\PhpParser\NodeVisitor\NamespaceStmt\NamespaceStmtPrefixer Humbug\PhpScoper\PhpParser\NodeVisitor\NamespaceStmt\NamespaceManipulator Humbug\PhpScoper\PhpParser\NodeVisitor\NamespaceStmt\NamespaceStmtCollection Humbug\PhpScoper\PhpParser\NodeVisitor\ExcludedFunctionExistsStringNodeStack Humbug\PhpScoper\PhpParser\Parser\StandardParserFactory Humbug\PhpScoper\PhpParser\Parser\ParserFactory Humbug\PhpScoper\PhpParser\Node\NameFactory Humbug\PhpScoper\PhpParser\Node\NamedIdentifier Humbug\PhpScoper\PhpParser\Node\FullyQualifiedFactory Humbug\PhpScoper\PhpParser\Node\ClassAliasFuncCall Humbug\PhpScoper\Scoper\ScoperFactory Humbug\PhpScoper\Scoper\Composer\JsonFileScoper Humbug\PhpScoper\Scoper\Composer\AutoloadPrefixer Humbug\PhpScoper\Scoper\Composer\InstalledPackagesScoper Humbug\PhpScoper\Scoper\PhpScoper Humbug\PhpScoper\Scoper\Symfony\XmlScoper Humbug\PhpScoper\Scoper\Symfony\YamlScoper Humbug\PhpScoper\Scoper\NullScoper Humbug\PhpScoper\Scoper\Scoper Humbug\PhpScoper\Scoper\SymfonyScoper Humbug\PhpScoper\Scoper\Factory\ScoperFactory Humbug\PhpScoper\Scoper\Factory\StandardScoperFactory Humbug\PhpScoper\Scoper\PatchScoper Humbug\PhpScoper\Throwable\Exception\ParsingException Humbug\PhpScoper\Throwable\Exception\RuntimeException Close 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);
?>
Report a broken download or code 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.