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 Dingo\Api\Routing; use ErrorException; use Dingo\Api\Auth\Auth; use Dingo..

Decoded Output download

<?php
 namespace Dingo\Api\Routing; use ErrorException; use Dingo\Api\Auth\Auth; use Dingo\Api\Dispatcher; use Dingo\Api\Http\Response\Factory; trait Helpers { protected $scopes = array(); protected $authenticationProviders = array(); protected $rateLimit = array(); protected $throttles = array(); protected function throttle($class, array $options = array()) { $this->throttles[] = compact("class", "options"); } protected function rateLimit($limit, $expires, array $options = array()) { $this->rateLimit[] = compact("limit", "expires", "options"); } protected function scopes($scopes, array $options = array()) { $scopes = $this->getPropertyValue($scopes); $this->scopes[] = compact("scopes", "options"); } protected function authenticateWith($providers, array $options = array()) { $providers = $this->getPropertyValue($providers); $this->authenticationProviders[] = compact("providers", "options"); } protected function getPropertyValue($value) { return is_string($value) ? explode("|", $value) : $value; } public function getThrottles() { return $this->throttles; } public function getRateLimit() { return $this->rateLimit; } public function getScopes() { return $this->scopes; } public function getAuthenticationProviders() { return $this->authenticationProviders; } public function api() { return app(Dispatcher::class); } protected function user() { return app(Auth::class)->user(); } protected function auth() { return app(Auth::class); } protected function response() { return app(Factory::class); } public function __get($key) { $callable = array("api", "user", "auth", "response"); if (in_array($key, $callable) && method_exists($this, $key)) { return $this->{$key}(); } throw new ErrorException("Undefined property " . get_class($this) . "::" . $key); } public function __call($method, $parameters) { if (method_exists($this->response(), $method) || $method == "array") { return call_user_func_array(array($this->response(), $method), $parameters); } throw new ErrorException("Undefined method " . get_class($this) . "::" . $method); } } ?>

Did this file decode correctly?

Original Code

<?php
 namespace Dingo\Api\Routing; use ErrorException; use Dingo\Api\Auth\Auth; use Dingo\Api\Dispatcher; use Dingo\Api\Http\Response\Factory; trait Helpers { protected $scopes = array(); protected $authenticationProviders = array(); protected $rateLimit = array(); protected $throttles = array(); protected function throttle($class, array $options = array()) { $this->throttles[] = compact("\143\x6c\x61\x73\x73", "\157\160\x74\x69\x6f\156\163"); } protected function rateLimit($limit, $expires, array $options = array()) { $this->rateLimit[] = compact("\154\x69\x6d\x69\164", "\x65\x78\x70\x69\x72\x65\163", "\157\x70\x74\151\157\x6e\163"); } protected function scopes($scopes, array $options = array()) { $scopes = $this->getPropertyValue($scopes); $this->scopes[] = compact("\163\x63\x6f\x70\145\163", "\x6f\x70\x74\x69\157\x6e\163"); } protected function authenticateWith($providers, array $options = array()) { $providers = $this->getPropertyValue($providers); $this->authenticationProviders[] = compact("\160\162\157\166\151\x64\x65\162\163", "\157\x70\x74\x69\x6f\156\163"); } protected function getPropertyValue($value) { return is_string($value) ? explode("\174", $value) : $value; } public function getThrottles() { return $this->throttles; } public function getRateLimit() { return $this->rateLimit; } public function getScopes() { return $this->scopes; } public function getAuthenticationProviders() { return $this->authenticationProviders; } public function api() { return app(Dispatcher::class); } protected function user() { return app(Auth::class)->user(); } protected function auth() { return app(Auth::class); } protected function response() { return app(Factory::class); } public function __get($key) { $callable = array("\x61\x70\x69", "\x75\163\145\162", "\x61\165\x74\x68", "\162\145\x73\160\157\156\x73\x65"); if (in_array($key, $callable) && method_exists($this, $key)) { return $this->{$key}(); } throw new ErrorException("\x55\x6e\x64\x65\146\x69\156\145\144\x20\x70\162\x6f\x70\145\162\x74\171\40" . get_class($this) . "\72\x3a" . $key); } public function __call($method, $parameters) { if (method_exists($this->response(), $method) || $method == "\141\162\162\x61\x79") { return call_user_func_array(array($this->response(), $method), $parameters); } throw new ErrorException("\125\156\x64\x65\146\x69\156\145\x64\x20\155\145\x74\x68\x6f\x64\x20" . get_class($this) . "\x3a\x3a" . $method); } }

Function Calls

None

Variables

None

Stats

MD5 58471f20b4fa5d9a21bc45080991d2d3
Eval Count 0
Decode Time 102 ms