Download the PHP package storyblok/php-image-service without Composer

On this page you can find all versions of the php package storyblok/php-image-service. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package php-image-service

Storyblok PHP Image Service

Co-created with SensioLabs, the creators of Symfony.

Branch PHP Code Coverage
master PHP codecov

[!WARNING] This package is currently experimental. Breaking changes may be introduced with any release until a stable version is reached. Use with caution in production environments.

Installation

Usage

Fluent Interface

The Image class supports a fluent interface, allowing you to chain multiple operations together. Each method returns a new Image instance, making the original instance immutable.

Available Operations

Resize

Resize an image to specific dimensions. If only width or height is provided, the other dimension will be calculated to maintain the aspect ratio.

Fit-In

Fit the image within a given width and height while maintaining aspect ratio.

Crop

Crop the image by specifying the top-left and bottom-right coordinates.

Format

Convert the image to a different format. Supported formats: webp, jpeg, png, avif.

Quality

Set the image quality (0-100).

Blur

Apply a blur effect with radius (0-150) and optional sigma (0-150).

Brightness

Adjust image brightness (-100 to 100).

Rotate

Rotate the image by a specific angle. Only 0, 90, 180, and 270 degrees are supported.

Flip

Flip the image horizontally or vertically.

Grayscale

Convert the image to grayscale.

Focal Point

Set a focal point for smart cropping using a string in format x1xy1:x2xy2.

Rounded Corners

Apply rounded corners to the image.

Fill

Set a fill color for fit-in operations. Accepts transparent or a hex color code.

No Upscale

Prevent the image from being upscaled beyond its original dimensions.

Get Image Metadata

Retrieve information about the image.

Limitations

The following limitations apply:

License

This project is licensed under the MIT License. Please see License File for more information.


All versions of php-image-service with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
oskarstark/enum-helper Version ^1.5
oskarstark/trimmed-non-empty-string Version ^1.1
thecodingmachine/safe Version ^3.0
webmozart/assert Version ^1.11 || ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package storyblok/php-image-service contains the following files

Loading the files please wait ...