Skip to content

Latest commit

 

History

History
74 lines (61 loc) · 5.35 KB

upgrade.md

File metadata and controls

74 lines (61 loc) · 5.35 KB

Upgrade Guide

Upgrade from Intervention Image 2.x to 3.x

[TOC]

New Features

Intervention Image 3 has been rewritten from the ground up with very little code carried over from the previous version. This means a more modern and sophisticated architecture and API that takes advantage of the modern features of PHP 8+. There are a few key features that further improve the library.

API Changes

Removed Features

Other Changes

  • The caching library of Intervention Image 2 is not supported by the new version.

  • The service providers for the Laravel framework were removed to avoid a dependency to the framework and to highlight Intervention Image rather framework agnostic, which it always was. However, there is an official package for Laravel integration

  • It is no longer possible to create images from an URI directly. The data must first be loaded by a dedicated HTTP client and then passed to the image library. Intervention Image is not responsible for HTTP client operations.

  • It is no longer possible to pass color values as array.