buuum / ftpgitsync
Ftp Git sync package for your app
Requires
- php: >=5.5.0
- buuum/ftp: ^1.0
- buuum/git: ^1.0
- buuum/zip: ^1.0
- php-curl-class/php-curl-class: ^7.2
- symfony/console: ^3.2
- symfony/yaml: ^3.2
Requires (Dev)
README
Simple and extremely flexible PHP event class
Getting started
You need PHP >= 5.5 to use Buuum.
- Install Buuum FtpGitSync
- Initialize Config
- Start Project
- Sync poejct
- Get diff
- Update project
- Update Vendor
Install
System Requirements
You need PHP >= 5.5.0 to use Buuum\FtpGitSync but the latest stable version of PHP is recommended.
Composer
Buuum is available on Packagist and can be installed using Composer:
composer require buuum/ftpgitsync
Manually
You may use your own autoloader as long as it follows PSR-0 or PSR-4 standards. Just put src directory contents in your vendor directory.
Initialize Config
php vendor/bin/fgsync init
file generated fgsync.yml
paths: temp: temp public_folder: httpdocs ignore: files: - ".gitignore" - "README.md" folders: - "temp" - "log" environments: local.dev: host: localhost dev.local.com: url: https://dev.local.com host: host.com connection: ssl port: 21 timeout: 90 passive: false user: password: remotePath: / public_folder: public_html local.com: url: https://local.com host: host.com connection: ftp port: 21 timeout: 90 passive: false user: password: remotePath: / public_folder: httpdocs
Start Project
php vendor/bin/fgsync start
Sync
php vendor/bin/fgsync sync
Get diff
php vendor/bin/fgsync diff
Update
php vendor/bin/fgsync update
Update Vendor
php vendor/bin/fgsync vendor
LICENSE
The MIT License (MIT)
Copyright (c) 2017 alfonsmartinez
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.