Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 18, 2024 via composer

league/glide 2.3.0

Wonderfully easy on-demand image manipulation library with an HTTP based API.
Package summary
Share
0
issues
1
license
8
MIT
Package created
3 Jan 2015
Version published
8 Jul 2023
Maintainers
2
Total deps
8
Direct deps
2
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
8 Packages, Including:
guzzlehttp/psr7@2.6.2
intervention/image@2.7.2
league/flysystem@3.27.0
league/flysystem-local@3.25.1
league/glide@2.3.0
league/mime-type-detection@1.15.0
psr/http-factory@1.1.0
ralouphie/getallheaders@3.0.3
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

2
All Dependencies CSV
β“˜ This is a list of league/glide 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
intervention/image2.7.2-MIT
prod
league/flysystem3.27.0-MIT
prod

Visualizations

Frequently Asked Questions

What does league/glide do?

League/Glide is a highly efficient on-demand image manipulation PHP library that employs an HTTP-based API for operation. This utility makes the process of image adjustment, resizing, and applying effects to images quite straightforward. Its highlights include automatic caching and serving of manipulated images with far-future expires headers, support for GD library and Imagick PHP extension, and the ability to secure image URLs via HTTP signatures, among others. Majorly, it operates using powerful libraries such as Intervention Image for image handling and manipulation, and Flysystem for file system abstraction.

How do you use league/glide?

To use the library, you'll require to have Composer installed then install Glide as follows:

$ composer require league/glide

You can then utilize its functions as per your image processing needs within your app.

Given its HTTP based API, you can manipulate an image by making a HTTP get request with specific parameters. For instance:

// Assuming you have a setup like this
$server = League\Glide\ServerFactory::create([
    'source' => 'path/to/source/folder',
    'cache' => 'path/to/cache/folder',
]);

// You can then process an image like this
$server->outputImage('image.jpg', ['w' => 300, 'h' => 400]);

This would output 'image.jpg' resized to a width of 300px and a height of 400px.

Where are the league/glide docs?

The complete set of documentation for using League/Glide can be found at the official PHP League website glide.thephpleague.com. The documentation provides a comprehensive overview of the library, its API, and how to effectively use it in your projects for efficient image manipulation.