Download the PHP package mikeevstropov/vk-parser without Composer
On this page you can find all versions of the php package mikeevstropov/vk-parser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mikeevstropov/vk-parser
More information about mikeevstropov/vk-parser
Files in mikeevstropov/vk-parser
Package vk-parser
Short Description The parser of the social network vk.com
License Apache-2.0
Informations about the package vk-parser
mikeevstropov/vk-parser
The parser of the social network vk.com
Installation
Add dependency mikeevstropov/vk-parser
Usage
Sorry, but examples will not be provided for this library.
VideoParser Interface
-
__constructor
VideoParser constructor
Arguments:
client
(GuzzleHttp\ClientInterface) - client instance requiredlogger
(null|Psr\Log\LoggerInterface) - logger instance or null as default
Returns:
Mikeevstropov\VkParser\VideoParser
-
getSourceList
Getting the source list
Arguments:
ownerId
(string) - ID of the video owner is requiredid
(string) - ID of the video is requireduserSession
(null|GuzzleHttp\Cookie\CookieJar) - user session or null as default
Returns:
array
- contain a keys "static", "embed" and "stream"false
- video does not exist, private (adult also) or blocked by lawnull
- source of the video is not supported
ExtendedVideoParser Interface
-
__constructor
ExtendedVideoParser constructor
Arguments:
client
(GuzzleHttp\ClientInterface) - client instance requiredlogger
(null|Psr\Log\LoggerInterface) - logger instance or null as defaultcache
(null|Psr\SimpleCache\CacheInterface) - cache instance or null as default
Returns:
Mikeevstropov\VkParser\ExtendedVideoParser
-
getSourceList
Getting the source list
Arguments:
ownerId
(string) - ID of the video owner is requiredid
(string) - ID of the video is requireduserSession
(null|GuzzleHttp\Cookie\CookieJar) - user session or null as defaultcache
(bool) - use the cache, is true as defaultcacheTtl
(null|int) - number of seconds or null as default
Returns:
array
- contain a keys "static", "embed" and "stream"false
- video does not exist, private (adult also) or blocked by lawnull
- source of the video is not supported
Development
Clone
Go to project
Install dependencies
Set permissions
Configure testing environment in phpunit.xml
. Make sure the environment
variables "userLogin", "userPassword" and "applicationId" is not empty.
Increase composer timeout. Since composer by default set it to 300 seconds.
Run the tests
All versions of vk-parser with dependencies
guzzlehttp/guzzle Version ^6.0
psr/log Version ^1.0
psr/cache Version ^1.0
webmozart/assert Version ^1.2
mikeevstropov/user-agent Version ^1.0
danielstjules/stringy Version ^3.0