https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /usr/local/wp/utils/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/local/wp/utils/get-package-require-from-composer.php
<?php

$file = $argv[1];
if ( ! file_exists( $file ) ) {
	echo 'File does not exist.';
	exit( 1 );
}

$contents = file_get_contents( $file );
$composer = json_decode( $contents );

if ( empty( $composer ) || ! is_object( $composer ) ) {
	echo 'Invalid composer.json for package.';
	exit( 1 );
}

if ( empty( $composer->autoload->files ) ) {
	echo 'composer.json must specify valid "autoload" => "files"';
	exit( 1 );
}

echo implode( PHP_EOL, $composer->autoload->files );
exit( 0 );

https://t.me/RX1948 - 2025