Skip to content

Commit

Permalink
Merge pull request #9 from aryehraber/fix/php80
Browse files Browse the repository at this point in the history
Add PHP 8.0 Support (closes #8)
  • Loading branch information
aryehraber authored Mar 13, 2022
2 parents 923f1d7 + 21f982f commit 1c33f6d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 18 deletions.
29 changes: 19 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,30 @@
"homepage": "https://github.com/aryehraber/statamic-color-extractor",
"license": "MIT",
"require": {
"league/color-extractor": "0.3.*",
"statamic/cms": "^3.0",
"jonaskohl/color-extractor": "^0.4",
"davidgorges/color-contrast": "^1.0"
},
"require-dev": {
"statamic/cms": "^3.0"
},
"autoload": {
"psr-4": {
"AryehRaber\\ColorExtractor\\": "src"
}
},
"authors": [{
"name": "Aryeh Raber",
"email": "[email protected]",
"homepage": "https://aryeh.dev",
"role": "Developer"
}],
"authors": [
{
"name": "Aryeh Raber",
"email": "[email protected]",
"homepage": "https://aryeh.dev",
"role": "Developer"
}
],
"extra": {
"statamic": {
"name": "ColorExtractor",
"description": "Extract colors from images.",
"version": "1.1.1"
"version": "1.2.0"
},
"laravel": {
"providers": [
Expand All @@ -38,5 +42,10 @@
}
},
"minimum-stability": "dev",
"prefer-stable": true
"prefer-stable": true,
"config": {
"allow-plugins": {
"pixelfear/composer-dist-plugin": true
}
}
}
16 changes: 8 additions & 8 deletions src/ColorExtractorModifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@

namespace AryehRaber\ColorExtractor;

use Statamic\Support\Arr;
use Statamic\Support\Str;
use ColorContrast\ColorContrast;
use Illuminate\Support\Facades\Cache;
use Intervention\Image\Facades\Image;
use JonasKohl\ColorExtractor\Color;
use JonasKohl\ColorExtractor\ColorExtractor;
use JonasKohl\ColorExtractor\Palette;
use Statamic\Assets\Asset;
use Statamic\Facades\File;
use Statamic\Facades\Folder;
use ColorContrast\ColorContrast;
use League\ColorExtractor\Color;
use Statamic\Modifiers\Modifier;
use League\ColorExtractor\Palette;
use Illuminate\Support\Facades\Cache;
use Intervention\Image\Facades\Image;
use League\ColorExtractor\ColorExtractor;
use Statamic\Support\Arr;
use Statamic\Support\Str;

class ColorExtractorModifier extends Modifier
{
Expand Down

0 comments on commit 1c33f6d

Please sign in to comment.