SourceGuardian PHP開發工具



  • 領先於業界的保護

    PHP protection

    SourceGuardian 提供 PHP 4, PHP 5 and PHP 7支援,以及最新的PHP 7.2 其他保護和加密功能
  • Great GUI

    PHP encoder

    適用於WindowsLinuxOS X的全新GUI。我們以簡單形式提供強大的加密功能。 SourceGuardian無疑是最先進的PHP編碼器

  • 強大的鎖定

    encrypt php scripts

  • 內置支援

    secure PHP code



SourceGuardian PHP Encoder protects your PHP scripts by compiling the PHP source code into a bytecode format, followed by encryption layers.


We have created a new GUI for SourceGuardian 11, including Windows, Linux and Mac OS X also. This new GUI, combined with the powerful command-line encoder, makes it even easier to encrypt your PHP scripts.

支援多樣 PHP 版本

SourceGuardian 11.2 for PHP works with the following versions of PHP: PHP 4, PHP 5 and PHP 7.  PHP 7.1 and 7.2 are fully supported. We always lead the way amongst PHP Encoders for supporting the latest version of PHP

PHP 保護方法

To protect your scripts from unauthorized usage SourceGuardian for PHP has added features that can optionally lock your scripts to run only from predefined IP addresses, domain names or LAN hardware addresses (MAC). 

SourceGuardian for PHP can also easily produce trial versions of your scripts by setting an expiry date for your PHP scripts or by limiting the number of days that your protected script will work. To protect against local date changes for trial versions of your protected scripts there is an option for time checking using atomic online time servers. 

For larger projects SourceGuardian for PHP provides an option to protect an entire project so that all scripts used in the project will work only with other protected scripts. This way scripts may include a protected script from an unprotected script and this adds another level of protection.
Here is a sample list of protection features

  • Locking to a specific date, with optional atomic online time server checking
  • Locking to multiple domain names
  • Locking to multiple IP addresses
  • Locking to multiple LAN hardware (MAC) addresses
  • Improved locking to a specific domain name with encryption. The domain name is used as a part of the key for encryption, so protected scripts may not be decrypted and run from another domain. This is very powerful
  • Improved locking to an IP address with encryption. This is similar to the domain name locking but an IP address is used as a part of the key for encryption. This means that protected scripts cannot be decrypted and run from another IP address. Locking of an entire PHP project, so that no protected script can run if any other script is substituted 
with an unencoded one or encoded with another installation of SourceGuardian. This is ideal for 
protecting settings, passwords etc within a PHP project.
  • Locking to an external license file produced by the built-in SourceGuardian license 
generator. This is ideal for creating protected scripts to be deployed to different users and it even allows you to assign different locking options to different users. The SourceGuardian license generator tool can run from the GUI or as a command line tool which adds another powerful element – It provides a method for licenses to be dynamically generated and this would be useful (for example) when selling scripts online.
  • Locking protected scripts to work only online
  • Custom text may be added to the generated license file
  • You can now encode only files that were changed since your last encoding session
  • PHP 4,  PHP 5, PHP 7 support, including all the new language features
  • Thread Safety support. SourceGuardian has a special version of its Loaders available for Thread Safety PHP installations


We have added an option for encoding HTML templates, or other non-PHP files, using the SourceGuardian encoder. HTML templates or other non-PHP files may be encoded by the encoder, then read and decrypted from the protected scripts code. Template files which are encoded as part of the project may be used only from the protected scripts which were encoded as a part of the same project. It’s impossible to use protected templates from unencoded scripts or from scripts encoded with a different SourceGuardian project.


To make it easier for our customers, and potential customers, we have added in built-in support to your application. Now there is no worry of emails from us being spam-trapped – all of our communication can be seen within the application itself. We also provide support via email and our helpdesk, but this way you can see when your support has been answered directly within SourceGuardian


A script encoded under one operating system will run under any other supported operating systems. Currently we have the encoder for Windows, Linux and Macintosh. Protected scripts will work on Windows, Linux, OSX, FreeBSD. 

Script Loaders are available for these operating systems. Please find a list of all supported operating systems on our web site. In the near future we will support more operating systems and we can create a bespoke loader for your OS. Please contact us.

How does it work?

The following will give you an overview on how to protect PHP scripts using SourceGuardian. We will focus on the Windows version of SourceGuardian, but the process is very similar for Mac OS X and Linux. The following covers using the GUI, but if you wish to see how to use the command line interface works, please see the documentation in the support area

The following are the basic steps that you need to protect your PHP code with SourceGuardian

    1. You write your PHP Scripts! In all seriousness, you probably have a PHP project that you already need to protect. Your project may consist of many files, with many includes or it may include only one file. It doesn’t matter as you can protect it anyway.
    2. You run the SourceGuardian encoder, create a new project, add your PHP project folder or separate files to it. Then you choose a destination directory where your encoded files will be written to. 

      SourceGuardian 操作頁面圖示: 


    3. Next you can set the PHP mode, locking options and any advanced options that you require for protecting your scripts. You need to choose if your protected PHP code will under PHP4 or PHP5. You can also add locks to your protected files. This is a useful, but optional, functionality and is useful if you need to create a trial version or your PHP code or if you need to allow your code to work only with one domain, IP address or machine. 

      You may add the following locks to your protected scripts:

      • Set expiration date
      • Lock to IP address
      • Lock to domain name, with wildcards
      • Lock to hardware Mac addresses
      • Restrict protected scripts to work with unencoded scripts
      • Lock to an external license file which will be required to run the protected scripts
      • Set custom constants which will be written into the encoded script and which will be available from the protected code


  1. You click “Encode” to run encoding for your files. Progress window will be shown displaying all encoded files. 
    If you use Windows this will look like this: 

安裝 Loaders

SourceGuardian protected scripts require the loader to be installed to run protected scripts. The Loader is required because source code is encoded with bytecode binary protection. The loader does the decrypting of the bytecode and runs it. The Loader is dynamic loaded library (shared object), which is actually a PHP extension. Loaders are free. Using the loaders does not require any license to be installed. You may freely distribute loaders to your customers, include them within your protected software etc.
We have multiple loaders as they differ for different OS, CPU, PHP version and PHP thread safety option. Your SourceGuardian Encoder installation includes all loaders for all supported OS and PHP versions. Currently we have loaders for Linux, FreeBSD, Mac OSX, Windows, OpenBSD. All versions of PHP are supported since version 4.3. We update loaders to support new versions of PHP when they are available on the official PHP site. The latest loaders are available from our site
We suggest that you always use our online Loader Assistant to know the loader you need for your target platform and how to install it. Please also use the Loader Assistant to download and install an updated version of loaders. 
SourceGuardian Encoder GUI includes loaders and can copy them for selected OS into the /ixed/ subdirectory within your selected target folder. If you use Windows this will look like this: 


You can email [email protected] but we have also built in a support tool within SourceGuardian 9. You can see screenshots of this below: 
The support ticket list: 
Creating a new support request SourceGuardian will automatically check, when opened, for new tickets.