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 /** * This file is part of the Carbon package. * * (c) Brian Nesbitt <brian@nesb..
Decoded Output download
<?php
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use Carbon\CarbonInterface;
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/*
* Authors:
* - Philippe Vaucher
* - pirminis
* - Tsutomu Kuroda
* - tjku
* - Andris Zeris
* - Max Melentiev
* - Edgars Beigarts
* - Juanito Fatas
* - Vitauts Stoka
* - Akira Matsuda
* - Christopher Dell
* - Enrique Vidal
* - Simone Carletti
* - Aaron Patterson
* - Kaspars Bankovskis
* - Nicols Hock Isaza
* - Viesturs Kavacs (Kavacky)
* - zakse
* - Janis Eglitis (janiseglitis)
* - Guntars
* - Juris Sudmalis
*/
$daysOfWeek = ['svtdiena', 'pirmdiena', 'otrdiena', 'trediena', 'ceturtdiena', 'piektdiena', 'sestdiena'];
$daysOfWeekLocativum = ['svtdien', 'pirmdien', 'otrdien', 'tredien', 'ceturtdien', 'piektdien', 'sestdien'];
$transformDiff = static fn (string $input) => strtr($input, [
// Nominative => "pirms/pc" Dative
'gads' => 'gada',
'gadi' => 'gadiem',
'gadu' => 'gadiem',
'mnesis' => 'mnea',
'mnei' => 'mneiem',
'mneu' => 'mneiem',
'neda' => 'nedas',
'nedas' => 'nedm',
'nedu' => 'nedm',
'diena' => 'dienas',
'dienas' => 'dienm',
'dienu' => 'dienm',
'stunda' => 'stundas',
'stundas' => 'stundm',
'stundu' => 'stundm',
'minte' => 'mintes',
'mintes' => 'mintm',
'minu' => 'mintm',
'sekunde' => 'sekundes',
'sekundes' => 'sekundm',
'sekunu' => 'sekundm',
]);
return [
'ago' => static fn (string $time) => 'pirms '.$transformDiff($time),
'from_now' => static fn (string $time) => 'pc '.$transformDiff($time),
'year' => '0 gadu|:count gads|:count gadi',
'y' => ':count g.',
'a_year' => '{1}gads|0 gadu|:count gads|:count gadi',
'month' => '0 mneu|:count mnesis|:count mnei',
'm' => ':count mn.',
'a_month' => '{1}mnesis|0 mneu|:count mnesis|:count mnei',
'week' => '0 nedu|:count neda|:count nedas',
'w' => ':count ned.',
'a_week' => '{1}neda|0 nedu|:count neda|:count nedas',
'day' => '0 dienu|:count diena|:count dienas',
'd' => ':count d.',
'a_day' => '{1}diena|0 dienu|:count diena|:count dienas',
'hour' => '0 stundu|:count stunda|:count stundas',
'h' => ':count st.',
'a_hour' => '{1}stunda|0 stundu|:count stunda|:count stundas',
'minute' => '0 minu|:count minte|:count mintes',
'min' => ':count min.',
'a_minute' => '{1}minte|0 minu|:count minte|:count mintes',
'second' => '0 sekunu|:count sekunde|:count sekundes',
's' => ':count sek.',
'a_second' => '{1}sekunde|0 sekunu|:count sekunde|:count sekundes',
'after' => ':time vlk',
'year_after' => '0 gadus|:count gadu|:count gadus',
'a_year_after' => '{1}gadu|0 gadus|:count gadu|:count gadus',
'month_after' => '0 mneus|:count mnesi|:count mneus',
'a_month_after' => '{1}mnesi|0 mneus|:count mnesi|:count mneus',
'week_after' => '0 nedas|:count nedu|:count nedas',
'a_week_after' => '{1}nedu|0 nedas|:count nedu|:count nedas',
'day_after' => '0 dienas|:count dienu|:count dienas',
'a_day_after' => '{1}dienu|0 dienas|:count dienu|:count dienas',
'hour_after' => '0 stundas|:count stundu|:count stundas',
'a_hour_after' => '{1}stundu|0 stundas|:count stundu|:count stundas',
'minute_after' => '0 mintes|:count minti|:count mintes',
'a_minute_after' => '{1}minti|0 mintes|:count minti|:count mintes',
'second_after' => '0 sekundes|:count sekundi|:count sekundes',
'a_second_after' => '{1}sekundi|0 sekundes|:count sekundi|:count sekundes',
'before' => ':time agrk',
'year_before' => '0 gadus|:count gadu|:count gadus',
'a_year_before' => '{1}gadu|0 gadus|:count gadu|:count gadus',
'month_before' => '0 mneus|:count mnesi|:count mneus',
'a_month_before' => '{1}mnesi|0 mneus|:count mnesi|:count mneus',
'week_before' => '0 nedas|:count nedu|:count nedas',
'a_week_before' => '{1}nedu|0 nedas|:count nedu|:count nedas',
'day_before' => '0 dienas|:count dienu|:count dienas',
'a_day_before' => '{1}dienu|0 dienas|:count dienu|:count dienas',
'hour_before' => '0 stundas|:count stundu|:count stundas',
'a_hour_before' => '{1}stundu|0 stundas|:count stundu|:count stundas',
'minute_before' => '0 mintes|:count minti|:count mintes',
'a_minute_before' => '{1}minti|0 mintes|:count minti|:count mintes',
'second_before' => '0 sekundes|:count sekundi|:count sekundes',
'a_second_before' => '{1}sekundi|0 sekundes|:count sekundi|:count sekundes',
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 4,
'list' => [', ', ' un '],
'diff_now' => 'tagad',
'diff_today' => 'odien',
'diff_yesterday' => 'vakar',
'diff_before_yesterday' => 'aizvakar',
'diff_tomorrow' => 'rt',
'diff_after_tomorrow' => 'part',
'formats' => [
'LT' => 'HH:mm',
'LTS' => 'HH:mm:ss',
'L' => 'DD.MM.YYYY.',
'LL' => 'YYYY. [gada] D. MMMM',
'LLL' => 'DD.MM.YYYY., HH:mm',
'LLLL' => 'YYYY. [gada] D. MMMM, HH:mm',
],
'calendar' => [
'sameDay' => '[odien] [plkst.] LT',
'nextDay' => '[rt] [plkst.] LT',
'nextWeek' => static function (CarbonInterface $current, CarbonInterface $other) use ($daysOfWeekLocativum) {
if ($current->week !== $other->week) {
return '[nkoo] ['.$daysOfWeekLocativum[$current->dayOfWeek].'] [plkst.] LT';
}
return '['.$daysOfWeekLocativum[$current->dayOfWeek].'] [plkst.] LT';
},
'lastDay' => '[vakar] [plkst.] LT',
'lastWeek' => static function (CarbonInterface $current) use ($daysOfWeekLocativum) {
return '[pagjuo] ['.$daysOfWeekLocativum[$current->dayOfWeek].'] [plkst.] LT';
},
'sameElse' => 'L',
],
'weekdays' => $daysOfWeek,
'weekdays_short' => ['Sv.', 'P.', 'O.', 'T.', 'C.', 'Pk.', 'S.'],
'weekdays_min' => ['Sv.', 'P.', 'O.', 'T.', 'C.', 'Pk.', 'S.'],
'months' => ['janvris', 'februris', 'marts', 'aprlis', 'maijs', 'jnijs', 'jlijs', 'augusts', 'septembris', 'oktobris', 'novembris', 'decembris'],
'months_standalone' => ['janvr', 'februr', 'mart', 'aprl', 'maij', 'jnij', 'jlij', 'august', 'septembr', 'oktobr', 'novembr', 'decembr'],
'months_short' => ['janv.', 'febr.', 'mart', 'apr.', 'maij', 'jn.', 'jl.', 'aug.', 'sept.', 'okt.', 'nov.', 'dec.'],
'meridiem' => ['priekpusdiena', 'pcpusdiena'],
];
?>
Did this file decode correctly?
Original Code
<?php
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use Carbon\CarbonInterface;
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/*
* Authors:
* - Philippe Vaucher
* - pirminis
* - Tsutomu Kuroda
* - tjku
* - Andris Zeris
* - Max Melentiev
* - Edgars Beigarts
* - Juanito Fatas
* - Vitauts Stoka
* - Akira Matsuda
* - Christopher Dell
* - Enrique Vidal
* - Simone Carletti
* - Aaron Patterson
* - Kaspars Bankovskis
* - Nicols Hock Isaza
* - Viesturs Kavacs (Kavacky)
* - zakse
* - Janis Eglitis (janiseglitis)
* - Guntars
* - Juris Sudmalis
*/
$daysOfWeek = ['svtdiena', 'pirmdiena', 'otrdiena', 'trediena', 'ceturtdiena', 'piektdiena', 'sestdiena'];
$daysOfWeekLocativum = ['svtdien', 'pirmdien', 'otrdien', 'tredien', 'ceturtdien', 'piektdien', 'sestdien'];
$transformDiff = static fn (string $input) => strtr($input, [
// Nominative => "pirms/pc" Dative
'gads' => 'gada',
'gadi' => 'gadiem',
'gadu' => 'gadiem',
'mnesis' => 'mnea',
'mnei' => 'mneiem',
'mneu' => 'mneiem',
'neda' => 'nedas',
'nedas' => 'nedm',
'nedu' => 'nedm',
'diena' => 'dienas',
'dienas' => 'dienm',
'dienu' => 'dienm',
'stunda' => 'stundas',
'stundas' => 'stundm',
'stundu' => 'stundm',
'minte' => 'mintes',
'mintes' => 'mintm',
'minu' => 'mintm',
'sekunde' => 'sekundes',
'sekundes' => 'sekundm',
'sekunu' => 'sekundm',
]);
return [
'ago' => static fn (string $time) => 'pirms '.$transformDiff($time),
'from_now' => static fn (string $time) => 'pc '.$transformDiff($time),
'year' => '0 gadu|:count gads|:count gadi',
'y' => ':count g.',
'a_year' => '{1}gads|0 gadu|:count gads|:count gadi',
'month' => '0 mneu|:count mnesis|:count mnei',
'm' => ':count mn.',
'a_month' => '{1}mnesis|0 mneu|:count mnesis|:count mnei',
'week' => '0 nedu|:count neda|:count nedas',
'w' => ':count ned.',
'a_week' => '{1}neda|0 nedu|:count neda|:count nedas',
'day' => '0 dienu|:count diena|:count dienas',
'd' => ':count d.',
'a_day' => '{1}diena|0 dienu|:count diena|:count dienas',
'hour' => '0 stundu|:count stunda|:count stundas',
'h' => ':count st.',
'a_hour' => '{1}stunda|0 stundu|:count stunda|:count stundas',
'minute' => '0 minu|:count minte|:count mintes',
'min' => ':count min.',
'a_minute' => '{1}minte|0 minu|:count minte|:count mintes',
'second' => '0 sekunu|:count sekunde|:count sekundes',
's' => ':count sek.',
'a_second' => '{1}sekunde|0 sekunu|:count sekunde|:count sekundes',
'after' => ':time vlk',
'year_after' => '0 gadus|:count gadu|:count gadus',
'a_year_after' => '{1}gadu|0 gadus|:count gadu|:count gadus',
'month_after' => '0 mneus|:count mnesi|:count mneus',
'a_month_after' => '{1}mnesi|0 mneus|:count mnesi|:count mneus',
'week_after' => '0 nedas|:count nedu|:count nedas',
'a_week_after' => '{1}nedu|0 nedas|:count nedu|:count nedas',
'day_after' => '0 dienas|:count dienu|:count dienas',
'a_day_after' => '{1}dienu|0 dienas|:count dienu|:count dienas',
'hour_after' => '0 stundas|:count stundu|:count stundas',
'a_hour_after' => '{1}stundu|0 stundas|:count stundu|:count stundas',
'minute_after' => '0 mintes|:count minti|:count mintes',
'a_minute_after' => '{1}minti|0 mintes|:count minti|:count mintes',
'second_after' => '0 sekundes|:count sekundi|:count sekundes',
'a_second_after' => '{1}sekundi|0 sekundes|:count sekundi|:count sekundes',
'before' => ':time agrk',
'year_before' => '0 gadus|:count gadu|:count gadus',
'a_year_before' => '{1}gadu|0 gadus|:count gadu|:count gadus',
'month_before' => '0 mneus|:count mnesi|:count mneus',
'a_month_before' => '{1}mnesi|0 mneus|:count mnesi|:count mneus',
'week_before' => '0 nedas|:count nedu|:count nedas',
'a_week_before' => '{1}nedu|0 nedas|:count nedu|:count nedas',
'day_before' => '0 dienas|:count dienu|:count dienas',
'a_day_before' => '{1}dienu|0 dienas|:count dienu|:count dienas',
'hour_before' => '0 stundas|:count stundu|:count stundas',
'a_hour_before' => '{1}stundu|0 stundas|:count stundu|:count stundas',
'minute_before' => '0 mintes|:count minti|:count mintes',
'a_minute_before' => '{1}minti|0 mintes|:count minti|:count mintes',
'second_before' => '0 sekundes|:count sekundi|:count sekundes',
'a_second_before' => '{1}sekundi|0 sekundes|:count sekundi|:count sekundes',
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 4,
'list' => [', ', ' un '],
'diff_now' => 'tagad',
'diff_today' => 'odien',
'diff_yesterday' => 'vakar',
'diff_before_yesterday' => 'aizvakar',
'diff_tomorrow' => 'rt',
'diff_after_tomorrow' => 'part',
'formats' => [
'LT' => 'HH:mm',
'LTS' => 'HH:mm:ss',
'L' => 'DD.MM.YYYY.',
'LL' => 'YYYY. [gada] D. MMMM',
'LLL' => 'DD.MM.YYYY., HH:mm',
'LLLL' => 'YYYY. [gada] D. MMMM, HH:mm',
],
'calendar' => [
'sameDay' => '[odien] [plkst.] LT',
'nextDay' => '[rt] [plkst.] LT',
'nextWeek' => static function (CarbonInterface $current, CarbonInterface $other) use ($daysOfWeekLocativum) {
if ($current->week !== $other->week) {
return '[nkoo] ['.$daysOfWeekLocativum[$current->dayOfWeek].'] [plkst.] LT';
}
return '['.$daysOfWeekLocativum[$current->dayOfWeek].'] [plkst.] LT';
},
'lastDay' => '[vakar] [plkst.] LT',
'lastWeek' => static function (CarbonInterface $current) use ($daysOfWeekLocativum) {
return '[pagjuo] ['.$daysOfWeekLocativum[$current->dayOfWeek].'] [plkst.] LT';
},
'sameElse' => 'L',
],
'weekdays' => $daysOfWeek,
'weekdays_short' => ['Sv.', 'P.', 'O.', 'T.', 'C.', 'Pk.', 'S.'],
'weekdays_min' => ['Sv.', 'P.', 'O.', 'T.', 'C.', 'Pk.', 'S.'],
'months' => ['janvris', 'februris', 'marts', 'aprlis', 'maijs', 'jnijs', 'jlijs', 'augusts', 'septembris', 'oktobris', 'novembris', 'decembris'],
'months_standalone' => ['janvr', 'februr', 'mart', 'aprl', 'maij', 'jnij', 'jlij', 'august', 'septembr', 'oktobr', 'novembr', 'decembr'],
'months_short' => ['janv.', 'febr.', 'mart', 'apr.', 'maij', 'jn.', 'jl.', 'aug.', 'sept.', 'okt.', 'nov.', 'dec.'],
'meridiem' => ['priekpusdiena', 'pcpusdiena'],
];
Function Calls
None |
Stats
MD5 | bb2408ef24479aced8d50ce61af54e46 |
Eval Count | 0 |
Decode Time | 126 ms |