{"id":23882599,"url":"https://github.com/kisphp/php-sftp-client","last_synced_at":"2026-03-03T21:02:16.736Z","repository":{"id":46538525,"uuid":"69024823","full_name":"kisphp/php-sftp-client","owner":"kisphp","description":null,"archived":false,"fork":false,"pushed_at":"2022-01-28T13:34:41.000Z","size":11,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-27T15:20:48.511Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kisphp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-23T12:57:13.000Z","updated_at":"2021-11-08T19:45:29.000Z","dependencies_parsed_at":"2022-09-07T02:10:31.927Z","dependency_job_id":null,"html_url":"https://github.com/kisphp/php-sftp-client","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/kisphp/php-sftp-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kisphp%2Fphp-sftp-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kisphp%2Fphp-sftp-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kisphp%2Fphp-sftp-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kisphp%2Fphp-sftp-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kisphp","download_url":"https://codeload.github.com/kisphp/php-sftp-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kisphp%2Fphp-sftp-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30060635,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T18:21:05.932Z","status":"ssl_error","status_checked_at":"2026-03-03T18:20:59.341Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-04T02:56:18.189Z","updated_at":"2026-03-03T21:02:16.719Z","avatar_url":"https://github.com/kisphp.png","language":"PHP","readme":"# Simple PHP SFTP Client\n\n![example workflow](https://github.com/kisphp/php-sftp-client/actions/workflows/phpunit-run.yml/badge.svg)\n\n## Installation\n\nAdd in composer:\n\n```json\n{\n    \"require\": {\n        \"kisphp/php-sftp-client\": \"~0.1\"\n    }\n}\n```\n\n## Usage\n\nCreate a config class that implements `ConfigInterface`\n\n```php\n\u003c?php\n\nuse Kisphp\\ConfigInterface;\n\nclass Config implements ConfigInterface\n{\n    public function getHost()\n    {\n        return '10.10.0.61';\n    }\n    \n    public function getPort()\n    {\n        return 22;\n    }\n    \n    public function getUsername()\n    {\n        return 'vagrant';\n    }\n    \n    public function getPassword()\n    {\n        return 'vagrant';\n    }\n}\n```\n\nInstantiate SftpConnect class and pass your Config object to it\n\n```php\n$s = new SftpConnect(new Config());\n```\n\n## Upload a file\n\n```php\n$s-\u003esendFile(__DIR__ . '/source.php', 'b.php'); // will return true for success and false for failure\n```\n\n## Download a file\n\n```php\n$s-\u003ereceiveFile('a.php', 'c.php'); // will return true for success and false for failure\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkisphp%2Fphp-sftp-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkisphp%2Fphp-sftp-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkisphp%2Fphp-sftp-client/lists"}