Download the PHP package dptsi/laravel-storage without Composer

On this page you can find all versions of the php package dptsi/laravel-storage. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-storage

Laravel Storage

A helper package for access ITS file storage API in laravel framework

Requirements

  1. PHP 7.4 or greater
  2. Laravel version 8

Installation

Install using composer:

example

Upload

@method static mixed upload(\Illuminate\Http\File|\Illuminate\Http\UploadedFile $request)

Using form(\Illuminate\Http\UploadedFile)

Using local file(\Illuminate\Http\File)

Success response

Delete

@method static mixed delete(string $file_id)

Success response

Check Status

Success

@method static string statusSuccess()

Error

@method static string statusError()

AWS

Make sure your aws config exist on filestorage.php

Upload to Aws

@method static mixed awsUpload(\Illuminate\Http\File|\Illuminate\Http\UploadedFile $request, string $subdirectory = null)

Using form(\Illuminate\Http\UploadedFile) Using the optional parameter sub-directory to make files uploaded to a sub-directory instead of the root directory. File ID on AWS S3 use name of uploaded file instead generate uuid for that file, so make sure filename is unique.

Make Temporary public link from Aws S3

You can use temporary public uri with

@method static mixed awsGetTemporaryPublicLink(string $aws_file_id, DateTime $datetime = null)

Using fileid string and optional Datetime for how long the url can be used, by default the url can be used for 30 minutes.

Get File From Aws

You can get file from aws S3 storage with

@method static mixed awsGetFileById(string $aws_file_id)

Google Storage

Make sure your google config exist on filestorage.php

Upload to Google Storage

@method static mixed gcsUpload(\Illuminate\Http\File|\Illuminate\Http\UploadedFile $data, string $subdirectory = null, string $bucketname = null, string $projectId = null) Using form(\Illuminate\Http\UploadedFile | \Illuminate\Http\File) Using the optional parameter sub-directory to make files uploaded to a sub-directory instead of the root directory. File ID on Google Storage use name of uploaded file instead generate uuid for that file, so make sure filename is unique.

Delete from Google Storage

@method static mixed gcsDelete(string $gcs_file_id, string $bucketname = null, string $projectId = null)

Get File by ID from Google Storage

@method static mixed gcsGetFileById(string $gcs_file_id, string $bucketname = null, string $projectId = null) Return base64string data and metadata of the object

Download File To Local Storage

@method static mixed gcsDownloadFile(string $gcs_file_id, string $savepath, string $bucketname = null, string $projectId = null) File downloaded into system directory

Get File as Binary String

@method static mixed gcsGetFileByIdAsString(string $gcs_file_id, string $bucketname = null, string $projectId = null) Return object

example

Get File as Binary Stream

@method static mixed gcsGetFileByIdAsStream(string $gcs_file_id, string $bucketname = null, string $projectId = null) Return object

example

Make Temporary public link from Google Storage

You can use temporary public uri with

@method static mixed gcsGetTemporaryPublicLink(string $gcs_file_id, DateTime $datetime = null, string $bucketname = null, string $projectId = null) Return object


All versions of laravel-storage with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0.2
laravel/framework Version ^9.21|^10.0|^11.0
ext-json Version *
aws/aws-sdk-php Version ^3.20.0
guzzlehttp/guzzle Version ^7.8
google/cloud-storage Version ^1.42
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dptsi/laravel-storage contains the following files

Loading the files please wait ....