|
1 | | -# Multi files upload & image resizer |
| 1 | +# Multi files uploader & image resizer |
2 | 2 |
|
3 | 3 | A PHP base class that you can use to upload any file into the server. It is a very lightweight class and highly customizable. You can use this class with any framework or with core PHP. |
4 | 4 |
|
| 5 | +## Dependencies: |
| 6 | + |
| 7 | +This class is based on the GD library for image processing. If you don’t have this library install it or enable it in php.ini. To install the GD library use the below command. |
| 8 | + |
| 9 | +``` |
| 10 | +sudo apt-get install php-gd |
| 11 | +``` |
| 12 | + |
| 13 | +After installation makes sure you have a gd.ini file then open the php.ini file and find it below. |
| 14 | + |
| 15 | +``` |
| 16 | +;extension=gd |
| 17 | +``` |
| 18 | + |
| 19 | +Remove the comment [ **;** ] and change it to below. |
| 20 | + |
| 21 | +``` |
| 22 | +extension=gd |
| 23 | +``` |
| 24 | + |
5 | 25 | ---- |
6 | 26 |
|
7 | 27 | ## Composer installation: |
8 | 28 |
|
9 | | -```composer |
| 29 | +``` |
10 | 30 | composer require learncodeweb/filesupload |
11 | 31 | ``` |
12 | 32 |
|
| 33 | +After installation recreates the autoload file with the help of the below command. |
| 34 | + |
| 35 | +``` |
| 36 | +composer dump-autoload |
| 37 | +``` |
| 38 | + |
13 | 39 | ---- |
14 | 40 |
|
15 | | -A PHP base class that you can use to upload any file into the server. It is a very lightweight class and heighly customizable. You can use this class with any framewrok or with core PHP. |
| 41 | +## Class option & features: |
| 42 | + |
| 43 | +A PHP base class that you can use to upload any file into the server. It is a very lightweight class and highly customizable. You can use this class with any framework or with core PHP. |
16 | 44 |
|
17 | 45 | 1) Upload Single Or Multiple Files. |
18 | 46 | 2) Upload Any Type Of Files (Not Only Images). |
19 | | -3) Image file can Resize. |
20 | | -4) Create Image Thumbnail (With Keep The Image Aspect Ratio). |
21 | | -5) You can add watermark (Text, Image). |
| 47 | +3) The image file can Resize. |
| 48 | +4) Create Image Thumbnails (With Keep The Image Aspect Ratio). |
| 49 | +5) You can add a watermark (Text, Image). |
22 | 50 | 6) Easy Integration With Forms. |
23 | 51 | 7) Create Any Number Of Thumbnails Under One Upload. |
24 | 52 | 8) Customizable Paths To Thumbnails Folders. |
|
0 commit comments