An older PHP application can contain years of useful business rules, integrations, and custom workflows. When its source is protected and the original editable files are missing, a SourceGuardian decoder can help you inspect supported files and recover readable PHP. The best starting point is a real sample from the backup you want to restore.

This guide focuses on preparing and reviewing an older project. For a planned move to a newer runtime, use the separate SourceGuardian PHP upgrade checklist after recovery. Restoring source visibility and modernizing an application are different tasks.

Start small, then recover the project

Try the free SourceGuardian decoder preview with a representative PHP file. Use that result to decide the next step before processing a larger backup.

Keep the original backup unchanged

Make a working copy before preparing any upload. Keep the original archive, its folder layout, and any existing deployment notes. If several backups are available, label them by application release and date so you can identify which files belong together.

Do not replace an encoded file's header or edit unreadable payload text in an attempt to make it look like ordinary PHP. Upload the original file from your working copy. A screenshot, pasted excerpt, or renamed document does not substitute for the actual protected file.

Record what you know about the old environment: PHP version, framework or CMS release, required extensions, and application entry points. You do not need every detail to try a preview, but this inventory makes the recovered code much easier to validate later.

Encoder version and PHP version mean different things

The SourceGuardian Encoder release identifies the protection tool used to create a file. Its PHP target describes the runtime bytecode included in that file. These are separate details, so a product release number alone is not a reliable description of an application's PHP requirements.

SourceGuardian's official version-flexibility guide explains that encoding targets and loader compatibility need to match the intended runtime. An old application's folder name does not establish which targets its protected files contain.

Recovery support also depends on the actual protected format and features in each file. Test the file you have instead of assuming that every older project, or every file from the same Encoder release, behaves identically. If version information is unavailable, keep the original file and request reference for support.

Choose a sample that represents your application

A useful sample contains application logic: a controller, model, service, or helper used by an important workflow. An empty entry point or a readable configuration file may tell you little about the protected portion of the project. If you are unsure about the format, read how to identify SourceGuardian-protected PHP.

Select SourceGuardian in the preview uploader and submit the original PHP file. The public preview shows up to 15 formatted lines or 1,500 characters. It lets you inspect a limited result without buying full access first. A sample does not certify every file in an archive, so test additional representative files when their protection or purpose differs.

If your sample uses ionCube instead, switch to the ionCube decoder preview. Choosing the corresponding decoder is the first practical check; changing an extension does not convert one protection format into another.

Keep related PHP files together for full recovery

For a larger project, sign in and prepare a ZIP containing the relevant files in their original relative folders. A model may rely on a base class, and a controller may rely on bootstrap code. Recovering just one isolated component does not provide the rest of the application.

Use the decode workspace to inspect the archive's file list and required access. You can choose a credit pack or a subscription. One PHP file costs one credit in the credit-based workflow; a ZIP is not a single credit for every file it contains.

After processing, expand the results and distinguish decoded files from readable files kept unchanged and any remaining entries. Review the paths as well as the counts. Keep a separate complete application backup for assets, dependencies, and configuration outside the recovery request.

Review recovered PHP before using the application

Readable source makes inspection possible, but it is not a complete deployment test. Begin with a syntax check using the PHP binary appropriate to the project:

php -l path/to/recovered-file.php

The PHP command-line manual describes this as a syntax check. It does not execute the application or establish that its database access and integrations work. Follow it with tests of the workflows you actually need in a separate environment.

Review required extensions, include paths, configuration constants, and external services. Formatting, quote styles, and some symbol spellings may differ from the original source. Original comments and names can only be recovered when the relevant information remains in the protected file.

Download the recovered files promptly. AseWeb retains uploaded and decoded files for seven days, so your account history is not a permanent backup of the output. Save your own copy alongside the untouched original package and your validation notes.

Questions about legacy SourceGuardian recovery

Can I recover a project without knowing its exact Encoder version?

You can start by submitting a real file for a preview. The actual file format and result are more useful than guessing a version from the project's age.

Does decoding automatically upgrade old PHP code?

No. Recovery gives you readable PHP where supported. Updating frameworks, changing removed functions, and testing a newer runtime are separate development tasks.

Can I automate repeated recovery requests?

Yes. The API documentation explains the shared endpoints, demo access, subscription access, and saved webhook URL. Use a representative preview before integrating a larger workflow.

See what your old project contains

Preview a SourceGuardian fileCompare full recovery options →

Related guides

Recover SourceGuardian PHP onlinePrepare a PHP upgrade after recoveryUnderstand ionCube key dependencies