aliyun / Aliyun Oss Php Sdk Laravel
Licence: mit
A Laravel service provider for the AliCloud OSS SDK for PHP
Stars: ✭ 76
Projects that are alternatives of or similar to Aliyun Oss Php Sdk Laravel
Aliyunoss
阿里云 OSS 官方 SDK 的 Composer 封装,支持任何 PHP 项目,包括 Laravel、Symfony、TinyLara 等等。
Stars: ✭ 481 (+532.89%)
Mutual labels: laravel, oss
Aliyun Oss
Aliyun oss for Laravel5, also support flysystem adapter
Stars: ✭ 31 (-59.21%)
Mutual labels: laravel, oss
Env Providers
👷 Load Laravel service providers based on your application's environment.
Stars: ✭ 73 (-3.95%)
Mutual labels: laravel
Reactnativelaravellogin
Sample App for login using laravel 5.5 React Native and Redux
Stars: ✭ 75 (-1.32%)
Mutual labels: laravel
Laravel Lucene Search
Laravel 4.2, 5.* package for full-text search over Eloquent models based on ZF2 Lucene.
Stars: ✭ 75 (-1.32%)
Mutual labels: laravel
Elastic Scout Driver
Elasticsearch driver for Laravel Scout
Stars: ✭ 74 (-2.63%)
Mutual labels: laravel
Laravel Imageupload
Upload image using Laravel's build in function and resize it automatically.
Stars: ✭ 73 (-3.95%)
Mutual labels: laravel
Laraupdater
Enable Laravel App Self-Update. Allow your Laravel Application to auto-update itself.
Stars: ✭ 75 (-1.32%)
Mutual labels: laravel
Form Object
Form object to use with Vue components for sending data to a Laravel application using axios.
Stars: ✭ 73 (-3.95%)
Mutual labels: laravel
Laravel Multistep Forms
Responsable Multistep Form Builder for Laravel
Stars: ✭ 76 (+0%)
Mutual labels: laravel
Laravel Vuetify Spa
Laravel-Vue SPA starter project template with Vuetify frontend.
Stars: ✭ 73 (-3.95%)
Mutual labels: laravel
Blade Icons
A package to easily make use of SVG icons in your Laravel Blade views.
Stars: ✭ 1,181 (+1453.95%)
Mutual labels: laravel
Pingcrm Svelte
🦊 Ping CRM Svelte - A demo app to illustrate how Inertia.js works with Laravel and Svelte (hosted on a heroku free dyno).
Stars: ✭ 74 (-2.63%)
Mutual labels: laravel
AliCloud OSS Service Provider for Laravel 5
README of Chinese
Make a Reference in Your Laravel Project
-
Install the Laravel framework or the Lumen framework.
-
Create a Laravel or Lumen project, depending on the framework you have installed.
-
In the composer.json file of the new project, insert the following code:
{ "require": { "aliyuncs/aliyun-oss-php-sdk-laravel": "~1.2.0" } }
-
Run the following command:
composer update
For the Laravel Project
-
Edit the vendor/aliyun-oss/aliyun-oss-php-sdk-laravel/config/config.php file as follows:
return [ 'id' => 'your id', 'key' => 'your key', 'endpoint' => 'your endpoint', 'bucket' => 'your bucket' ];
-
Edit the config/app.php file and register OSS Service Provider:
'providers' => array( // ... AliyunOss\Laravel\AliyunOssServiceProvider::class, )
-
Edit the config/app.php file to insert an aliases segment.
'aliases' => array( // ... 'OSS' => AliyunOss\Laravel\AliyunOssFacade::class, )
-
Edit the routes/web.php file as follows:
Route::get('/', function() { $client = App::make('aliyun-oss'); $client->putObject("your bucket", "your object", "content you want to upload"); $result = $client->getObject("your bucket", "your boject"); echo $result; });
For the Lumen Project
-
Edit the vendor/aliyun-oss/aliyun-oss-php-sdk-laravel/config/config.php file as follows:
return [ 'id' => 'your id', 'key' => 'your key', 'endpoint' => 'your endpoint', 'bucket' => 'your bucket' ];
-
Edit the bootstrap/app.php file and register OSS Service Providers:
$app->register(AliyunOss\Laravel\AliyunOssServiceProvider::class);
-
Edit the routes/web.php file as follows:
$app->get('/', function () use ($app) { $client = $app->make('aliyun-oss'); $client->putObject('your bucket', 'your key', "content you want to upload"); $result = $client->getObject("your bucket", "your boject"); echo $result; });
Run the Test Case
- Set the following environment variables:
export OSS_ENDPOINT=''
export OSS_ACCESS_KEY_ID=''
export OSS_ACCESS_KEY_SECRET=''
export OSS_BUCKET=''
- Switch to the project directory and run the following command:
php vendor/bin/phpunit
License
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].