I'my trying to use color-extractor to get the colours of my images but I'm having trouble getting it working.
I noticed a missing autoload.php file in the package and after some googling it seems it requires that you use Composer. I haven't used composer and don't have much experience using the command line yet. Something I am working on but hoping not to have to learn it all before using this php package.
I tried changing some of the php lines from this:
require 'vendor/autoload.php';
use League\ColorExtractor\Color;
use League\ColorExtractor\ColorExtractor;
use League\ColorExtractor\Palette;
to this:
require ..\lib\League\ColorExtractor\Color;
require ..\lib\League\ColorExtractor\ColorExtractor;
require ..\lib\League\ColorExtractor\Palette;
But it didn't work and I got these errors:
[14-Jan-2019 07:00:43 Australia/Sydney] PHP Fatal error: require(): Failed opening required 'lib/League/ColorExtractor/Color.php' (include_path='.:/opt/alt/php56/usr/share/pear:/opt/alt/php56/usr/share/php') in /home/windowvi/public_html/arena/examples/grid2/php/get_collection.php on line 3
[14-Jan-2019 07:07:14 Australia/Sydney] PHP Fatal error: Class 'Palette' not found in /home/windowvi/public_html/arena/examples/grid2/php/get_collection.php on line 55
Can this package be used without learning and using composer and if so, how would I require/include the files?
Thanks!