PHP code example of banago / bridge
1. Go to this page and download the library: Download banago/bridge library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
banago / bridge example snippets
Banago\Bridge\Bridge;
$conn = new Bridge('ftp://ftp.funet.fi');
//List directory contents
print_r($conn->ls());
//Display contents of the README file
echo $conn->get('README');