- Compatibility with PHP8+
- I'm not going to lie, most changes were done to get the perfect scrutinizer code quality
- Also removed getting errors with
$image['error']
use$image->getError()
instead - PHPunit requirement is ^6 - so tests for < php7.0 won't work (sorry)
- Trying to upload images less or equal than 2px (width/height) is not longer prevented. Honestly, who am I to judge how many pixels an image should be?
- Code is more refractored, it should be ready to eat now
- Fix some issues related to upload. (when file isn't uploaded, error wasn't shown)
- Fix PHPUnit namespace related error. (can't re-declare class .... error)
- Add .jpg to the list of default mime types
- re-write phpunit test class to use autoloader
- revert back changes added by lordgiotto on v2.0.2 avoid complicating bulletproof
- add improvements mentioned in issue #62
- checking if exif_image exists is now done in the constructor instead of in upload() method
- enable code coverage and quality inspection tool in scrutinizer
- trying to upload .txt file would throw an error exposing directory path, now only error is displayed
- code indetations and ps4 autoloader enabled
- Add feature to get the mimetype before calling upload() method
- fix #60 (JSON throws error due to a forwardslash in error messages)
- git went haywire, 2.0.3 had to be born
- enabled checking for 'exif_imagetype' function.
- added configurable array messages thanks to github.com/lordgiotto
- Removed method
remove()
- Removed watermark, resize, crop functionality
- renamed moaar and added getters and setters
- changed license to MIT
- added
getJson()
to get image info in json format - enabled passing of the
$_FILES
array through the class constructor. - wrote more unit tests
- class uses
\ArrayAccess
for intuitive file submit detection