{"id":22793185,"url":"https://github.com/ngmy/l4-dav","last_synced_at":"2025-10-22T02:56:10.740Z","repository":{"id":13971563,"uuid":"16672166","full_name":"ngmy/l4-dav","owner":"ngmy","description":"The WebDAV client for PHP","archived":false,"fork":false,"pushed_at":"2021-07-04T16:03:03.000Z","size":780,"stargazers_count":9,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-19T12:16:20.465Z","etag":null,"topics":["client","library","php","php-library","psr-17","psr-18","psr-7","stream","webdav","webdav-client"],"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/ngmy.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":"2014-02-09T18:19:31.000Z","updated_at":"2024-06-28T17:17:11.000Z","dependencies_parsed_at":"2022-07-31T16:49:01.471Z","dependency_job_id":null,"html_url":"https://github.com/ngmy/l4-dav","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/ngmy/l4-dav","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngmy%2Fl4-dav","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngmy%2Fl4-dav/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngmy%2Fl4-dav/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngmy%2Fl4-dav/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ngmy","download_url":"https://codeload.github.com/ngmy/l4-dav/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngmy%2Fl4-dav/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279003718,"owners_count":26083610,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["client","library","php","php-library","psr-17","psr-18","psr-7","stream","webdav","webdav-client"],"created_at":"2024-12-12T03:18:27.803Z","updated_at":"2025-10-10T11:39:59.341Z","avatar_url":"https://github.com/ngmy.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# L4Dav\n\n[![Build Status](https://travis-ci.org/ngmy/l4-dav.png?branch=master)](https://travis-ci.org/ngmy/l4-dav)\n[![Coverage Status](https://coveralls.io/repos/ngmy/l4-dav/badge.png?branch=master)](https://coveralls.io/r/ngmy/l4-dav?branch=master)\n\nA simple WebDAV client library for Laravel 4.\n\n## Requirements\n\nThe L4Dav has the following requirements:\n\n  * PHP 5.3+\n\n  * Laravel 4.0+\n\n## Dependencies\n\nThe L4Dav has the following dependencies:\n\n  * [anlutro/php-curl](https://github.com/anlutro/php-curl)\n\n## Installation\n\nAdd the package to your `composer.json` and run `composer update`:\n\n```json\n{\n    \"require\": {\n        \"ngmy/l4-dav\": \"dev-master\"\n    }\n}\n```\n\nAdd the following to the list of service providers in `app/config/app.php`:\n\n```php\n'Ngmy\\L4Dav\\L4DavServiceProvider',\n```\n\nAdd the following to the list of class aliases in `app/config/app.php`:\n\n```php\n'L4Dav' =\u003e 'Ngmy\\L4Dav\\Facades\\L4Dav',\n```\n\n## Configuration\n\nAfter installing, you can publish the package's configuration file into your application, by running the following command:\n\n```\nphp artisan config:publish ngmy/l4-dav\n```\n\nThis will publish the config file to `app/config/packages/ngmy/l4-dav/config.php` where you modify the package configuration.\n\n## Examples\n\n### Basic Usage\n\n**Download a file from the WebDAV server**\n\n```php\nL4Dav::get('path/to/remote/file', '/path/to/local/file');\n```\n\n**Upload a file to the WebDAV server**\n\n```php\nL4Dav::put('/path/to/local/file', 'path/to/remote/file');\n```\n\n**Delete a file on the WebDAV server**\n\n```php\nL4Dav::delete('path/to/remote/file');\n```\n\n**Copy a file on the WebDAV server**\n\n```php\nL4Dav::copy('path/to/source/file', 'path/to/dest/file');\n```\n\n**Rename a file on the WebDAV server**\n\n```php\nL4Dav::move('path/to/source/file', 'path/to/dest/file');\n```\n\n**Make a directory on the WebDAV server**\n\n```php\nL4Dav::mkdir('path/to/remote/directory/');\n```\n\n**Check the existence of a directory on the WebDAV server**\n\n```php\nL4Dav::exists('path/to/remote/directory/');\n```\n\n**List contents of a directory on the WebDAV server**\n\n```php\nL4Dav::ls('path/to/remote/directory/');\n```\n\n### Get Response\n\n**Get the status code**\n```php\n$response = L4Dav::put('/path/to/local/file', 'path/to/remote/file');\n$response-\u003egetStatus();\n```\n\n**Get the status message**\n```php\n$response = L4Dav::put('/path/to/local/file', 'path/to/remote/file');\n$response-\u003egetMessage();\n```\n\n**Get the response body**\n```php\n$response = L4Dav::put('/path/to/local/file', 'path/to/remote/file');\n$response-\u003egetBody();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngmy%2Fl4-dav","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fngmy%2Fl4-dav","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngmy%2Fl4-dav/lists"}