1
- # Lazzard/FtpClient
1
+ [ ![ Downloads] ( https://img.shields.io/packagist/dt/lazzard/php-ftp-client?style=flat-square )] ( https://packagist.org/packages/lazzard/php-ftp-client )
2
+ [ ![ Packagist Version] ( https://img.shields.io/packagist/v/lazzard/php-ftp-client?style=flat-square )] ( https://packagist.org/packages/lazzard/php-ftp-client )
3
+ [ ![ Minimum PHP version] ( https://img.shields.io/packagist/php-v/lazzard/php-ftp-client?style=flat-square )] ( https://packagist.org/packages/lazzard/php-ftp-client )
4
+ ![ License] ( https://img.shields.io/packagist/l/lazzard/php-ftp-client?style=flat-square )
2
5
3
- [ ![ Downloads] ( https://img.shields.io/packagist/dt/lazzard/php-ftp-client )] ( https://packagist.org/packages/lazzard/php-ftp-client )
4
- [ ![ Packagist Version] ( https://img.shields.io/packagist/v/lazzard/php-ftp-client )] ( https://packagist.org/packages/lazzard/php-ftp-client )
5
- [ ![ Minimum PHP version] ( https://img.shields.io/packagist/php-v/lazzard/php-ftp-client?color=%238892bf )] ( https://packagist.org/packages/lazzard/php-ftp-client )
6
- ![ License] ( https://img.shields.io/packagist/l/lazzard/php-ftp-client )
6
+ # Lazzard/FtpClient
7
7
8
8
This library provides helper classes and methods to manage your FTP files in an OOP way.
9
9
10
10
* Note: This library aimed to be a full FTP/FTPS client solution for the old ** (^5.5)** and newer PHP releases ** (^8.0)**
11
11
that support FTP extension.*
12
12
13
- ## Installation
14
-
15
- The recommended way to install this library is through composer :
13
+ ## Quick Start
16
14
17
15
```
18
16
composer require lazzard/php-ftp-client
19
17
```
20
18
21
- ## Quick Start
22
-
23
19
``` php
24
20
<?php
25
21
@@ -31,6 +27,10 @@ use Lazzard\FtpClient\FtpClient;
31
27
use Lazzard\FtpClient\Exception\FtpClientException;
32
28
33
29
try {
30
+ if (!extension_loaded('ftp')) {
31
+ throw new \RuntimeException("FTP extension not loaded.");
32
+ }
33
+
34
34
$connection = new FtpSSLConnection('host', 'username', 'password');
35
35
$connection->open();
36
36
42
42
print_r($client->getFeatures());
43
43
44
44
$connection->close();
45
- } catch (FtpClientException $ex) {
45
+
46
+ } catch (\Throwable $ex) {
46
47
print_r($ex->getMessage());
47
48
}
48
49
```
@@ -260,26 +261,27 @@ $client->keepAlive();
260
261
261
262
## Version Guidance
262
263
263
- | Version | Status | Last Release | PHP Version |
264
- | :----------:| :-------------:| :------------:| :-------------:|
265
- | 1.0.x | EOL | [ v1.0.2] [ 7 ] | >= 5.5 |
266
- | 1.4.x | EOL | [ v1.4.2] [ 9 ] | >= 5.6 |
267
- | 1.5.x | Latest | [ v1.5.3] [ 9 ] | ^7.2 \| 8.0.* |
264
+ | Version | Status | Last Release | PHP Version |
265
+ | :-------:| :------:| :------------:| :-----------:|
266
+ | 1.0.x | EOL | [ v1.0.2] [ 7 ] | >= 5.5 |
267
+ | 1.4.x | EOL | [ v1.4.2] [ 9 ] | >= 5.6 |
268
+ | 1.5.x | EOL | [ v1.5.3] [ 9 ] | ^7.2 \| 8.0.* |
269
+ | 1.6.x | Latest | [ v1.6.0] [ 10 ] | ^7.4 \| 8.0.* |
268
270
269
271
[ 7 ] : https://github.com/lazzard/php-ftp-client/releases/tag/v1.0.2
270
272
271
273
[ 8 ] : https://github.com/lazzard/php-ftp-client/releases/tag/v1.1.0
272
274
273
275
[ 9 ] : https://github.com/lazzard/php-ftp-client/releases/tag/v1.5.3
274
276
277
+ [ 10 ] : https://github.com/lazzard/php-ftp-client/releases/tag/v1.6.0
278
+
275
279
## Contribution
276
280
277
281
Feel free to fork this repo if you want to enhance it or adding new features, also reported some issues that may have
278
282
you facing while using the library will be very appreciated, Thank you!
279
283
280
- ## Library supporters
281
-
282
- Thanks to JetBrains company for providing tools that really help us to continue maintaining this project.
284
+ ## They support this project
283
285
284
286
<img width =" 150 " src =" https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.png?_gl=1*1evhn6q*_ga*MzA3MTk5NzQ3LjE2MzU3OTk3MDA.*_ga_V0XZL7QHEB*MTYzNTg5MzE3NS4yLjEuMTYzNTg5MzkzNC4xNg..&_ga=2.162913596.1450626373.1635893177-307199747.1635799700 " />
285
287
0 commit comments