Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vdlp/oc-glide-plugin
Allows developers to easily manipulate images in October CMS powered websites.
https://github.com/vdlp/oc-glide-plugin
glide image-processing laravel manipulation october-cms octobercms octobercms-plugin php phpleague
Last synced: about 4 hours ago
JSON representation
Allows developers to easily manipulate images in October CMS powered websites.
- Host: GitHub
- URL: https://github.com/vdlp/oc-glide-plugin
- Owner: vdlp
- License: gpl-2.0
- Created: 2019-01-22T13:54:04.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-03-14T13:48:00.000Z (8 months ago)
- Last Synced: 2024-10-23T16:42:18.562Z (23 days ago)
- Topics: glide, image-processing, laravel, manipulation, october-cms, octobercms, octobercms-plugin, php, phpleague
- Language: PHP
- Homepage:
- Size: 45.9 KB
- Stars: 4
- Watchers: 8
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Vdlp.Glide
Glide is a wonderfully easy on-demand image manipulation library written in PHP.
Its straightforward API is exposed via HTTP, similar to cloud image processing services like Imgix and Cloudinary.
Glide leverages powerful libraries like Intervention Image (for image handling and manipulation) and Flysystem (for file system abstraction).## Requirements
* PHP 7.4 or higher
* October CMS 2.x## Installation
```
composer require vdlp/oc-glide-plugin
```## Configuration
To configure this plugin execute the following command:
```
php artisan vendor:publish --provider="Vdlp\Glide\ServiceProvider" --tag="config"
```This will create a `config/glide.php` file in your app where you can modify the configuration.
Modify the environment file by adding the following lines:
```
GLIDE_IMAGE_DRIVER = "gd"
GLIDE_SIGN_KEY = "[YOUR SIGN KEY HERE]"
```> We recommend using a 128 character (or larger) signing key to prevent trivial key attacks. Consider using a package like [CryptoKey](https://github.com/AndrewCarterUK/CryptoKey) to generate a secure key.
For more details about the security and why a sign key is used, check [glide.thephpleague.com](https://glide.thephpleague.com/2.0/config/security/).
Add an url to your disk in the `config/filesystem.php` to display the images properly, for example:
```diff
...'disks' => [
'local' => [
'driver' => 'local',
'root' => storage_path('app'),
+ 'url' => 'storage/app/',
],],
...
```## Example
Here you can see some basic examples of how to use this plugin. Out of the box, the default configuration used is `main`.
```
```
## Questions? Need help?
If you have any question about how to use this plugin, please don't hesitate to contact us at [email protected].
We're happy to help you. You can also visit the support forum and drop your questions/issues there.