Skip to content

Commit 3037739

Browse files
authored
Merge pull request #25 from Corveda/v3.0-branch
V3.0 release
2 parents 2ac6d8d + 60afa98 commit 3037739

21 files changed

+2031
-1285
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.idea/*
22
vendor/*
3-
docs/cache/*
3+
docs/cache/*
4+
.phpunit.result.cache

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
language: php
22
php:
33
- nightly
4+
- 8.0
45
- 7.4
56
- 7.3
67
- 7.2

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# CHANGELOG
22

3+
## 09/11/2021
4+
- Updated dependencies and support for PHP 8.0. Minimum PHP version raised to 7.0.
5+
36
## 02/09/2016
47
- Updated to use namespaced PHPParser library, modernized method naming conventions. Minimum PHP version raised to 5.4.
58

MANUAL.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ <h1 style="margin: 0;">
4141
&mdash;
4242
<a href="https://github.com/Corveda/PHPSandbox" target="_blank">Github</a>
4343
</div>
44-
<p>PHPSandbox is a PHP 5.4+ class designed to implement tightly-controlled and highly configurable code
44+
<p>PHPSandbox is a PHP 7.4+ class designed to implement tightly-controlled and highly configurable code
4545
sandboxes in pure PHP code.
4646
It utilizes the <a href="https://github.com/nikic/PHP-Parser" target="_blank">PHP-Parser</a> and
4747
<a href="https://github.com/jeremeamia/FunctionParser" target="_blank">FunctionParser</a>

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
![PHPSandbox](https://phpsandbox.org/images/logo.png)
22

3-
## A full-scale PHP 5.4+ sandbox class that utilizes [PHP-Parser](https://github.com/nikic/PHP-Parser) to prevent sandboxed code from running unsafe code.
3+
## A full-scale PHP 7.4+ sandbox class that utilizes [PHP-Parser](https://github.com/nikic/PHP-Parser) to prevent sandboxed code from running unsafe code.
44

55
It also utilizes [FunctionParser](https://github.com/jeremeamia/FunctionParser) to disassemble callables passed to the sandbox, so that PHP callables can also be run in sandboxes without first converting them into strings.
66

@@ -82,7 +82,7 @@ It also utilizes [FunctionParser](https://github.com/jeremeamia/FunctionParser)
8282

8383
## Requirements
8484

85-
- PHP 5.4+
85+
- PHP 7.4+
8686
- [PHP-Parser](https://github.com/nikic/PHP-Parser)
8787
- [FunctionParser](https://github.com/jeremeamia/FunctionParser) (if you wish to use closures)
8888
- PHP should be compiled with *--enable-tokenizer* option (it typically is)

composer.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,14 @@
1515
}
1616
],
1717
"require": {
18-
"php": ">=7.0",
18+
"php": ">=7.4|>=8.0",
19+
"ext-json": "*",
1920
"nikic/php-parser": "^4.4",
2021
"jeremeamia/functionparser": "^1.0"
2122
},
2223
"require-dev": {
2324
"symfony/yaml": "~3.0|~4.0|~5.0",
24-
"phpunit/phpunit": "^6.5"
25+
"phpunit/phpunit": "^9.5"
2526
},
2627
"replace": {
2728
"fieryprophet/php-sandbox": "*"

0 commit comments

Comments
 (0)