Skip to content

Releases: wickedbyte/api-handler

v3.0.0

20 Mar 02:19
2ce1b75

Choose a tag to compare

This is the first release under the WickedByte organization. It is an independently maintained fork of phoneburner/api-handler, originally released under the MIT license by the original project authors. This fork is neither affiliated with nor endorsed by PhoneBurner.

Installation

composer require wickedbyte/api-handler:^3.0

This package depends on wickedbyte/http-tortilla ^3.0, which will be installed automatically.

Upgrading from phoneburner/api-handler

Update the namespace and package dependency in your code:

- use PhoneBurner\ApiHandler\ReadHandler;
- use PhoneBurner\ApiHandler\CreateHandler;
- use PhoneBurner\ApiHandler\DispatchMiddleware;
+ use WickedByte\ApiHandler\ReadHandler;
+ use WickedByte\ApiHandler\CreateHandler;
+ use WickedByte\ApiHandler\DispatchMiddleware;

A simple find-and-replace of PhoneBurner\ApiHandler to WickedByte\ApiHandler across your codebase is sufficient.

Also update your composer.json:

- "phoneburner/api-handler": "^1.0"
+ "wickedbyte/api-handler": "^3.0"

What's Changed

Breaking

  • Renamed organization namespace from PhoneBurner\ApiHandler to WickedByte\ApiHandler
  • Updated composer package name from phoneburner/api-handler to wickedbyte/api-handler
  • Updated dependency from phoneburner/http-tortilla to wickedbyte/http-tortilla ^3.0

Fixed

  • Fixed DefaultHandler::$factory uninitialized typed property that caused a fatal error at runtime when no response factory was explicitly set via setResponseFactory() — the handler now correctly falls back to DefaultFactory

Other

  • Added WickedByte copyright to LICENSE file (original PhoneBurner copyright preserved)
  • PHP 8.2, 8.3, 8.4, and 8.5 are all supported and tested in CI

Full Changelog: v1.0.2...v3.0.0