2017 © Pedro PelĂĄez
 

library php-ocsclient

PHP library to communicate with Oktawave OCS

image

mateusz-blaszczyk/php-ocsclient

PHP library to communicate with Oktawave OCS

  • Wednesday, June 27, 2018
  • by MateuszBlaszczyk
  • Repository
  • 1 Watchers
  • 0 Stars
  • 24 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 12 Forks
  • 0 Open issues
  • 9 Versions
  • 41 % Grown

The README.md

Oktawave - PHP OCS Client

php-ocsclient is a PHP library to communicate with Oktawave OCS., (*1)

Installation

Installing via Composer

The recommended way to install OCS Client is through Composer., (*2)

# Install Composer
curl -sS https://getcomposer.org/installer | php

# Add OCS Client dependency to your project
php composer.phar require oktawave/php-ocsclient:*

After installing, you need to require Composer's autoloader:, (*3)

<?php

require_once 'vendor/autoload.php';

Standalone installation

  1. Download the neweset release
  2. Include initialization script in your code that loads all required classes
<?php

require_once 'path/to/ocs/ocs_init.php';

Usage

For all example cases of using client you should take a look at the example code from examples/OCSClient.php., (*4)

Authentication

To use OCS you must authenticate your account., (*5)

<?php
// Create new OSC Client instance for "somebucket" bucket
$OCSClient = new Oktawave_OCS_OCSClient('somebucket');

// Authenticate your OCS user
$OCSClient->authenticate('account:user', 'pa$$w0rd');

Objects manipulation

<?php
// Upload single object
$url = $OCSClient->createObject('/path/to/file.txt', 'destination/path/file.txt');

// Download object
$fileContent = $OCSClient->downloadObject('destination/path/file.txt');

//  Get a list of all objects
$list = $OCSClient->listObjects();

Copyright (C) 2014 Oktawave Sp. z o.o. - oktawave.com, (*6)

Released under GNU General Public License v3.0. For the full copyright and license information, please view the LICENSE file that was distributed with this source code., (*7)

The Versions

27/06 2018

dev-master

9999999-dev

PHP library to communicate with Oktawave OCS

  Sources   Download

GPL-3.0

The Requires

  • php >=5.2.0
  • ext-json *
  • ext-curl *

 

client storage php-ocsclient ocs oktawave

27/06 2018

1.1.5

1.1.5.0

PHP library to communicate with Oktawave OCS

  Sources   Download

GPL-3.0

The Requires

  • php >=5.2.0
  • ext-json *
  • ext-curl *

 

client storage php-ocsclient ocs oktawave

26/06 2018

dev-object-from-blob

dev-object-from-blob

PHP library to communicate with Oktawave OCS

  Sources   Download

GPL-3.0

The Requires

  • php >=5.2.0
  • ext-json *
  • ext-curl *

 

client storage php-ocsclient ocs oktawave

25/06 2018

1.2.0

1.2.0.0

PHP library to communicate with Oktawave OCS

  Sources   Download

GPL-3.0

The Requires

  • php >=5.2.0
  • ext-json *
  • ext-curl *

 

client storage php-ocsclient ocs oktawave

08/04 2018

1.1.4

1.1.4.0

PHP library to communicate with Oktawave OCS

  Sources   Download

GPL-3.0

The Requires

  • php >=5.2.0
  • ext-json *
  • ext-curl *

 

client storage php-ocsclient ocs oktawave

11/07 2017

1.1.3

1.1.3.0

PHP library to communicate with Oktawave OCS

  Sources   Download

GPL-3.0

The Requires

  • php >=5.2.0
  • ext-json *
  • ext-curl *

 

client storage php-ocsclient ocs oktawave

04/07 2017

1.1.2

1.1.2.0

PHP library to communicate with Oktawave OCS

  Sources   Download

GPL-3.0

The Requires

  • php >=5.2.0
  • ext-json *
  • ext-curl *

 

client storage php-ocsclient ocs oktawave

04/07 2017

1.1.1

1.1.1.0

PHP library to communicate with Oktawave OCS

  Sources   Download

GPL-3.0

The Requires

  • php >=5.2.0
  • ext-json *
  • ext-curl *

 

client storage php-ocsclient ocs oktawave

02/07 2017

1.1.0

1.1.0.0

PHP library to communicate with Oktawave OCS

  Sources   Download

GPL-3.0

The Requires

  • php >=5.2.0
  • ext-json *
  • ext-curl *

 

client storage php-ocsclient ocs oktawave