I have Intervention installed in Laravel 5+, which I use daily. For a new application I have to use Codeigniter 3, and I am trying to install Intervention also into there. This will make everything much easier for me because I am used to this library.
As explained in the installation instruction I did:
php composer.phar require intervention/image
This command will give the following error:
[
RuntimeException]
Could not load package intervention/image in http://packagist.org: [UnexpectedValueException] Could not parse version constraint 4.x.x: Invalid v
ersion string "4.x.x"
So after doing this I have decided to install it manually
I have placed the files in the third_party directory
In autoload.php:
autoload['packages'] = array(APPPATH.'third_party/Intervention/Image/ImageManager.php');
In my controller I am initializing the class:
$intervention = new ImageManager();
This will result in an error:
Fatal error: Class 'ImageManager' not found in /Applications/MAMP/htdocs/site-gen/application/controllers/admin/Dashboard.php on line 80
Please note also that I have also tried some different approaches but no matter what I do I will get the same error. I have also made a lot of searches with Google but seems that the codeigniter users don't like this library. I can not find anything useful.
If you have this already up and running I will appreciate if you could give me some help.
Thank you