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 rokan\olualaraformbuilder\Traits; use Illuminate\Http; use Illuminate\Sup..

Decoded Output download

<?php 
namespace rokan\olualaraformbuilder\Traits; use Illuminate\Http; use Illuminate\Support\Str; trait CommonService { public static function getEndPoints() : array { return array(array("endpoint" => "/module/migration/content", "destination" => database_path("migrations"), "file_key" => "file", "content_key" => "content", "endpoint_key" => "migration"), array("endpoint" => "/module/model/content", "destination" => app_path("Models"), "file_key" => "file", "content_key" => "content", "endpoint_key" => "model"), array("endpoint" => "/module/create/form-request", "destination" => app_path("Http/Requests"), "file_key" => "file", "content_key" => "content", "endpoint_key" => "validation"), array("endpoint" => "/module/controller/content", "destination" => app_path("Http/Controllers"), "file_key" => "file", "content_key" => "content", "endpoint_key" => "controller"), array("endpoint" => "/module/create/forms", "destination" => resource_path("views") . "/", "file_key" => "file", "content_key" => "content", "endpoint_key" => "html"), array("endpoint" => "/module/route/content", "destination" => base_path("routes/web.php"), "file_key" => "file", "content_key" => "content", "endpoint_key" => "route"), array("endpoint" => "/module/nav/content", "destination" => config("olua.fileLocation.navigationRoute"), "file_key" => "file", "content_key" => "content", "endpoint_key" => "nav")); } public static function checkDirectory($directory, $endPoint_key, $file) : string { if (!in_array($endPoint_key, array("nav", "route"))) { if (!is_dir($directory)) { mkdir($directory, 493, true); } return $directory . "/" . $file; } else { return $file; } } public static function updateExistingFileContent($filePath, $endPoint, $content, $action) : string { $existingContent = file_get_contents($filePath); if ($endPoint === "route") { $routingFileContents = $content->{$action["content_key"]}; $existingContent = str_replace("<?php", '', $existingContent); $updateContent = "<?php" . $content->import . $existingContent . $routingFileContents; } else { $updateContent = $existingContent . $content->{$action["content_key"]}; } return $updateContent; } } ?>

Did this file decode correctly?

Original Code

<?php
namespace rokan\olualaraformbuilder\Traits; use Illuminate\Http; use Illuminate\Support\Str; trait CommonService { public static function getEndPoints() : array { return array(array("\x65\x6e\x64\160\x6f\x69\156\x74" => "\x2f\155\x6f\x64\165\x6c\x65\57\x6d\x69\147\x72\141\x74\x69\157\156\x2f\x63\x6f\x6e\164\x65\156\x74", "\144\145\163\x74\x69\x6e\141\x74\x69\157\x6e" => database_path("\155\x69\x67\162\x61\x74\x69\157\156\163"), "\x66\x69\x6c\145\137\153\145\x79" => "\x66\x69\154\145", "\143\157\x6e\x74\x65\156\164\137\x6b\x65\171" => "\143\157\x6e\164\x65\x6e\x74", "\145\x6e\144\x70\x6f\151\x6e\x74\137\153\x65\x79" => "\155\151\147\x72\141\x74\x69\157\156"), array("\145\156\x64\160\x6f\151\x6e\164" => "\57\155\157\x64\165\x6c\x65\57\x6d\x6f\x64\x65\154\x2f\143\x6f\x6e\164\145\156\164", "\x64\x65\x73\x74\x69\156\141\164\x69\x6f\156" => app_path("\115\x6f\x64\145\154\x73"), "\x66\151\154\145\137\153\x65\x79" => "\x66\x69\x6c\x65", "\143\157\156\164\x65\x6e\164\137\153\x65\x79" => "\143\157\x6e\164\x65\x6e\164", "\145\x6e\x64\160\x6f\151\156\164\137\x6b\145\171" => "\x6d\x6f\x64\x65\154"), array("\x65\x6e\x64\160\x6f\151\156\164" => "\x2f\155\157\144\x75\x6c\x65\57\x63\162\145\x61\x74\x65\57\x66\157\162\155\55\162\145\161\x75\x65\163\164", "\144\x65\163\164\x69\x6e\141\x74\151\157\x6e" => app_path("\110\x74\x74\160\57\122\145\x71\x75\x65\163\x74\x73"), "\x66\x69\154\x65\x5f\153\145\x79" => "\146\151\154\145", "\x63\x6f\x6e\x74\x65\x6e\x74\137\x6b\145\x79" => "\143\157\156\164\x65\156\x74", "\145\x6e\144\160\x6f\151\156\164\x5f\153\x65\171" => "\166\141\x6c\151\x64\141\164\x69\x6f\x6e"), array("\x65\156\x64\160\157\x69\156\x74" => "\x2f\155\x6f\144\x75\x6c\145\x2f\x63\x6f\x6e\x74\x72\157\x6c\x6c\145\x72\57\x63\157\x6e\164\x65\156\x74", "\x64\x65\x73\x74\151\x6e\141\x74\151\157\156" => app_path("\110\164\164\160\x2f\x43\x6f\x6e\x74\162\x6f\154\154\x65\x72\163"), "\146\151\x6c\145\137\x6b\x65\x79" => "\x66\x69\x6c\145", "\x63\x6f\156\x74\145\156\164\137\x6b\145\171" => "\143\x6f\156\164\x65\x6e\164", "\x65\x6e\x64\x70\157\x69\156\x74\137\153\145\171" => "\x63\157\156\x74\162\x6f\154\x6c\x65\162"), array("\x65\x6e\144\x70\157\x69\156\164" => "\57\x6d\x6f\144\x75\x6c\x65\57\x63\x72\145\x61\164\x65\x2f\146\x6f\162\155\x73", "\144\x65\x73\164\151\x6e\141\x74\151\157\x6e" => resource_path("\166\x69\x65\167\163") . "\57", "\146\x69\x6c\145\x5f\153\145\x79" => "\146\151\154\145", "\143\157\156\164\145\x6e\x74\137\153\x65\171" => "\143\x6f\156\x74\x65\x6e\x74", "\145\156\144\160\157\151\x6e\x74\137\x6b\145\x79" => "\150\164\x6d\154"), array("\x65\156\x64\x70\157\151\156\164" => "\57\x6d\157\x64\165\x6c\x65\57\162\x6f\x75\x74\145\x2f\x63\x6f\x6e\164\x65\x6e\x74", "\144\x65\x73\x74\151\x6e\141\164\151\x6f\x6e" => base_path("\162\x6f\x75\164\145\x73\x2f\x77\x65\142\x2e\160\x68\160"), "\146\151\x6c\145\x5f\x6b\x65\x79" => "\146\151\154\x65", "\143\157\x6e\x74\x65\156\x74\137\x6b\145\171" => "\143\157\156\164\145\x6e\x74", "\145\x6e\144\x70\x6f\151\156\x74\x5f\x6b\x65\171" => "\162\x6f\165\x74\x65"), array("\x65\156\x64\160\x6f\151\x6e\x74" => "\x2f\155\157\144\165\x6c\x65\x2f\156\x61\166\57\x63\x6f\x6e\164\x65\x6e\164", "\144\x65\163\164\x69\x6e\141\x74\151\x6f\x6e" => config("\157\x6c\x75\x61\x2e\x66\151\x6c\x65\x4c\x6f\x63\x61\164\x69\157\x6e\x2e\156\141\166\x69\147\x61\x74\x69\157\x6e\122\x6f\165\164\x65"), "\146\x69\x6c\x65\x5f\x6b\145\x79" => "\146\x69\x6c\x65", "\x63\157\x6e\x74\145\x6e\x74\x5f\x6b\x65\171" => "\143\157\156\x74\x65\x6e\164", "\145\156\x64\x70\157\x69\156\x74\137\153\x65\171" => "\x6e\x61\166")); } public static function checkDirectory($directory, $endPoint_key, $file) : string { if (!in_array($endPoint_key, array("\x6e\141\166", "\162\157\x75\x74\x65"))) { if (!is_dir($directory)) { mkdir($directory, 493, true); } return $directory . "\57" . $file; } else { return $file; } } public static function updateExistingFileContent($filePath, $endPoint, $content, $action) : string { $existingContent = file_get_contents($filePath); if ($endPoint === "\162\x6f\x75\x74\x65") { $routingFileContents = $content->{$action["\x63\157\156\164\x65\156\x74\x5f\x6b\145\x79"]}; $existingContent = str_replace("\74\77\160\150\x70", '', $existingContent); $updateContent = "\74\x3f\x70\150\160" . $content->import . $existingContent . $routingFileContents; } else { $updateContent = $existingContent . $content->{$action["\143\x6f\156\164\145\156\x74\x5f\x6b\145\x79"]}; } return $updateContent; } }

Function Calls

None

Variables

None

Stats

MD5 9bf9c28e2d4891c2e64acfdfa2dc1b16
Eval Count 0
Decode Time 59 ms