PHPackages                             okashoi/laravel5-conoha-object-handler - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. okashoi/laravel5-conoha-object-handler

ActiveLibrary[File &amp; Storage](/categories/file-storage)

okashoi/laravel5-conoha-object-handler
======================================

An object handler for the Conoha Object Storage on Laravel 5.

v1.0(9y ago)4149MITPHP

Since Nov 30Pushed 9y agoCompare

[ Source](https://github.com/okashoi/laravel5-conoha-object-handler)[ Packagist](https://packagist.org/packages/okashoi/laravel5-conoha-object-handler)[ RSS](/packages/okashoi-laravel5-conoha-object-handler/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Laravel 5 Conoha Object Handler
===============================

[](#laravel-5-conoha-object-handler)

[![CircleCI](https://camo.githubusercontent.com/778743763394788f6b415794b51996114af56960d7bcd58c6ce4db53ec5cb73d/68747470733a2f2f636972636c6563692e636f6d2f67682f6f6b6173686f692f6c61726176656c352d636f6e6f68612d6f626a6563742d68616e646c65722f747265652f6d61737465722e7376673f7374796c653d737667)](https://circleci.com/gh/okashoi/laravel5-conoha-object-handler/tree/master)

Laravel 5 Package to use [Conoha](https://www.conoha.jp/en/) Object Storage.

Installation
------------

[](#installation)

Install the package via [Composer](http://getcomposer.org).

```
composer require okashoi/laravel5-conoha-object-handler
```

To use the package, register the service provider in `config/app.php`.

```
    'providers' => [
        // ...
        Okashoi\Laravel5ConohaObjectHandler\ConohaObjectServiceProvider::class,
    ]
```

To configure your connection settings, execute the following command.

```
php artisan vendor:publish --provider="Okashoi\Laravel5ConohaObjectHandler\ConohaObjectServiceProvider"
```

Then set the following environment variables in `.env` file.

```
CONOHA_TENANT_ID
CONOHA_USERNAME
CONOHA_PASSWORD

```

Usage
-----

[](#usage)

### Create the Instance

[](#create-the-instance)

First of all you have to create an `ObjectHandler` instance.

```
use Okashoi\Laravel5ConohaObjectHandler\ObjectHandler;

$handler = new ObjectHandler();
```

Optionally, you can cache the auth token by specifying the cache key. (It is recommended. By default, the instance gets a new auth token per a request.)

```
use Okashoi\Laravel5ConohaObjectHandler\ObjectHandler;

// cache the auth token with key 'conoha_token'
$handler = new ObjectHandler('conoha_token');
```

Caching is implemented using [Laravel Cache API](https://laravel.com/docs/5.3/cache).

### Get a List of Objects

[](#get-a-list-of-objects)

Example

```
$objects = $handler->getList('container_name');
```

### Upload an Object

[](#upload-an-object)

Example

```
$handler->upload('container_name', 'object_name.txt', '/path/to/file/to/upload.txt', 'text/plain');
```

### Download an Object

[](#download-an-object)

The method `download()` will return [GuzzleHttp](http://docs.guzzlephp.org/en/latest/) response.

You can access the file content by `getBody()` method.

```
$response = $handler->download('container_name', 'object_name.txt');

echo $response->getBody();
```

Or you can make download response as follows.

```
$response = $handler->download('container_name', 'object_name.txt');

return reponse($response->getBody())->header('Content-Type', $response->getHeader('Content-Type'));
```

### Delete an Object

[](#delete-an-object)

Example

```
$handler->delete('container_name', 'object_name.txt');
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3498d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/166275b6549bcac4820fada8d1650bc7a85d13c4f540822f0e975ef1ba1c423e?d=identicon)[okashoi](/maintainers/okashoi)

---

Top Contributors

[![okashoi](https://avatars.githubusercontent.com/u/1924267?v=4)](https://github.com/okashoi "okashoi (11 commits)")

---

Tags

laravellaravel5ConoHa

### Embed Badge

![Health badge](/badges/okashoi-laravel5-conoha-object-handler/health.svg)

```
[![Health](https://phpackages.com/badges/okashoi-laravel5-conoha-object-handler/health.svg)](https://phpackages.com/packages/okashoi-laravel5-conoha-object-handler)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[spatie/laravel-health

Monitor the health of a Laravel application

87411.3M154](/packages/spatie-laravel-health)[venturedrake/laravel-crm

A free open source CRM built as a package for laravel projects

42010.0k](/packages/venturedrake-laravel-crm)[simplestats-io/laravel-client

Analytics for Laravel. Track visitors, registrations, and payments. Discover which channels actually drive revenue, not just traffic. Server-side, GDPR compliant, ad-blocker proof.

5019.3k](/packages/simplestats-io-laravel-client)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
