Giter Site home page Giter Site logo

fdt2k / laravel-kdrive Goto Github PK

View Code? Open in Web Editor NEW

This project forked from infomaniak/laravel-kdrive

0.0 0.0 0.0 29 KB

Infomaniak kDrive Storage Driver for Laravel

Home Page: https://www.infomaniak.com/kdrive/

License: MIT License

PHP 100.00%

laravel-kdrive's Introduction

Laravel kDrive Storage Driver

Latest Version on Packagist Software License Total Downloads

This package contains an Infomaniak kDrive storage driver for Laravel.

Installation

Via Composer

composer require infomaniak/laravel-kdrive

Register the Service Provider

Starting with laravel 5.5, the Service Provider is automatically registered so may skip this instruction.

Add the Service provider to your config/app.php file:

'providers' => [
    \Infomaniak\KDrive\KDriveServiceProvider::class,
],

Configure a new disk

Add a new disk to your config/filesystems.php file:

'disks' => [
    'kdrive' => [
        'driver' => 'kdrive',
        'id' => env('KDRIVE_ID'),
        'username' => env('KDRIVE_USERNAME'),
        'password' => env('KDRIVE_PASSWORD'),
        'prefix' => env('KDRIVE_PREFIX', ''),
    ]
],

Setup your .env file

Add your credentials to your .env file. See Credentials for more information on obtaining them.

KDRIVE_ID=123456
[email protected]
KDRIVE_PASSWORD=********************
KDRIVE_PREFIX=

The KDRIVE_PREFIX is optional an you may remove it from you .env file is you do not use it. This settings allows you to define another folder as your root.

Credentials

To be able to connect to your kDrive, you'll need the following information.

  1. Your kDrive ID (Find your kDrive ID)
  2. Your login email address (the one you'd use on https://manager.infomaniak.com)
  3. A unique application password (Generate an application password)

Find your kDrive ID

  1. Connect to your kDrive directly on Infomaniak
  2. Find your drive's ID in the URL : https://drive.infomaniak.com/app/drive/[ID]/files

License

The MIT License (MIT). Please see the LICENSE for more information.

laravel-kdrive's People

Contributors

nhedger avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.