PHP Classes

Sync Framework: Send directory files to a remote server

Recommend this page to a friend!
  Info   View files Example   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 146 This week: 1All time: 9,121 This week: 560Up
Version License PHP version Categories
syncframeworks 1.0The PHP License5PHP 5, Files and Folders, Systems adm...
Description 

Author

This class can send directory files to a remote server.

It can take the path of a given directory and create a ZIP archive with its file contents.

The class can also send a HTTP request to upload the ZIP archive to the remote server.

Picture of oron abutbul
  Performance   Level  
Name: oron abutbul <contact>
Classes: 1 package by
Country: Israel Israel
Age: ???
All time rank: 428026 in Israel Israel
Week rank: 411 Up2 in Israel Israel Up

Example

<?php
use SyncFrameworks\SyncFrameworks;
require_once
'src/SyncFrameworks.php';
if(isset(
$_GET[SYNC_REMOTE_URL_LINKER_PARAMETER])){
   
$output = array();
    switch(
$_GET[SYNC_REMOTE_URL_LINKER_PARAMETER]){
        case
SYNC_REMOTE_URL_LINKER_FILES_CHECKSUM:
           
$output = SyncFrameworks::getFilesChecksum();
            break;
        case
SYNC_REMOTE_URL_LINKER_UPDATE_FILES:
            if(isset(
$_FILES[SYNC_FILE_PARAMTER])){
               
$output = SyncFrameworks::updateFilesFromZip();
            }
            break;
    }
   
header('Content-Type: application/json');
    echo
json_encode($output);
}
/*
else{
    if(isset($_GET['test'])){
        $result = SyncFrameworks::syncFilesChecksum();
        header('Content-Type: application/json');
        echo json_encode($result);
    }
tester
}*/
   


Details

SyncFrameworks

sync framework from local to remote without ftp

Tired of FTP? thats why i built this class...

There is a tester which you can view there how to fully activate the class. there is an additionals paramater which can be used to wrap for authentication or any data you desire.

enjoy!


  Files folder image Files  
File Role Description
Files folder imagesrc (1 file)
Accessible without login Plain text file AuthenticationExample Example Authentication example
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file tester.php Example Example

  Files folder image Files  /  src  
File Role Description
  Plain text file SyncFrameworks.php Class Class source

Downloadsyncframeworks-2017-08-24.zip 2KB
Downloadsyncframeworks-2017-08-24.tar.gz 2KB
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
cURL Download .zip .tar.gz using to transfer data Required
 Version Control Unique User Downloads Download Rankings  
 75%
Total:146
This week:1
All time:9,121
This week:560Up