Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.216.28
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
php /
Composer /
Command /
Delete
Unzip
Name
Size
Permission
Date
Action
AboutCommand.php
1.28
KB
-rw-r--r--
2023-03-21 10:50
ArchiveCommand.php
8.5
KB
-rw-r--r--
2023-03-21 10:50
AuditCommand.php
3.26
KB
-rw-r--r--
2023-03-21 10:50
BaseCommand.php
15.25
KB
-rw-r--r--
2026-05-14 09:28
BaseDependencyCommand.php
10.23
KB
-rw-r--r--
2023-03-21 10:50
BumpCommand.php
9.62
KB
-rw-r--r--
2023-03-21 10:50
CheckPlatformReqsCommand.php
8.84
KB
-rw-r--r--
2023-03-21 10:50
ClearCacheCommand.php
3.38
KB
-rw-r--r--
2023-03-21 10:50
CompletionTrait.php
7.92
KB
-rw-r--r--
2023-03-21 10:50
ConfigCommand.php
41.2
KB
-rw-r--r--
2023-03-21 10:50
CreateProjectCommand.php
23.65
KB
-rw-r--r--
2023-03-21 10:50
DependsCommand.php
1.88
KB
-rw-r--r--
2023-03-21 10:50
DiagnoseCommand.php
27.23
KB
-rw-r--r--
2023-03-21 10:50
DumpAutoloadCommand.php
5.48
KB
-rw-r--r--
2023-03-21 10:50
ExecCommand.php
4.62
KB
-rw-r--r--
2023-03-21 10:50
FundCommand.php
5.33
KB
-rw-r--r--
2023-03-21 10:50
GlobalCommand.php
5.53
KB
-rw-r--r--
2023-03-21 10:50
HomeCommand.php
5.41
KB
-rw-r--r--
2023-03-21 10:50
InitCommand.php
23.24
KB
-rw-r--r--
2023-03-21 10:50
InstallCommand.php
7.95
KB
-rw-r--r--
2023-03-21 10:50
LicensesCommand.php
5.79
KB
-rw-r--r--
2023-03-21 10:50
OutdatedCommand.php
5.43
KB
-rw-r--r--
2023-03-21 10:50
PackageDiscoveryTrait.php
20.17
KB
-rw-r--r--
2023-03-21 10:50
ProhibitsCommand.php
2.05
KB
-rw-r--r--
2023-03-21 10:50
ReinstallCommand.php
8.13
KB
-rw-r--r--
2023-03-21 10:50
RemoveCommand.php
14.97
KB
-rw-r--r--
2023-03-21 10:50
RequireCommand.php
29.05
KB
-rw-r--r--
2023-03-21 10:50
RunScriptCommand.php
6.29
KB
-rw-r--r--
2023-03-21 10:50
ScriptAliasCommand.php
2.42
KB
-rw-r--r--
2023-03-21 10:50
SearchCommand.php
5
KB
-rw-r--r--
2023-03-21 10:50
SelfUpdateCommand.php
26.52
KB
-rw-r--r--
2023-03-21 10:50
ShowCommand.php
59.69
KB
-rw-r--r--
2023-03-21 10:50
StatusCommand.php
8.37
KB
-rw-r--r--
2023-03-21 10:50
SuggestsCommand.php
3.97
KB
-rw-r--r--
2023-03-21 10:50
UpdateCommand.php
16.14
KB
-rw-r--r--
2023-03-21 10:50
ValidateCommand.php
9.26
KB
-rw-r--r--
2023-03-21 10:50
Save
Rename
<?php declare(strict_types=1); /* * 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\Composer; use Composer\Package\BasePackage; use Composer\Package\PackageInterface; use Composer\Pcre\Preg; use Composer\Repository\CompositeRepository; use Composer\Repository\InstalledRepository; use Composer\Repository\PlatformRepository; use Composer\Repository\RepositoryInterface; use Composer\Repository\RootPackageRepository; use Symfony\Component\Console\Completion\CompletionInput; /** * Adds completion to arguments and options. * * @internal */ trait CompletionTrait { /** * @see BaseCommand::requireComposer() */ abstract public function requireComposer(?bool $disablePlugins = null, ?bool $disableScripts = null): Composer; /** * Suggestion values for "prefer-install" option * * @return list<string> */ private function suggestPreferInstall(): array { return ['dist', 'source', 'auto']; } /** * Suggest package names from root requirements. */ private function suggestRootRequirement(): \Closure { return function (CompletionInput $input): array { $composer = $this->requireComposer(); return array_merge(array_keys($composer->getPackage()->getRequires()), array_keys($composer->getPackage()->getDevRequires())); }; } /** * Suggest package names from installed. */ private function suggestInstalledPackage(bool $includeRootPackage = true, bool $includePlatformPackages = false): \Closure { return function (CompletionInput $input) use ($includeRootPackage, $includePlatformPackages): array { $composer = $this->requireComposer(); $installedRepos = []; if ($includeRootPackage) { $installedRepos[] = new RootPackageRepository(clone $composer->getPackage()); } $locker = $composer->getLocker(); if ($locker->isLocked()) { $installedRepos[] = $locker->getLockedRepository(true); } else { $installedRepos[] = $composer->getRepositoryManager()->getLocalRepository(); } $platformHint = []; if ($includePlatformPackages) { if ($locker->isLocked()) { $platformRepo = new PlatformRepository([], $locker->getPlatformOverrides()); } else { $platformRepo = new PlatformRepository([], $composer->getConfig()->get('platform')); } if ($input->getCompletionValue() === '') { // to reduce noise, when no text is yet entered we list only two entries for ext- and lib- prefixes $hintsToFind = ['ext-' => 0, 'lib-' => 0, 'php' => 99, 'composer' => 99]; foreach ($platformRepo->getPackages() as $pkg) { foreach ($hintsToFind as $hintPrefix => $hintCount) { if (str_starts_with($pkg->getName(), $hintPrefix)) { if ($hintCount === 0 || $hintCount >= 99) { $platformHint[] = $pkg->getName(); $hintsToFind[$hintPrefix]++; } elseif ($hintCount === 1) { unset($hintsToFind[$hintPrefix]); $platformHint[] = substr($pkg->getName(), 0, max(strlen($pkg->getName()) - 3, strlen($hintPrefix) + 1)).'...'; } continue 2; } } } } else { $installedRepos[] = $platformRepo; } } $installedRepo = new InstalledRepository($installedRepos); return array_merge( array_map(static function (PackageInterface $package) { return $package->getName(); }, $installedRepo->getPackages()), $platformHint ); }; } /** * Suggest package names available on all configured repositories. */ private function suggestAvailablePackage(int $max = 99): \Closure { return function (CompletionInput $input) use ($max): array { if ($max < 1) { return []; } $composer = $this->requireComposer(); $repos = new CompositeRepository($composer->getRepositoryManager()->getRepositories()); $results = []; $showVendors = false; if (!str_contains($input->getCompletionValue(), '/')) { $results = $repos->search('^' . preg_quote($input->getCompletionValue()), RepositoryInterface::SEARCH_VENDOR); $showVendors = true; } // if we get a single vendor, we expand it into its contents already if (\count($results) <= 1) { $results = $repos->search('^'.preg_quote($input->getCompletionValue()), RepositoryInterface::SEARCH_NAME); $showVendors = false; } $results = array_column($results, 'name'); if ($showVendors) { $results = array_map(static function (string $name): string { return $name.'/'; }, $results); // sort shorter results first to avoid auto-expanding the completion to a longer string than needed usort($results, static function (string $a, string $b) { $lenA = \strlen($a); $lenB = \strlen($b); if ($lenA === $lenB) { return $a <=> $b; } return $lenA - $lenB; }); $pinned = []; // ensure if the input is an exact match that it is always in the result set $completionInput = $input->getCompletionValue().'/'; if (false !== ($exactIndex = array_search($completionInput, $results, true))) { $pinned[] = $completionInput; array_splice($results, $exactIndex, 1); } return array_merge($pinned, array_slice($results, 0, $max - \count($pinned))); } return array_slice($results, 0, $max); }; } /** * Suggest package names available on all configured repositories or * platform packages from the ones available on the currently-running PHP */ private function suggestAvailablePackageInclPlatform(): \Closure { return function (CompletionInput $input): array { if (Preg::isMatch('{^(ext|lib|php)(-|$)|^com}', $input->getCompletionValue())) { $matches = $this->suggestPlatformPackage()($input); } else { $matches = []; } return array_merge($matches, $this->suggestAvailablePackage(99 - \count($matches))($input)); }; } /** * Suggest platform packages from the ones available on the currently-running PHP */ private function suggestPlatformPackage(): \Closure { return function (CompletionInput $input): array { $repos = new PlatformRepository([], $this->requireComposer()->getConfig()->get('platform')); $pattern = BasePackage::packageNameToRegexp($input->getCompletionValue().'*'); return array_filter(array_map(static function (PackageInterface $package) { return $package->getName(); }, $repos->getPackages()), static function (string $name) use ($pattern): bool { return Preg::isMatch($pattern, $name); }); }; } }