Linux ubuntu22 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64
nginx/1.18.0
: 128.199.27.159 | : 216.73.216.1
Cant Read [ /etc/named.conf ]
8.1.31
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
php /
Composer /
Command /
[ HOME SHELL ]
Name
Size
Permission
Action
AboutCommand.php
1.28
KB
-rw-r--r--
ArchiveCommand.php
7.61
KB
-rw-r--r--
BaseCommand.php
9.54
KB
-rw-r--r--
BaseDependencyCommand.php
8.88
KB
-rw-r--r--
CheckPlatformReqsCommand.php
7.82
KB
-rw-r--r--
ClearCacheCommand.php
2.24
KB
-rw-r--r--
ConfigCommand.php
34.37
KB
-rw-r--r--
CreateProjectCommand.php
23.64
KB
-rw-r--r--
DependsCommand.php
1.78
KB
-rw-r--r--
DiagnoseCommand.php
27.21
KB
-rw-r--r--
DumpAutoloadCommand.php
5.16
KB
-rw-r--r--
ExecCommand.php
3.46
KB
-rw-r--r--
FundCommand.php
5.29
KB
-rw-r--r--
GlobalCommand.php
3.91
KB
-rw-r--r--
HomeCommand.php
5.51
KB
-rw-r--r--
InitCommand.php
43.4
KB
-rw-r--r--
InstallCommand.php
7.55
KB
-rw-r--r--
LicensesCommand.php
7.08
KB
-rw-r--r--
OutdatedCommand.php
4.96
KB
-rw-r--r--
ProhibitsCommand.php
1.96
KB
-rw-r--r--
ReinstallCommand.php
8.35
KB
-rw-r--r--
RemoveCommand.php
14.04
KB
-rw-r--r--
RequireCommand.php
22.24
KB
-rw-r--r--
RunScriptCommand.php
5.1
KB
-rw-r--r--
ScriptAliasCommand.php
2.15
KB
-rw-r--r--
SearchCommand.php
4.69
KB
-rw-r--r--
SelfUpdateCommand.php
25.17
KB
-rw-r--r--
ShowCommand.php
54.07
KB
-rw-r--r--
StatusCommand.php
8.3
KB
-rw-r--r--
SuggestsCommand.php
3.99
KB
-rw-r--r--
UpdateCommand.php
16.38
KB
-rw-r--r--
ValidateCommand.php
10.96
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : CheckPlatformReqsCommand.php
<?php /* * This file is part of Composer. * * (c) Nils Adermann <naderman@naderman.de> * Jordi Boggiano <j.boggiano@seld.be> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Composer\Command; use Composer\Package\Link; use Composer\Semver\Constraint\Constraint; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; use Composer\Repository\PlatformRepository; use Composer\Repository\RootPackageRepository; use Composer\Repository\InstalledRepository; class CheckPlatformReqsCommand extends BaseCommand { /** * @return void */ protected function configure() { $this->setName('check-platform-reqs') ->setDescription('Check that platform requirements are satisfied.') ->setDefinition(array( new InputOption('no-dev', null, InputOption::VALUE_NONE, 'Disables checking of require-dev packages requirements.'), new InputOption('lock', null, InputOption::VALUE_NONE, 'Checks requirements only from the lock file, not from installed packages.'), )) ->setHelp( <<<EOT Checks that your PHP and extensions versions match the platform requirements of the installed packages. Unlike update/install, this command will ignore config.platform settings and check the real platform packages so you can be certain you have the required platform dependencies. <info>php composer.phar check-platform-reqs</info> EOT ); } /** * @return int */ protected function execute(InputInterface $input, OutputInterface $output) { $composer = $this->getComposer(); $requires = array(); $removePackages = array(); if ($input->getOption('lock')) { $this->getIO()->writeError('<info>Checking '.($input->getOption('no-dev') ? 'non-dev ' : '').'platform requirements using the lock file</info>'); $installedRepo = $composer->getLocker()->getLockedRepository(!$input->getOption('no-dev')); } else { $installedRepo = $composer->getRepositoryManager()->getLocalRepository(); // fallback to lockfile if installed repo is empty if (!$installedRepo->getPackages()) { $this->getIO()->writeError('<warning>No vendor dir present, checking '.($input->getOption('no-dev') ? 'non-dev ' : '').'platform requirements from the lock file</warning>'); $installedRepo = $composer->getLocker()->getLockedRepository(!$input->getOption('no-dev')); } else { if ($input->getOption('no-dev')) { $removePackages = $installedRepo->getDevPackageNames(); } $this->getIO()->writeError('<info>Checking '.($input->getOption('no-dev') ? 'non-dev ' : '').'platform requirements for packages in the vendor dir</info>'); } } if (!$input->getOption('no-dev')) { $requires += $composer->getPackage()->getDevRequires(); } foreach ($requires as $require => $link) { $requires[$require] = array($link); } $installedRepo = new InstalledRepository(array($installedRepo, new RootPackageRepository($composer->getPackage()))); foreach ($installedRepo->getPackages() as $package) { if (in_array($package->getName(), $removePackages, true)) { continue; } foreach ($package->getRequires() as $require => $link) { $requires[$require][] = $link; } } ksort($requires); $installedRepo->addRepository(new PlatformRepository(array(), array())); $results = array(); $exitCode = 0; /** * @var Link[] $links */ foreach ($requires as $require => $links) { if (PlatformRepository::isPlatformPackage($require)) { $candidates = $installedRepo->findPackagesWithReplacersAndProviders($require); if ($candidates) { $reqResults = array(); foreach ($candidates as $candidate) { $candidateConstraint = null; if ($candidate->getName() === $require) { $candidateConstraint = new Constraint('=', $candidate->getVersion()); $candidateConstraint->setPrettyString($candidate->getPrettyVersion()); } else { foreach (array_merge($candidate->getProvides(), $candidate->getReplaces()) as $link) { if ($link->getTarget() === $require) { $candidateConstraint = $link->getConstraint(); break; } } } // safety check for phpstan, but it should not be possible to get a candidate out of findPackagesWithReplacersAndProviders without a constraint matching $require if (!$candidateConstraint) { continue; } foreach ($links as $link) { if (!$link->getConstraint()->matches($candidateConstraint)) { $reqResults[] = array( $candidate->getName() === $require ? $candidate->getPrettyName() : $require, $candidateConstraint->getPrettyString(), $link, '<error>failed</error>'.($candidate->getName() === $require ? '' : ' <comment>provided by '.$candidate->getPrettyName().'</comment>'), ); // skip to next candidate continue 2; } } $results[] = array( $candidate->getName() === $require ? $candidate->getPrettyName() : $require, $candidateConstraint->getPrettyString(), null, '<info>success</info>'.($candidate->getName() === $require ? '' : ' <comment>provided by '.$candidate->getPrettyName().'</comment>'), ); // candidate matched, skip to next requirement continue 2; } // show the first error from every failed candidate $results = array_merge($results, $reqResults); $exitCode = max($exitCode, 1); continue; } $results[] = array( $require, 'n/a', $links[0], '<error>missing</error>', ); $exitCode = max($exitCode, 2); } } $this->printTable($output, $results); return $exitCode; } /** * @param mixed[] $results * * @return void */ protected function printTable(OutputInterface $output, $results) { $rows = array(); foreach ($results as $result) { /** * @var Link|null $link */ list($platformPackage, $version, $link, $status) = $result; $rows[] = array( $platformPackage, $version, $link ? sprintf('%s %s %s (%s)', $link->getSource(), $link->getDescription(), $link->getTarget(), $link->getPrettyConstraint()) : '', $status, ); } $this->renderTable($rows, $output); } }
Close