!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/test.gateway.picotech.app/public_html/vendor/moneyphp/money/resources/   drwxr-xr-x
Free 29.25 GB of 117.98 GB (24.8%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     generate-teller-factory.php (2.43 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

require __DIR__.'/../vendor/autoload.php';

use 
Money\Currencies;
use 
Money\Currencies\ISOCurrencies;
use 
Money\Currency;
use 
Money\Formatter\DecimalMoneyFormatter;
use 
Money\Money;
use 
Money\Parser\DecimalMoneyParser;
use 
Money\Teller;

(static function (): 
void {
    
$buffer = <<<'PHP'
<?php

declare(strict_types=1);

namespace Money;

use Money\Currencies\ISOCurrencies;
use Money\Formatter\DecimalMoneyFormatter;
use Money\Parser\DecimalMoneyParser;

use function array_shift;

/**
 * This is a generated file. Do not edit it manually!
 *
PHPDOC
 * @psalm-immutable
 */
trait TellerFactory
{
    /**
     * Convenience factory method for a Teller object.
     *
     * <code>
     * $teller = Teller::USD();
     * </code>
     *
     * @param non-empty-string          $method
     * @param array{0?: Money::ROUND_*} $arguments
     */
    public static function __callStatic(string $method, array $arguments): Teller
    {
        $currency     = new Currency($method);
        $currencies   = new ISOCurrencies();
        $parser       = new DecimalMoneyParser($currencies);
        $formatter    = new DecimalMoneyFormatter($currencies);
        $roundingMode = empty($arguments)
            ? Money::ROUND_HALF_UP
            : (int) array_shift($arguments);

        return new Teller(
            $currency,
            $parser,
            $formatter,
            $roundingMode
        );
    }
}

PHP;

    
$methodBuffer '';

    
$iterator = new Currencies\AggregateCurrencies([
        new 
Currencies\ISOCurrencies(),
        new 
Currencies\BitcoinCurrencies(),
        new 
Currencies\CryptoCurrencies(),
    ]);

    
$currencies array_unique([...$iterator]);
    
usort($currencies, static fn (Currency $aCurrency $b): int => strcmp($a->getCode(), $b->getCode()));

    
/** @var Currency[] $currencies */
    
foreach ($currencies as $currency) {
        
$code $currency->getCode();
        if (
is_numeric($code[0])) {
            
preg_match('/^([0-9]*)(.*?)$/'$code$extracted);

            
$formatter = new \NumberFormatter('en'\NumberFormatter::SPELLOUT);
            
$code strtoupper(preg_replace('/\s+/'''$formatter->format($extracted[1])) . $extracted[2]);
        }

        
$methodBuffer .= sprintf(" * @method static Teller %s(int \$roundingMode = Money::ROUND_HALF_UP)\n"$code);
    }

    
$buffer str_replace('PHPDOC'rtrim($methodBuffer), $buffer);

    
file_put_contents(__DIR__.'/../src/TellerFactory.php'$buffer);
})();

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0043 ]--