Skip to content

Commit

Permalink
Merge pull request #24 from Amin-Cheribet/v3
Browse files Browse the repository at this point in the history
V3
  • Loading branch information
Amin-Cheribet authored Feb 27, 2022
2 parents 150f90c + 8f7fb5e commit 387e3ac
Show file tree
Hide file tree
Showing 9 changed files with 1,052 additions and 340 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

vendor/

.phpunit.result.cache
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,22 @@ var_dump($data);
// 'name' => 'myFileName',
// 'path' => 'document/images/photo.jpg'
// ]
//
// Or in case of multi file upload
//
// [
// [
// 'id' => 'er23sfd3p4uo ',
// 'name' => 'photo1',
// 'path' => 'document/images/photo1.jpg'
// ],
// [
// 'id' => 'sf23s6sdf23s',
// 'name' => 'photo2',d
// 'path' => 'document/images/photo2.jpg'
// ]
// ]
//
```

### Validation:
Expand All @@ -66,6 +82,7 @@ $file->save('myDirectory');
```

### Processing uploaded files:
Note: this function require php-gd to be installed on the server.
currently only images can be processed, available methods are:
- compress(int $quality)
NOTE : compresssion level 0 to 100 lower is the most compressed and lowest quality
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"license": "MIT",

"require": {
"php": ">=7.1.6",
"phpunit/phpunit": ">=6.0"
"php": "^8.0",
"phpunit/phpunit": "^9.5"
},

"authors": [
Expand Down
Loading

0 comments on commit 387e3ac

Please sign in to comment.