-
Notifications
You must be signed in to change notification settings - Fork 97
/
composer.json
36 lines (36 loc) · 1.18 KB
/
composer.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
"name": "james-heinrich/phpthumb",
"description": "The PHP thumbnail generator",
"type": "library",
"license": ["GPL-1.0-or-later", "LGPL-3.0-only", "MPL-2.0"],
"authors": [
{
"name": "James Heinrich",
"email": "[email protected]",
"homepage": "http://www.silisoftware.com/",
"role": "Developer"
}
],
"keywords": ["thumbnail", "thumb", "GD", "ImageMagick", "image", "magic"],
"homepage": "http://phpthumb.sourceforge.net/",
"require": {
"php": ">=5.3.0"
},
"scripts": {
"post-autoload-dump": [
"composer run copy-config",
"composer run hsp-generate"
],
"copy-config": "php -r \"copy('phpThumb.config.php.default', 'phpThumb.config.php');\"",
"hsp-generate": "php -r \"$cf=file_get_contents('phpThumb.config.php');$cf=str_replace('__HSP_KEY__', base64_encode(bin2hex(random_bytes(22))), $cf);file_put_contents('phpThumb.config.php', $cf);\""
},
"suggest": {
"ext-gd": "PHP GD library",
"ext-imagick": "PHP ImageMagick"
},
"autoload": {
"files": [
"phpthumb.class.php"
]
}
}