Download the PHP package siyahmadde/yandex-disk-api without Composer
On this page you can find all versions of the php package siyahmadde/yandex-disk-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download siyahmadde/yandex-disk-api
More information about siyahmadde/yandex-disk-api
Files in siyahmadde/yandex-disk-api
Package yandex-disk-api
Short Description This library is built to use Yandex Disk API with PHP in object oriented way.
License
Informations about the package yandex-disk-api
Yandex Disk Api Client
This library is built to deal with Yandex Disk API.
Installation
Usage
First you need to create an alias
-
Get an Id from Yandex then use that id to create an object from the class
-
Now you need to obtain a token from Yandex. To get the url where you can obtain the token call getLoginToken method.
-
The method call above, will return the url where you can get the token. The url will redirect you to the call back url specified while creating Yandex Disk API app. In your call back file you can call the following method. It will return the token.
-
Having obtained to token, you need to set it.
-
call this if you want PHP objects returned instead of default JSON strings
- Now, you are ready to use all methods. For example:
-
You can also:
-
Upload files to your Yandex disk.
-
Download files from your Yandex disk
-
Download files to your Yandex disk.
-
Save public files from Yandex disk to your Yandex disk.
-- And many more, see offical documentation