2017 © Pedro Peláez
 

library l4-dav

A simple WebDAV client library for Laravel 4

image

ngmy/l4-dav

A simple WebDAV client library for Laravel 4

  • Sunday, October 12, 2014
  • by ngmy
  • Repository
  • 1 Watchers
  • 7 Stars
  • 403 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

L4Dav

Build Status Coverage Status, (*1)

A simple WebDAV client library for Laravel 4., (*2)

Requirements

The L4Dav has the following requirements:, (*3)

  • PHP 5.3+, (*4)

  • Laravel 4.0+, (*5)

Dependencies

The L4Dav has the following dependencies:, (*6)

Installation

Add the package to your composer.json and run composer update:, (*7)

{
    "require": {
        "ngmy/l4-dav": "dev-master"
    }
}

Add the following to the list of service providers in app/config/app.php:, (*8)

'Ngmy\L4Dav\L4DavServiceProvider',

Add the following to the list of class aliases in app/config/app.php:, (*9)

'L4Dav' => 'Ngmy\L4Dav\Facades\L4Dav',

Configuration

After installing, you can publish the package's configuration file into your application, by running the following command:, (*10)

php artisan config:publish ngmy/l4-dav

This will publish the config file to app/config/packages/ngmy/l4-dav/config.php where you modify the package configuration., (*11)

Examples

Basic Usage

Download a file from the WebDAV server, (*12)

L4Dav::get('path/to/remote/file', '/path/to/local/file');

Upload a file to the WebDAV server, (*13)

L4Dav::put('/path/to/local/file', 'path/to/remote/file');

Delete a file on the WebDAV server, (*14)

L4Dav::delete('path/to/remote/file');

Copy a file on the WebDAV server, (*15)

L4Dav::copy('path/to/source/file', 'path/to/dest/file');

Rename a file on the WebDAV server, (*16)

L4Dav::move('path/to/source/file', 'path/to/dest/file');

Make a directory on the WebDAV server, (*17)

L4Dav::mkdir('path/to/remote/directory/');

Check the existence of a directory on the WebDAV server, (*18)

L4Dav::exists('path/to/remote/directory/');

List contents of a directory on the WebDAV server, (*19)

L4Dav::ls('path/to/remote/directory/');

Get Response

Get the status code, (*20)

$response = L4Dav::put('/path/to/local/file', 'path/to/remote/file');
$response->getStatus();

Get the status message, (*21)

$response = L4Dav::put('/path/to/local/file', 'path/to/remote/file');
$response->getMessage();

Get the response body, (*22)

$response = L4Dav::put('/path/to/local/file', 'path/to/remote/file');
$response->getBody();

The Versions

12/10 2014

dev-master

9999999-dev https://github.com/ngmy/l4-dav

A simple WebDAV client library for Laravel 4

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar ngmy

laravel 4 webdav

12/10 2014

0.5.0

0.5.0.0 https://github.com/ngmy/l4-dav

A simple WebDAV client library for Laravel 4

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar ngmy

laravel 4 webdav

24/03 2014

0.4.0

0.4.0.0 https://github.com/ngmy/l4-dav

A simple WebDAV client library for Laravel 4

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar ngmy

laravel 4 webdav

23/03 2014

0.3.0

0.3.0.0 https://github.com/ngmy/l4-dav

A simple WebDAV client library for Laravel 4

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar ngmy

laravel 4 webdav

03/03 2014

0.2.0

0.2.0.0 https://github.com/ngmy/l4-dav

A simple WebDAV client library for Laravel 4

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar ngmy

laravel 4 webdav

11/02 2014

0.1.0

0.1.0.0 https://github.com/ngmy/l4-dav

A simple WebDAV client library for Laravel 4

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar ngmy

laravel 4 webdav