Skip to content

BrainStormDevel/google-drive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

google-drive

Installation

composer require BrainStorm/google-drive

Usage

<?php

require_once __DIR__ . '/vendor/autoload.php';

use BrainStorm\google\GoogleDrive;

$googleDrive = new GoogleDrive([
    'pathToCredentials' => __DIR__ . '/credentials.json', // Required
    'pathToToken' => __DIR__ . '/token.json', // Required
]);

$googleDrive->upload(
    __DIR__ . '/test.txt',  // Required
    [
        '<folder id>', // Optional
        '<folder id>', // Optional
    ]
);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages