Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install micro-video SDK in Laravel

2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article will explain in detail how to install micro-video SDK in Laravel. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

How to install micro-video SDK?

This adaptor plug-in is an extension developed for Laravel and will provide support for the entire PHP in the future.

To install microvideo SDK, you only need to execute the following command in the root directory of your Laravel project

Composer require yuecode/uvs

After the execution is successful, open your Laravel's config directory, open app.php, find providers, and add

\ YueCode\ Uvs\ UvsProvider::class

Save, exit.

Execute a command

Php artisan vendor:publish

Uvs.php is automatically generated in the config directory with several parameters that need to be configured for micro video.

Use the editor to open the uvs.php file and fill in the configuration items.

How to use micro-video

If you need to use the SDK of microvideo in a file, add it to the code

Use YueCode\ Uvs\ Uvs

Then use static methods to call the relevant methods, such as

The difference between Uvs::listFolder ('/') Uvs and Video objects

The extension encapsulates some functions.

When using it, you can choose to use

Use YueCode\ Uvs\ Uvs

Or

Use YueCode\ Uvs\ Video

The difference is that Uvs encapsulates the function. By default, the Bucket; Video defined in the uvs.php file is used as an official function, and you need to add bucketId as a parameter. Related documents can be seen: official documents

Available function

Upload: uploading video files

CreateFolder: create folder

ListFolder: directory list

PrefixSearch: prefix search

UpdateFolder: update catalog information

Update: updating file information

StatFolder: directory information query

Stat: file information query

DelFolder: deleting a directory

Del: deleting fil

This is the end of the article on "how to install micro-video SDK in Laravel". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report