You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-5Lines changed: 12 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
1
# Vdlp.Glide
2
2
3
-
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).
3
+
Glide is a wonderfully easy on-demand image manipulation library written in PHP.
4
+
Its straightforward API is exposed via HTTP, similar to cloud image processing services like Imgix and Cloudinary.
5
+
Glide leverages powerful libraries like Intervention Image (for image handling and manipulation) and Flysystem (for file system abstraction).
4
6
5
7
## Requirements
6
8
@@ -30,17 +32,21 @@ GLIDE_IMAGE_DRIVER = "gd"
30
32
GLIDE_SIGN_KEY = "[YOUR SIGN KEY HERE]"
31
33
```
32
34
35
+
> 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.
36
+
37
+
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/).
38
+
33
39
Add an url to your disk in the `config/filesystem.php` to display the images properly, for example:
34
40
35
-
```
41
+
```diff
36
42
...
37
43
38
44
'disks' => [
39
45
40
46
'local' => [
41
47
'driver' => 'local',
42
-
'root' => storage_path('app'),
43
-
'url' => 'storage/app/',
48
+
'root' => storage_path('app'),
49
+
+ 'url' => 'storage/app/',
44
50
],
45
51
46
52
],
@@ -64,4 +70,5 @@ Here you can see some basic examples of how to use this plugin. Out of the box,
64
70
65
71
## Questions? Need help?
66
72
67
-
If you have any question about how to use this plugin, please don't hesitate to contact us at octobercms@vdlp.nl. We're happy to help you. You can also visit the support forum and drop your questions/issues there.
73
+
If you have any question about how to use this plugin, please don't hesitate to contact us at octobercms@vdlp.nl.
74
+
We're happy to help you. You can also visit the support forum and drop your questions/issues there.
0 commit comments