All Projects → Cannonb4ll → LaravelFtp

Cannonb4ll / LaravelFtp

Licence: other
Laravel FTP client

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to LaravelFtp

Ip Location Zh
获取 IP 地址的真实地理位置
Stars: ✭ 556 (+3606.67%)
Mutual labels:  composer, laravel-5-package
php-ftp-client
📦 Provides helper classes and methods to manage FTP files in an OOP way.
Stars: ✭ 81 (+440%)
Mutual labels:  ftp, ftp-client
Larrock Core
Core components for LarrockCMS
Stars: ✭ 46 (+206.67%)
Mutual labels:  composer, laravel-5-package
video-downloader
Video Downloader for Facebook.
Stars: ✭ 63 (+320%)
Mutual labels:  composer, laravel-5-package
ftpConnect
A simple and robust dart FTP Client Library to interact with FTP Servers with possibility of zip and unzip files.
Stars: ✭ 43 (+186.67%)
Mutual labels:  ftp, ftp-client
Jwt Auth Guard
JWT Auth Guard for Laravel and Lumen Frameworks.
Stars: ✭ 319 (+2026.67%)
Mutual labels:  composer, laravel-5-package
Laravel Database Encryption
A package for automatically encrypting and decrypting Eloquent attributes in Laravel 5.5+, based on configuration settings.
Stars: ✭ 238 (+1486.67%)
Mutual labels:  composer, laravel-5-package
Aioftp
ftp client/server for asyncio (http://aioftp.readthedocs.org)
Stars: ✭ 116 (+673.33%)
Mutual labels:  ftp, ftp-client
FTP
FTP客户端,服务端
Stars: ✭ 34 (+126.67%)
Mutual labels:  ftp, ftp-client
publish-sftp
One-line command to quickly publish resources to a specified server
Stars: ✭ 41 (+173.33%)
Mutual labels:  ftp, ftp-client
Whipftp
OpenSource FTP / SFTP client
Stars: ✭ 158 (+953.33%)
Mutual labels:  ftp, ftp-client
collage
Generate Image Collage with PHP and Laravel
Stars: ✭ 70 (+366.67%)
Mutual labels:  composer, laravel-5-package
Fluentftp
An FTP and FTPS client for .NET & .NET Standard, optimized for speed. Provides extensive FTP commands, File uploads/downloads, SSL/TLS connections, Automatic directory listing parsing, File hashing/checksums, File permissions/CHMOD, FTP proxies, FXP support, UTF-8 support, Async/await support, Powershell support and more. Written entirely in C#,…
Stars: ✭ 1,943 (+12853.33%)
Mutual labels:  ftp, ftp-client
Laravel Server Monitor
Server Monitoring Command for Laravel Applications
Stars: ✭ 424 (+2726.67%)
Mutual labels:  composer, laravel-5-package
Arduinosim800l
Arduino HTTP & FTP client for SIM800L/SIM800 boards to perform GET and POST requests to a JSON API as well as FTP uploads.
Stars: ✭ 127 (+746.67%)
Mutual labels:  ftp, ftp-client
Telegram Bot Sdk
🤖 Telegram Bot API PHP SDK. Lets you build Telegram Bots easily! Supports Laravel out of the box.
Stars: ✭ 2,212 (+14646.67%)
Mutual labels:  composer, laravel-5-package
Drivebackupv2
Uploads Minecraft backups to Google Drive/OneDrive or by (S)FTP
Stars: ✭ 26 (+73.33%)
Mutual labels:  ftp, ftp-client
Rust Ftp
FTP client for Rust
Stars: ✭ 110 (+633.33%)
Mutual labels:  ftp, ftp-client
EOSFTPServer
A project to create a complete, standard compliant, multi-user, Objective-C (Mac OS X / iOS) FTP server.
Stars: ✭ 35 (+133.33%)
Mutual labels:  ftp, ftp-client
querydumper
Laravel package to dump all running queries on the page.
Stars: ✭ 24 (+60%)
Mutual labels:  composer, laravel-5-package

LaravelFtp

Laravel FTP client (or any other project that utilises has composer)

This project is just called LaravelFtp because I am holding this package to the conventions Laravel itself uses, they are great and easy.

It also utilises the collection package, files are returned as collection so you can use the Collection functions from Laravel.

Usage

Installation

Require this package with composer:

composer require dennissmink/laravel-ftp dev-master

Usage

Initiate a new FTP client like so:

$ftp = ftp($host, $user, $pass, $optionalport);

Then, check if your connection was succesfull:

if(!$ftp){
    // Connection failed
    return 'Error while connecting to the FTP server';
}

// Do your stuff

Methods

General file functions

$ftp->all(); // Returns all the files of the users root files (Collection)
$ftp->all('folder'); // Returns all the files of the directory folder (Collection)

$ftp->get('filename.txt') // Returns the content of the file, can also be: get('directory/filename.txt')
$ftp->save('filename.txt', 'content file'); // Save file 'filename.txt' with content 'content file', returns content if success
$ftp->rename('oldname.txt', 'newname.txt'); // Renames file or directory

Create files/directories

$ftp->createFile('filename.txt'); // Creates a file with the name 'filename.txt'
$ftp->createDirectory('directory name'); // Creates a directory 'directory name'

Delete files/directories

$ftp->deleteFile('filename.txt'); // Deletes a file with the name 'filename.txt'
$ftp->deleteDirectory('directory name'); // Removes a directory with the name 'directory name' (And its contents..)
$ftp->emptyDirectory('directory name'); // Emptys a directory but keeps the directory itself

Links

Packagist: https://packagist.org/packages/dennissmink/laravel-ftp

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].