Heston
Heston is just FTP Wrapper, writter in PHP with Git-Powered inside it. It means Heston really need Git to be installed first in our working project directory before we can use it., (*1)
Requirement
Installation
Via Composer, (*2)
{
"require": {
"heston/heston": "dev-master"
}
}
and type this command below to make sure that Heston is ready to use, (*3)
vendor\bin\heston help
Basic Usage
Just specify the URL of the FTP Server, Username - Password, and local directory that contains the files you want to upload. For example, we have a directory called repo in our project directory, looks like, (*4)
- MyProject
* file_1
* file_2
- repo
* repo_file_1
* repo file_2
Lets say, the URL of our FTP is ftp://ftp.glendmaatita.com in port 21, username and password are root-secret. So we will run a command like this, (*5)
vendor\bin\heston ftp://root:password@ftp.glendmaatita.com:21 repo/ "Upload file"
The last argument is comment, which is optional, (*6)
If we want to upload entire of MyProject directory, simply change repo/ to dot, like this, (*7)
vendor\bin\heston ftp://root:password@ftp.glendmaatita.com:21 . "Upload file"
The files will upload to directory of the FTP's user and automatically committed by Heston with comment you provide before., (*8)
License
MIT, (*9)