error while including Imagine package in project

Discussion for various published PHP frameworks, including Zend Framework, CodeIgniter, Kohana, CakePHP, Yii, Symfony, and others.

Moderator: General Moderators

Post Reply
User avatar
gautamz07
Forum Contributor
Posts: 331
Joined: Wed May 14, 2014 12:18 pm

error while including Imagine package in project

Post by gautamz07 »

I had a requirement in laravel, where i needed to some server side cropping using the the laravel package Imaginehttps://github.com/orchestral/imagine#installation, now i followed the installation instruction for this package for my application, I.E. :

I added the below line in my composer.json file:

Code: Select all

{
    "require": {
        "orchestra/imagine": "~3.0"
    }
}
My composer.json file looks like below now:

Code: Select all

{
    "name": "laravel/laravel",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "license": "MIT",
    "require": {
        "laravel/framework": "4.2.*",
        "intervention/image": "dev-master",
        "orchestra/imagine": "~3.0"
    },
    "autoload": {
        "classmap": [
            "app/commands",
            "app/controllers",
            "app/models",
            "app/database/migrations",
            "app/database/seeds",
            "app/tests/TestCase.php"
        ]
    },
    "scripts": {
        "post-install-cmd": [
            "php artisan clear-compiled",
            "php artisan optimize"
        ],
        "post-update-cmd": [
            "php artisan clear-compiled",
            "php artisan optimize"
        ],
        "post-create-project-cmd": [
            "php artisan key:generate"
        ]
    },
    "config": {
        "preferred-install": "dist"
    },
    "minimum-stability": "stable"
}
Now when i run composer update from the terminal , i get the following messages:

http://i.imgur.com/lJAt6hy.jpg

and i have now followed THESE INSTRUCTIONShttps://github.com/orchestral/imagine#configuration too, of adding the alias etc to the config/app.php,

Now when i try to load my admin panel , i get the following error:

Code: Select all

Class 'Orchestra\Imagine\ImagineServiceProvider' not found
Why am i getting this error , can somebody explain ?
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: error while including Imagine package in project

Post by Celauran »

[text] "require": {
"laravel/framework": "4.2.*",
"intervention/image": "dev-master",
"orchestra/imagine": "~3.0"
},[/text]

https://github.com/orchestral/imagine#v ... patibility
User avatar
gautamz07
Forum Contributor
Posts: 331
Joined: Wed May 14, 2014 12:18 pm

Re: error while including Imagine package in project

Post by gautamz07 »

"require": {
"laravel/framework": "4.2.*",
"intervention/image": "dev-master",
"orchestra/imagine": "~3.0"
},

Thats exactly what i have :D
User avatar
gautamz07
Forum Contributor
Posts: 331
Joined: Wed May 14, 2014 12:18 pm

Re: error while including Imagine package in project

Post by gautamz07 »

Ohh ok , got it :D , thanks celauran :) updated composer.json to below now :

"require": {
"laravel/framework": "4.2.*",
"intervention/image": "dev-master",
"orchestra/imagine": "~2.2"
},
Post Reply