Skip to content

The Blink Framework v0.4 is released

Compare
Choose a tag to compare
@bixuehujin bixuehujin released this 23 Jun 17:49
· 47 commits to master since this release

I am very pleased to announce the release of Blink version 0.4.0. Please refer to the documentation to install or upgrade to this version.

Version 0.4 is a major release of Blink framework that brings several new feature and improvements:

  1. Blink is now compatible with PSR-7

    With the PSR-7 support, it would be easier to integrate 3rd HTTP related libraries into Blink.

    Because Request::getBody() method is already taken in PSR-7, the original getBody() is renamed to getPayload().

  2. Environment configuration support

    Blink 0.4 introduced a dotenv alike mechanism to store environment specific or sensitive configurations, this helps us to build a unified approach to store these configurations in Blink applications.

  3. Service management utility

    Blink 0.4 introduced a service management utility to help us to run Blink application under systemd as system service.

Here is the changelog of version 0.4.0:

  • New: Added ENV_FILE(like dotenv) support
  • New: Added service:install command to install blink app as a systemd service
  • New: Compatible with PHP 7.2
  • New: Added SwServer::$dispatchMode config to tune Swoole's dispatch_mode
  • New: Compatible with PSR-7 HTTP message interfaces
  • Chg: The Request::getParams() method will not convert special characters into _ any more, see here for more detail
  • Chg: The Swoole's dispatch_mode is changed to 3 by default
  • Chg: The original Response::getBody() is now renamed to Response::getPayload()
  • Chg: Removed PHP 5.6 support
  • Bug: Null should not be encoded in response