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 App\Command; use Symfony\Component\Console\Input\InputInterface; use Symf..

Decoded Output download

<?php
 namespace App\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Helper\Table; use App\Entity\Manager\UserManager as UserEntityManager; use App\Command\Command as BaseCommand; use App\Entity\User; class UserListCommand extends BaseCommand { private UserEntityManager $userEntityManager; public function __construct(UserEntityManager $userEntityManager) { $this->userEntityManager = $userEntityManager; parent::__construct(); } protected function configure() { $this->setName("user:list"); $this->setDescription("clpctl user:list"); } protected function execute(InputInterface $input, OutputInterface $output) : int { try { goto A4c9b; e7ec2: return BaseCommand::SUCCESS; goto a36cb; F4cdd: d57b1: goto d6544; A4c9b: $users = $this->userEntityManager->findAll([], ["userName" => "asc"]); goto e15ec; c0717: $table->render(); goto b3141; Ef824: foreach ($users as $user) { goto D635d; D635d: $role = $user->getRole(); goto f6fe0; de4bf: F4ab6: goto B383f; Ed836: Fbd7f: goto de4bf; C0b1d: e3fac: goto a1221; B383f: $tableRows[] = ["User Name" => $user->getUserName(), "First Name" => $user->getFirstName(), "Last Name" => $user->getLastName(), "E-Mail" => $user->getEmail(), "Role" => $role, "Status" => true === $user->getStatus() ? "Active" : "Not Active"]; goto C0b1d; f6fe0: switch ($role) { case User::ROLE_ADMIN: $role = "Admin"; goto F4ab6; case User::ROLE_SITE_MANAGER: $role = "Site Manager"; goto F4ab6; case User::ROLE_USER: $role = "User"; goto F4ab6; } goto Ed836; a1221: } goto F4cdd; d6544: $table->setRows($tableRows); goto c0717; Ab8b6: $table->setHeaders(["User Name", "First Name", "Last Name", "E-Mail", "Role", "Status"]); goto Ef824; e8755: $table = new Table($output); goto Ab8b6; b3141: C2d8f: goto e7ec2; b6f28: $tableRows = []; goto e8755; e15ec: if (!count($users)) { goto C2d8f; } goto b6f28; a36cb: } catch (\Exception $e) { goto F5808; b7dcd: $output->writeln(sprintf("<error>%s</error>", $errorMessage)); goto C1049; F5808: $errorMessage = $e->getMessage(); goto b7dcd; C1049: return BaseCommand::FAILURE; goto ecb87; ecb87: } } }
 ?>

Did this file decode correctly?

Original Code

<?php
 namespace App\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Helper\Table; use App\Entity\Manager\UserManager as UserEntityManager; use App\Command\Command as BaseCommand; use App\Entity\User; class UserListCommand extends BaseCommand { private UserEntityManager $userEntityManager; public function __construct(UserEntityManager $userEntityManager) { $this->userEntityManager = $userEntityManager; parent::__construct(); } protected function configure() { $this->setName("\165\x73\145\x72\x3a\x6c\151\x73\164"); $this->setDescription("\x63\154\160\143\x74\154\40\x75\163\145\162\x3a\x6c\151\163\x74"); } protected function execute(InputInterface $input, OutputInterface $output) : int { try { goto A4c9b; e7ec2: return BaseCommand::SUCCESS; goto a36cb; F4cdd: d57b1: goto d6544; A4c9b: $users = $this->userEntityManager->findAll([], ["\165\163\x65\x72\x4e\141\x6d\145" => "\x61\x73\143"]); goto e15ec; c0717: $table->render(); goto b3141; Ef824: foreach ($users as $user) { goto D635d; D635d: $role = $user->getRole(); goto f6fe0; de4bf: F4ab6: goto B383f; Ed836: Fbd7f: goto de4bf; C0b1d: e3fac: goto a1221; B383f: $tableRows[] = ["\x55\x73\x65\162\x20\x4e\x61\155\x65" => $user->getUserName(), "\x46\x69\x72\163\164\x20\x4e\141\155\x65" => $user->getFirstName(), "\114\x61\x73\164\x20\x4e\x61\155\x65" => $user->getLastName(), "\105\55\115\141\151\154" => $user->getEmail(), "\x52\x6f\x6c\x65" => $role, "\x53\x74\141\x74\x75\x73" => true === $user->getStatus() ? "\101\143\164\151\x76\145" : "\116\157\x74\x20\101\143\164\x69\166\145"]; goto C0b1d; f6fe0: switch ($role) { case User::ROLE_ADMIN: $role = "\101\x64\x6d\x69\x6e"; goto F4ab6; case User::ROLE_SITE_MANAGER: $role = "\123\151\x74\x65\40\x4d\x61\156\x61\147\145\162"; goto F4ab6; case User::ROLE_USER: $role = "\125\163\x65\162"; goto F4ab6; } goto Ed836; a1221: } goto F4cdd; d6544: $table->setRows($tableRows); goto c0717; Ab8b6: $table->setHeaders(["\x55\x73\145\162\x20\x4e\x61\x6d\x65", "\x46\x69\x72\163\164\x20\x4e\141\155\x65", "\x4c\x61\163\164\40\x4e\x61\x6d\x65", "\105\x2d\x4d\141\151\154", "\122\157\x6c\145", "\x53\x74\141\x74\165\163"]); goto Ef824; e8755: $table = new Table($output); goto Ab8b6; b3141: C2d8f: goto e7ec2; b6f28: $tableRows = []; goto e8755; e15ec: if (!count($users)) { goto C2d8f; } goto b6f28; a36cb: } catch (\Exception $e) { goto F5808; b7dcd: $output->writeln(sprintf("\x3c\x65\162\x72\157\x72\x3e\x25\x73\74\x2f\145\162\x72\x6f\162\76", $errorMessage)); goto C1049; F5808: $errorMessage = $e->getMessage(); goto b7dcd; C1049: return BaseCommand::FAILURE; goto ecb87; ecb87: } } }

Function Calls

None

Variables

None

Stats

MD5 e017830b786c9da58d69502210ce3a60
Eval Count 0
Decode Time 92 ms