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\Http\Controllers\Download; use App\Http\Controllers\Controller; use ..

Decoded Output download

<?php

namespace App\Http\Controllers\Download;

use App\Http\Controllers\Controller;
use App\Http\Requests\Download\SongRequest;
use App\Repositories\SongRepository;
use App\Services\DownloadService;

class SongController extends Controller
{
    public function __construct(private DownloadService $downloadService, private SongRepository $songRepository)
    {
    }

    public function show(SongRequest $request)
    {
        $songs = $this->songRepository->getMany($request->songs);

        return response()->download($this->downloadService->from($songs));
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace App\Http\Controllers\Download;

use App\Http\Controllers\Controller;
use App\Http\Requests\Download\SongRequest;
use App\Repositories\SongRepository;
use App\Services\DownloadService;

class SongController extends Controller
{
    public function __construct(private DownloadService $downloadService, private SongRepository $songRepository)
    {
    }

    public function show(SongRequest $request)
    {
        $songs = $this->songRepository->getMany($request->songs);

        return response()->download($this->downloadService->from($songs));
    }
}

Function Calls

None

Variables

None

Stats

MD5 3d3a1ffca39e196cb4497f7b64af168a
Eval Count 0
Decode Time 144 ms