{"id":21056029,"url":"https://github.com/xp-framework/ftp","last_synced_at":"2025-04-30T09:21:31.825Z","repository":{"id":11788032,"uuid":"14329896","full_name":"xp-framework/ftp","owner":"xp-framework","description":"FTP protocol support for the XP Framework","archived":false,"fork":false,"pushed_at":"2024-03-24T10:37:09.000Z","size":3453,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T07:18:46.737Z","etag":null,"topics":["client","ftp","php","php7","php8","server","xp-framework"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"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/xp-framework.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-11-12T11:06:40.000Z","updated_at":"2022-02-12T13:55:29.000Z","dependencies_parsed_at":"2024-03-30T16:45:33.260Z","dependency_job_id":null,"html_url":"https://github.com/xp-framework/ftp","commit_stats":null,"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xp-framework%2Fftp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xp-framework%2Fftp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xp-framework%2Fftp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xp-framework%2Fftp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xp-framework","download_url":"https://codeload.github.com/xp-framework/ftp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251674987,"owners_count":21625716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["client","ftp","php","php7","php8","server","xp-framework"],"created_at":"2024-11-19T16:48:22.304Z","updated_at":"2025-04-30T09:21:31.799Z","avatar_url":"https://github.com/xp-framework.png","language":"PHP","readme":"FTP protocol support for the XP Framework\n========================================================================\n\n[![Build status on GitHub](https://github.com/xp-framework/ftp/workflows/Tests/badge.svg)](https://github.com/xp-framework/ftp/actions)\n[![XP Framework Module](https://raw.githubusercontent.com/xp-framework/web/master/static/xp-framework-badge.png)](https://github.com/xp-framework/core)\n[![BSD Licence](https://raw.githubusercontent.com/xp-framework/web/master/static/licence-bsd.png)](https://github.com/xp-framework/core/blob/master/LICENCE.md)\n[![Requires PHP 7.0+](https://raw.githubusercontent.com/xp-framework/web/master/static/php-7_0plus.svg)](http://php.net/)\n[![Supports PHP 8.0+](https://raw.githubusercontent.com/xp-framework/web/master/static/php-8_0plus.svg)](http://php.net/)\n[![Latest Stable Version](https://poser.pugx.org/xp-framework/ftp/version.png)](https://packagist.org/packages/xp-framework/ftp)\n\nUserland FTP protocol implementation, no dependency on PHP's *ftp* extension.\n\nClient\n------\n\n### Example: Uploading\n\n```php\nuse peer\\ftp\\{FtpConnection, FtpTransfer};\nuse io\\File;\n\n$c= (new FtpConnection('ftp://user:pass@example.com/'))-\u003econnect();\n\n// Upload logo.png to the connection's root directory\n$c-\u003erootDir()-\u003efile('logo.png')-\u003euploadFrom(new File('logo.png'));\n\n// Upload from a stream using ASCII mode\n$c-\u003erootDir()-\u003efile('README.md')-\u003euploadFrom(\n  new MemoryInputStream('Read me first!'),\n  FtpTransfer::ASCII\n);\n\n$c-\u003eclose();\n```\n\n### Example: Listing\n\n```php\nuse peer\\ftp\\FtpConnection;\n\n$c= (new FtpConnection('ftp://user:pass@example.com/'))-\u003econnect();\n\n// List root directory's contents\nforeach ($c-\u003erootDir()-\u003eentries() as $entry) {\n  Console::writeLine('- ', $entry);\n}\n\n$c-\u003eclose();\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxp-framework%2Fftp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxp-framework%2Fftp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxp-framework%2Fftp/lists"}