|
37 | 37 | ## 📸 Screenshots |
38 | 38 |
|
39 | 39 | ### Login Page |
40 | | - |
| 40 | + |
41 | 41 |
|
42 | 42 | ### File Manager |
43 | | - |
| 43 | + |
44 | 44 |
|
45 | 45 | ### Integrated Code Editor |
46 | | - |
| 46 | + |
47 | 47 |
|
48 | 48 | --- |
49 | 49 |
|
|
52 | 52 | ### Requirements |
53 | 53 |
|
54 | 54 | - **PHP 8.0+** (8.0, 8.1, 8.2, 8.3) |
| 55 | +- **Composer** (for dependency management) |
55 | 56 | - **PHP Extensions:** |
56 | 57 | - `ftp` (for FTP connections) |
57 | 58 | - `session` (for session management) |
58 | | - - `ssh2` (optional - for advanced operations) |
59 | 59 | - `zlib` (optional - for compression) |
| 60 | +- **Required Package:** |
| 61 | + - `phpseclib/phpseclib` ^3.0.7 (for SSH operations) |
60 | 62 | - **Web Server:** Apache with mod_rewrite OR Nginx |
61 | 63 | - **HTTPS** recommended for production |
62 | 64 |
|
63 | 65 | ### Installation |
64 | 66 |
|
65 | 67 | ```bash |
66 | 68 | # 1. Clone the repository |
67 | | -git clone https://github.com/yourusername/webcodeftp.git |
| 69 | +git clone https://github.com/codebyoul/webcodeftp.git |
68 | 70 | cd webcodeftp |
69 | 71 |
|
70 | | -# 2. Install dependencies (optional - autoloader included) |
| 72 | +# 2. Install dependencies (REQUIRED) |
71 | 73 | composer install |
72 | 74 |
|
73 | 75 | # 3. Configure your FTP server |
@@ -143,6 +145,8 @@ WebCodeFTP uses a **single configuration file** at `config/config.php`. This is |
143 | 145 |
|
144 | 146 | ### 2. SSH Configuration (Optional - Recommended) |
145 | 147 |
|
| 148 | +**SSH operations powered by [phpseclib](https://github.com/phpseclib/phpseclib) 3.0.7** - A pure PHP SSH implementation. |
| 149 | + |
146 | 150 | **Why use SSH over FTP?** SSH provides **significantly better performance** for advanced operations: |
147 | 151 |
|
148 | 152 | | Operation | FTP Method | SSH Method | Performance | |
@@ -269,9 +273,10 @@ PHP, JavaScript, TypeScript, HTML, CSS, Python, Java, C, C++, Go, Rust, Ruby, Sw |
269 | 273 | - Check `session.save_path` in php.ini |
270 | 274 |
|
271 | 275 | ### SSH features not working |
272 | | -- Install `php-ssh2` extension: `sudo apt install php-ssh2` |
| 276 | +- Run `composer install` to ensure phpseclib is installed |
273 | 277 | - Verify SSH credentials in `config/config.php` |
274 | 278 | - Test SSH connection: `ssh username@hostname` |
| 279 | +- Check logs: `tail -f logs/app.log` |
275 | 280 |
|
276 | 281 | ### "Invalid security token" |
277 | 282 | - Enable cookies in your browser |
@@ -299,6 +304,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI |
299 | 304 | Built with amazing open-source technologies: |
300 | 305 |
|
301 | 306 | - [CodeMirror 6](https://codemirror.net/) - The powerful code editor |
| 307 | +- [phpseclib 3.0.7](https://github.com/phpseclib/phpseclib) - Pure PHP SSH implementation |
302 | 308 | - [Tailwind CSS](https://tailwindcss.com/) - Utility-first CSS framework |
303 | 309 | - [Font Awesome](https://fontawesome.com/) - Beautiful icons |
304 | 310 | - PHP 8.0+ - Modern, fast, and secure |
|
0 commit comments