SimpleFramework 2.2.0
API_LEVEL: 7
Changes:
- Redesign
autoload.php
, introducingiTXTech\SimpleFramework\Initializer
- Support manual load
SimpleFramework
<?php
define("SF_LOADER_AUTO_INIT", false); // Disable loadSimpleFramework
require_once "autoload.php";
use iTXTech\SimpleFramework\Initializer;
Initializer::loadSimpleFramework("sf.phar");
Initializer::initTerminal(true);
Initializer::setSingleThread(false);
//...
- Module HotPatch, based on
PECL Runkit7
extension - Add
sfloader.php
to loadSimpleFramework
SF_HOME
env var points toSimpleFramework
source dirSF_ARCHIVE
env var points toSimpleFramework
PHAR
- Improve
Curl
, support multi network interface throughInterfaceSelector
, support global proxy - Add preload feature
./sf p=preload.php p=phar://a.phar/preload.php ....
- Add
Packer
, support customize packing behavior - Add customized
stub
support (usesf.json
"stub": "stub.php"
) - Add
sfloader.php
when packing module (usesf.json
"sfloader": true
) - Support dependency auto calculation, remove
order
insf.json
- Support both
sf.json
andinfo.json
- Support composer in modules