Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php namespace Webkul\Installer\Database\Seeders\Core; use Illuminate\Database\Seeder; ..
Decoded Output download
<?php
namespace Webkul\Installer\Database\Seeders\Core;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class CurrencyTableSeeder extends Seeder
{
/**
* Currency symbols.
*
* @var array
*/
protected $currencySymbols = [
'AED' => '.',
'ARS' => '$',
'AUD' => 'A$',
'BDT' => '',
'BRL' => 'R$',
'CAD' => 'C$',
'CHF' => 'CHF',
'CLP' => '$',
'CNY' => '',
'COP' => '$',
'CZK' => 'K',
'DKK' => 'kr',
'DZD' => '.',
'EGP' => 'E',
'EUR' => '',
'FJD' => 'FJ$',
'GBP' => '',
'HKD' => 'HK$',
'HUF' => 'Ft',
'IDR' => 'Rp',
'ILS' => '',
'INR' => '',
'JOD' => '.',
'JPY' => '',
'KRW' => '',
'KWD' => '.',
'KZT' => '',
'LBP' => '.',
'LKR' => '',
'LYD' => '.',
'MAD' => '..',
'MUR' => '',
'MXN' => '$',
'MYR' => 'RM',
'NGN' => '',
'NOK' => 'kr',
'NPR' => '',
'NZD' => 'NZ$',
'OMR' => '',
'PAB' => 'B/.',
'PEN' => 'S/',
'PHP' => '',
'PKR' => '',
'PLN' => 'z',
'PYG' => '',
'QAR' => '',
'RON' => 'lei',
'RUB' => '',
'SAR' => '',
'SEK' => 'kr',
'SGD' => 'S$',
'THB' => '',
'TND' => '.',
'TRY' => '',
'TWD' => 'NT$',
'UAH' => '',
'USD' => '$',
'UZS' => '',
'VEF' => 'Bs.F',
'VND' => '',
'XAF' => 'FCFA',
'XOF' => 'CFA',
'ZAR' => 'R',
'ZMW' => 'ZK',
];
/**
* Seed the application's database.
*
* @param array $parameters
* @return void
*/
public function run($parameters = [])
{
DB::table('channels')->delete();
DB::table('currencies')->delete();
$defaultLocale = $parameters['default_locale'] ?? config('app.locale');
$defaultCurrency = $parameters['default_currency'] ?? config('app.currency');
$currencies = $parameters['allowed_currencies'] ?? [$defaultCurrency];
foreach ($currencies as $key => $currency) {
DB::table('currencies')->insert([
[
'id' => $key + 1,
'code' => $currency,
'name' => trans('installer::app.seeders.core.currencies.'.$currency, [], $defaultLocale),
'symbol' => $this->currencySymbols[$currency],
],
]);
}
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Webkul\Installer\Database\Seeders\Core;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class CurrencyTableSeeder extends Seeder
{
/**
* Currency symbols.
*
* @var array
*/
protected $currencySymbols = [
'AED' => '.',
'ARS' => '$',
'AUD' => 'A$',
'BDT' => '',
'BRL' => 'R$',
'CAD' => 'C$',
'CHF' => 'CHF',
'CLP' => '$',
'CNY' => '',
'COP' => '$',
'CZK' => 'K',
'DKK' => 'kr',
'DZD' => '.',
'EGP' => 'E',
'EUR' => '',
'FJD' => 'FJ$',
'GBP' => '',
'HKD' => 'HK$',
'HUF' => 'Ft',
'IDR' => 'Rp',
'ILS' => '',
'INR' => '',
'JOD' => '.',
'JPY' => '',
'KRW' => '',
'KWD' => '.',
'KZT' => '',
'LBP' => '.',
'LKR' => '',
'LYD' => '.',
'MAD' => '..',
'MUR' => '',
'MXN' => '$',
'MYR' => 'RM',
'NGN' => '',
'NOK' => 'kr',
'NPR' => '',
'NZD' => 'NZ$',
'OMR' => '',
'PAB' => 'B/.',
'PEN' => 'S/',
'PHP' => '',
'PKR' => '',
'PLN' => 'z',
'PYG' => '',
'QAR' => '',
'RON' => 'lei',
'RUB' => '',
'SAR' => '',
'SEK' => 'kr',
'SGD' => 'S$',
'THB' => '',
'TND' => '.',
'TRY' => '',
'TWD' => 'NT$',
'UAH' => '',
'USD' => '$',
'UZS' => '',
'VEF' => 'Bs.F',
'VND' => '',
'XAF' => 'FCFA',
'XOF' => 'CFA',
'ZAR' => 'R',
'ZMW' => 'ZK',
];
/**
* Seed the application's database.
*
* @param array $parameters
* @return void
*/
public function run($parameters = [])
{
DB::table('channels')->delete();
DB::table('currencies')->delete();
$defaultLocale = $parameters['default_locale'] ?? config('app.locale');
$defaultCurrency = $parameters['default_currency'] ?? config('app.currency');
$currencies = $parameters['allowed_currencies'] ?? [$defaultCurrency];
foreach ($currencies as $key => $currency) {
DB::table('currencies')->insert([
[
'id' => $key + 1,
'code' => $currency,
'name' => trans('installer::app.seeders.core.currencies.'.$currency, [], $defaultLocale),
'symbol' => $this->currencySymbols[$currency],
],
]);
}
}
}
Function Calls
None |
Stats
MD5 | 429388b47ed266f8168ae30e7d1e3540 |
Eval Count | 0 |
Decode Time | 93 ms |