Skip to content

PromoRepublic/media-storage-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Media Storage Client

Requirements:

  • PHP 7.4

Installation

Add to composer require:

"promorepublic/media-storage-sdk": "^0.1

Add to composer repositories:

{"type":"git","url":"https://github.com/PromoRepublic/media-storage-sdk"}

Public methods

  • uploadMedia(string): string to upload a media file to PR google storage
  • findAndUploadImages(array): array to upload all media files in array to PR google storage. It takes each string value that contains .jpg|.jpeg|.png|.gif and creates media_storage_$KEY index at the same to the string value level of array with a link to PR google storage. It converts each key of array to string

About

A client for the media-storage service

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages