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\Console\Input\InputOption; use Composer\Json\JsonFile; use Composer\Package\CompletePackageInterface; use Composer\Plugin\CommandEvent; use Composer\Plugin\PluginEvents; use Composer\Repository\RepositoryUtils; use Composer\Util\PackageInfo; use Composer\Util\PackageSorter; use Symfony\Component\Console\Formatter\OutputFormatter; use Symfony\Component\Console\Helper\Table; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Style\SymfonyStyle; /** * @author BenoƮt Merlet <benoit.merlet@gmail.com> */ class LicensesCommand extends BaseCommand { protected function configure(): void { $this ->setName('licenses') ->setDescription('Shows information about licenses of dependencies') ->setDefinition([ new InputOption('format', 'f', InputOption::VALUE_REQUIRED, 'Format of the output: text, json or summary', 'text', ['text', 'json', 'summary']), new InputOption('no-dev', null, InputOption::VALUE_NONE, 'Disables search in require-dev packages.'), ]) ->setHelp( <<<EOT The license command displays detailed information about the licenses of the installed dependencies. Read more at https://getcomposer.org/doc/03-cli.md#licenses EOT ) ; } protected function execute(InputInterface $input, OutputInterface $output): int { $composer = $this->requireComposer(); $commandEvent = new CommandEvent(PluginEvents::COMMAND, 'licenses', $input, $output); $composer->getEventDispatcher()->dispatch($commandEvent->getName(), $commandEvent); $root = $composer->getPackage(); $repo = $composer->getRepositoryManager()->getLocalRepository(); if ($input->getOption('no-dev')) { $packages = RepositoryUtils::filterRequiredPackages($repo->getPackages(), $root); } else { $packages = $repo->getPackages(); } $packages = PackageSorter::sortPackagesAlphabetically($packages); $io = $this->getIO(); switch ($format = $input->getOption('format')) { case 'text': $io->write('Name: <comment>'.$root->getPrettyName().'</comment>'); $io->write('Version: <comment>'.$root->getFullPrettyVersion().'</comment>'); $io->write('Licenses: <comment>'.(implode(', ', $root->getLicense()) ?: 'none').'</comment>'); $io->write('Dependencies:'); $io->write(''); $table = new Table($output); $table->setStyle('compact'); $table->setHeaders(['Name', 'Version', 'Licenses']); foreach ($packages as $package) { $link = PackageInfo::getViewSourceOrHomepageUrl($package); if ($link !== null) { $name = '<href='.OutputFormatter::escape($link).'>'.$package->getPrettyName().'</>'; } else { $name = $package->getPrettyName(); } $table->addRow([ $name, $package->getFullPrettyVersion(), implode(', ', $package instanceof CompletePackageInterface ? $package->getLicense() : []) ?: 'none', ]); } $table->render(); break; case 'json': $dependencies = []; foreach ($packages as $package) { $dependencies[$package->getPrettyName()] = [ 'version' => $package->getFullPrettyVersion(), 'license' => $package instanceof CompletePackageInterface ? $package->getLicense() : [], ]; } $io->write(JsonFile::encode([ 'name' => $root->getPrettyName(), 'version' => $root->getFullPrettyVersion(), 'license' => $root->getLicense(), 'dependencies' => $dependencies, ])); break; case 'summary': $usedLicenses = []; foreach ($packages as $package) { $licenses = $package instanceof CompletePackageInterface ? $package->getLicense() : []; if (count($licenses) === 0) { $licenses[] = 'none'; } foreach ($licenses as $licenseName) { if (!isset($usedLicenses[$licenseName])) { $usedLicenses[$licenseName] = 0; } $usedLicenses[$licenseName]++; } } // Sort licenses so that the most used license will appear first arsort($usedLicenses, SORT_NUMERIC); $rows = []; foreach ($usedLicenses as $usedLicense => $numberOfDependencies) { $rows[] = [$usedLicense, $numberOfDependencies]; } $symfonyIo = new SymfonyStyle($input, $output); $symfonyIo->table( ['License', 'Number of dependencies'], $rows ); break; default: throw new \RuntimeException(sprintf('Unsupported format "%s". See help for supported formats.', $format)); } return 0; } }