Gregwar / Image

A PHP library to handle images
MIT License
993 stars 190 forks source link

Fatal error: Class 'Gregwar\Image\Image' not found in #146

Closed tomkochi closed 6 years ago

tomkochi commented 6 years ago

I am new to use composer. when i use image resize svcript it gives the error: Fatal error: Class 'Gregwar\Image\Image' not found in index.php on line 3

index.php: <?php use Gregwar\Image\Image;

Image::open('in.jpg') ->resize(100, 100) ->negate() ->save('out.jpg');

Gregwar commented 6 years ago

How did you installed the library?

Use:

composer req gregwar/image

And then include the vendor/autoload.php file generated by composer in your code

tomkochi commented 6 years ago

Thanks a lot, dear.

Actually, I missed to include the autoload.php

Anyway, it's great work! I love your plugin. Its superb.

Now I am up to searching if you have more plugins... I am sure there will be.

Fantastic work!

On Mon, Jan 1, 2018 at 4:00 PM, Grégoire Passault notifications@github.com wrote:

How did you installed the library?

Use:

composer req gregwar/image

And then include the vendor/autoload.php file generated by composer in your code

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Gregwar/Image/issues/146#issuecomment-354646689, or mute the thread https://github.com/notifications/unsubscribe-auth/Af7vuVCwDVSBIYJ-Ul366l1kBwyDY1q3ks5tGLPEgaJpZM4RQA2R .

Gregwar commented 6 years ago

packagist.org will be the place you want then ;-)