You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://packagist.org/packages/rezgui/laravel-source-encrypter)
This package encrypts your php code with [phpBolt](https://phpbolt.com)
12
12
13
-
*For Laravel and Lumen 6, 7, 8, 9, 10 , 11
14
-
15
-
*[Installation](#installation)
13
+
*[Introduction](#introduction)
14
+
*[Benifits of Encoding](#benifits-of-encoding)
15
+
*[phpBolt encoder](#phpbolt-encoder)
16
+
*[Guide](#guide)
17
+
*[Installation Package](#installation-package)
16
18
*[Usage](#usage)
17
19
18
-
## Installation
20
+
---
19
21
20
-
### Step 1
21
-
At the first, You have to [install phpBolt](https://phpbolt.com/download-phpbolt/).
22
+
## Introduction
22
23
24
+
Many PHP developers need to protect their application source code before they distribute it to their customers and make it difficult for others to modify it without their permission.
23
25
24
-
### Step 2
26
+
- There are couple of techniques to protect PHP source code:
27
+
28
+
- Making the code difficult to read – which involves in minification & obfuscation
29
+
30
+
-**Encoding the source code.**
31
+
32
+
- There are list of commercial PHP encoders (Zend, ionCube, SourceGuardian, NuCoder, etc).
33
+
34
+
- A free encoder called **phpBolt** saves you from buying commercial encoders. phpBolt helps to protect your PHP source code by encrypting and decrypting code using a key.
35
+
36
+
### Benifits of Encoding
37
+
38
+
- Anyone can reuse your PHP script to any web server or localhost. phpBolt will encrypt your source code with a key.
39
+
- Advance Protection -- Generate a specific key for each customer.
40
+
- Online Encryption -- Encrypt source code from online also possible.
41
+
- Encrypt PHP source code and obfuscate the PHP source code.
42
+
- Prevent your PHP product from the nulled world.
43
+
44
+
## phpBolt encoder
45
+
46
+
- The author doesn't care about issues! The author will help you only if you pay for that. (he cannot provide free support)
47
+
- phpBolt loader is an extension used to load PHP files protected and encoded using PHP encoder.
48
+
49
+
### Guide
50
+
51
+
1.**Download phpBolt extension for 64-bit System**
52
+
53
+
- In order to use phpBolt, you need to [download loader extension](https://phpbolt.com/download-phpbolt/). Look for `bolt.so` inside the corresponding platform folder. ([extension](./assets/phpBolt-extension-1.0.5.zip))
- Then unzip the downloaded file using the unzip command and move into the decompressed folder.
63
+
64
+
- This is a mandatory step. Because PHP engine needs to identify then functions `bolt_encrypt` and `bolt_decrypt` functions.
65
+
66
+
2. **Install bolt.so extension for PHP**
67
+
68
+
- There will be different phpBolt loader files for various PHP versions, you need to selectthe right phpBolt loader for your installed PHP version on your server.
69
+
70
+
- Next, find the location of the extension directory for PHP version **8.2.25** (for example), it is where the phpBolt loader file will be installed. The specified directory from the output of this command:
- Copy `bolt.so` from the respective platform folder into the folder where all PHP extensions are stored. In my case, `/usr/lib/php/20220829` was the folder that stores all PHP extensions.
79
+
80
+
3. **Configure phpBolt Loader for PHP**
81
+
82
+
- Find the `php.ini` file and add `extension='/usr/lib/php/20220829/bolt.so'`in`php.ini` file. Then restart your server. Please choose correct `bolt.so` file. `bolt.so` is diffrent for each version and OS.
83
+
84
+
- Open `php.ini` as following: `sudo nano /etc/php.ini`
0 commit comments