Skip to content

SimpleFramework 2.2.0

Compare
Choose a tag to compare
@PeratX PeratX released this 01 Jan 03:49
· 30 commits to master since this release

API_LEVEL: 7

Changes:

  • Redesign autoload.php, introducing iTXTech\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 load SimpleFramework
    • SF_HOME env var points to SimpleFramework source dir
    • SF_ARCHIVE env var points to SimpleFramework PHAR
  • Improve Curl, support multi network interface through InterfaceSelector, 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 (use sf.json "stub": "stub.php")
  • Add sfloader.php when packing module (use sf.json "sfloader": true)
  • Support dependency auto calculation, remove order in sf.json
  • Support both sf.json and info.json
  • Support composer in modules