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\IO\IOInterface; use Composer\Config; use Composer\Composer; use Composer\Package\BasePackage; use Composer\Package\CompletePackageInterface; use Composer\Package\Version\VersionParser; use Composer\Package\Version\VersionSelector; use Composer\Pcre\Preg; use Composer\Repository\CompositeRepository; use Composer\Repository\RepositoryFactory; use Composer\Repository\RepositorySet; use Composer\Script\ScriptEvents; use Composer\Plugin\CommandEvent; use Composer\Plugin\PluginEvents; use Composer\Util\Filesystem; use Composer\Util\Loop; use Composer\Util\Platform; use Composer\Util\ProcessExecutor; use Composer\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Composer\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; /** * Creates an archive of a package for distribution. * * @author Nils Adermann <naderman@naderman.de> */ class ArchiveCommand extends BaseCommand { use CompletionTrait; private const FORMATS = ['tar', 'tar.gz', 'tar.bz2', 'zip']; protected function configure(): void { $this ->setName('archive') ->setDescription('Creates an archive of this composer package') ->setDefinition([ new InputArgument('package', InputArgument::OPTIONAL, 'The package to archive instead of the current project', null, $this->suggestAvailablePackage()), new InputArgument('version', InputArgument::OPTIONAL, 'A version constraint to find the package to archive'), new InputOption('format', 'f', InputOption::VALUE_REQUIRED, 'Format of the resulting archive: tar, tar.gz, tar.bz2 or zip (default tar)', null, self::FORMATS), new InputOption('dir', null, InputOption::VALUE_REQUIRED, 'Write the archive to this directory'), new InputOption('file', null, InputOption::VALUE_REQUIRED, 'Write the archive with the given file name.' .' Note that the format will be appended.'), new InputOption('ignore-filters', null, InputOption::VALUE_NONE, 'Ignore filters when saving package'), ]) ->setHelp( <<<EOT The <info>archive</info> command creates an archive of the specified format containing the files and directories of the Composer project or the specified package in the specified version and writes it to the specified directory. <info>php composer.phar archive [--format=zip] [--dir=/foo] [--file=filename] [package [version]]</info> Read more at https://getcomposer.org/doc/03-cli.md#archive EOT ) ; } protected function execute(InputInterface $input, OutputInterface $output): int { $composer = $this->tryComposer(); $config = null; if ($composer) { $config = $composer->getConfig(); $commandEvent = new CommandEvent(PluginEvents::COMMAND, 'archive', $input, $output); $eventDispatcher = $composer->getEventDispatcher(); $eventDispatcher->dispatch($commandEvent->getName(), $commandEvent); $eventDispatcher->dispatchScript(ScriptEvents::PRE_ARCHIVE_CMD); } if (!$config) { $config = Factory::createConfig(); } $format = $input->getOption('format') ?? $config->get('archive-format'); $dir = $input->getOption('dir') ?? $config->get('archive-dir'); $returnCode = $this->archive( $this->getIO(), $config, $input->getArgument('package'), $input->getArgument('version'), $format, $dir, $input->getOption('file'), $input->getOption('ignore-filters'), $composer ); if (0 === $returnCode && $composer) { $composer->getEventDispatcher()->dispatchScript(ScriptEvents::POST_ARCHIVE_CMD); } return $returnCode; } /** * @throws \Exception */ protected function archive(IOInterface $io, Config $config, ?string $packageName, ?string $version, string $format, string $dest, ?string $fileName, bool $ignoreFilters, ?Composer $composer): int { if ($composer) { $archiveManager = $composer->getArchiveManager(); } else { $factory = new Factory; $process = new ProcessExecutor(); $httpDownloader = Factory::createHttpDownloader($io, $config); $downloadManager = $factory->createDownloadManager($io, $config, $httpDownloader, $process); $archiveManager = $factory->createArchiveManager($config, $downloadManager, new Loop($httpDownloader, $process)); } if ($packageName) { $package = $this->selectPackage($io, $packageName, $version); if (!$package) { return 1; } } else { $package = $this->requireComposer()->getPackage(); } $io->writeError('<info>Creating the archive into "'.$dest.'".</info>'); $packagePath = $archiveManager->archive($package, $format, $dest, $fileName, $ignoreFilters); $fs = new Filesystem; $shortPath = $fs->findShortestPath(Platform::getCwd(), $packagePath, true); $io->writeError('Created: ', false); $io->write(strlen($shortPath) < strlen($packagePath) ? $shortPath : $packagePath); return 0; } /** * @return (BasePackage&CompletePackageInterface)|false */ protected function selectPackage(IOInterface $io, string $packageName, ?string $version = null) { $io->writeError('<info>Searching for the specified package.</info>'); if ($composer = $this->tryComposer()) { $localRepo = $composer->getRepositoryManager()->getLocalRepository(); $repo = new CompositeRepository(array_merge([$localRepo], $composer->getRepositoryManager()->getRepositories())); $minStability = $composer->getPackage()->getMinimumStability(); } else { $defaultRepos = RepositoryFactory::defaultReposWithDefaultManager($io); $io->writeError('No composer.json found in the current directory, searching packages from ' . implode(', ', array_keys($defaultRepos))); $repo = new CompositeRepository($defaultRepos); $minStability = 'stable'; } if ($version !== null && Preg::isMatchStrictGroups('{@(stable|RC|beta|alpha|dev)$}i', $version, $match)) { $minStability = $match[1]; $version = (string) substr($version, 0, -strlen($match[0])); } $repoSet = new RepositorySet($minStability); $repoSet->addRepository($repo); $parser = new VersionParser(); $constraint = $version !== null ? $parser->parseConstraints($version) : null; $packages = $repoSet->findPackages(strtolower($packageName), $constraint); if (count($packages) > 1) { $versionSelector = new VersionSelector($repoSet); $package = $versionSelector->findBestCandidate(strtolower($packageName), $version, $minStability); if ($package === false) { $package = reset($packages); } $io->writeError('<info>Found multiple matches, selected '.$package->getPrettyString().'.</info>'); $io->writeError('Alternatives were '.implode(', ', array_map(static function ($p): string { return $p->getPrettyString(); }, $packages)).'.'); $io->writeError('<comment>Please use a more specific constraint to pick a different package.</comment>'); } elseif (count($packages) === 1) { $package = reset($packages); $io->writeError('<info>Found an exact match '.$package->getPrettyString().'.</info>'); } else { $io->writeError('<error>Could not find a package matching '.$packageName.'.</error>'); return false; } if (!$package instanceof CompletePackageInterface) { throw new \LogicException('Expected a CompletePackageInterface instance but found '.get_class($package)); } if (!$package instanceof BasePackage) { throw new \LogicException('Expected a BasePackage instance but found '.get_class($package)); } return $package; } }