2017 © Pedro Peláez
 

library alioss-uploader

aliyun oss static file uploader

image

wangshixiang/alioss-uploader

aliyun oss static file uploader

  • Monday, May 28, 2018
  • by wangshixiang
  • Repository
  • 1 Watchers
  • 1 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

ali-oss-uploader

auto upload static file to aliyun oss, (*1)

how to use

1. install

composer require wangshixiang/alioss-uploader

2. config

<?php
include_once 'vendor/autoload.php';
use wangshixiang\alioss_uploader\lib\Main;
$main = new Main([
    'accessKeyId' => '',
    'accessKeySecret' => '',
    'endpoint' => '',
    'bucket' => '',
    'oss_basepath' => '',//'','app/' the base dir you want to upload to,empty for root path
    'ignore' => [
        '.git',
        '.idea',
        'bower_components',
        '.gitignore',
        'bower.json',
    ],// ignore path or file
    'source' => 'C:\Users\Administrator\Desktop\wuliu',
    'uploadList' => [
        'test.txt'
    ]//white list,upload list item only,empty for all file
]);
$main->run();

3. run

php index.php

The Versions

28/05 2018

dev-master

9999999-dev

aliyun oss static file uploader

  Sources   Download

MIT

The Requires

 

by witt

28/05 2018

0.0.3

0.0.3.0

aliyun oss static file uploader

  Sources   Download

MIT

The Requires

 

by witt