Skip to content
This repository has been archived by the owner on May 31, 2019. It is now read-only.

Commit

Permalink
🚨 PHPStan + PHP-CS
Browse files Browse the repository at this point in the history
  • Loading branch information
jbelien committed Dec 13, 2018
1 parent a93bc61 commit f301164
Show file tree
Hide file tree
Showing 6 changed files with 1,346 additions and 30 deletions.
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,28 @@
[![Monthly Downloads](https://poser.pugx.org/geo6/php-image-tools/d/monthly.png)](https://packagist.org/packages/geo6/php-image-tools)
[![Software License](https://img.shields.io/badge/license-GPL--3.0-brightgreen.svg)](LICENSE)

## Install

```shell
composer require geo6/php-image-tools
```

## Functions

This library provides following functions :

## `thumbnail()`
### `thumbnail()`

Generates thumbnail by defining maximum size for the long side of your image.

## `EXIFRotate()`
### `EXIFRotate()`

Rotates your image based on EXIF `Orientation` parameter (see <https://www.impulseadventure.com/photo/exif-orientation.html>).

## `save()`
### `save()`

Save your (new) image on the disk.

## `display()`
### `display()`

Send your image to the browser with correct headers to display it.
33 changes: 23 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,33 @@
{
"name": "geo6/php-image-tools",
"description": "PHP Library that provides tools for image processing (thumbnail, EXIF rotation, ...)",
"type": "library",
"license": "GPL-3.0",
"description": "PHP Library that provides tools for image processing (thumbnail, EXIF rotation, ...)",
"license": "GPL-3.0-or-later",
"require": {
"php": "^7.2",
"ext-gd": "*",
"ext-mbstring": "*"
},
"require-dev": {
"phpstan/phpstan": "^0.10.6",
"phpstan/phpstan-strict-rules": "^0.10.1",
"squizlabs/php_codesniffer": "^3.3"
},
"config": {
"sort-packages": true
},
"autoload": {
"psr-4": {
"Geo6\\Image\\": "src/"
}
},
"authors": [
{
"name": "Jonathan Beliën",
"email": "jbe@geo6.be"
}
],
"require": {
"php": "^7.2"
"scripts": {
"analyze": "phpstan analyze -l max -c ./phpstan.installer.neon ./src",
"check": [
"@cs-check",
"@analyze"
],
"cs-check": "phpcs",
"cs-fix": "phpcbf"
}
}
Loading

0 comments on commit f301164

Please sign in to comment.