Compare commits

..

1 commit

Author SHA1 Message Date
Renovate
e289712c3d chore(deps): update dependency phpro/grumphp to v2 2025-03-07 17:11:30 +00:00
3 changed files with 84 additions and 176 deletions

View file

@ -4,12 +4,12 @@ This library lets you extract a video URL from a webpage
by providing a wrapper by providing a wrapper
for [youtube-dl](https://ytdl-org.github.io/youtube-dl/index.html). for [youtube-dl](https://ytdl-org.github.io/youtube-dl/index.html).
It is primarily used by [AllTube Download](https://code.ehwurscht.at/genuineparts/alltube). It is primarily used by [AllTube Download](https://github.com/Rudloff/alltube).
You can install it with: You can install it with:
```bash ```bash
composer require genuineparts/alltube-library composer require kumi/alltube-library
``` ```
You can then use it in your PHP code: You can then use it in your PHP code:
@ -24,3 +24,5 @@ $video = $downloader->getVideo('https://www.youtube.com/watch?v=dQw4w9WgXcQ');
$video->getUrl(); $video->getUrl();
``` ```
You can also have a look at
this [example project](https://github.com/Rudloff/alltube-example-project).

View file

@ -1,5 +1,5 @@
{ {
"name": "genuineparts/alltube-library", "name": "kumi/alltube-library",
"description": "PHP wrapper for youtube-dl", "description": "PHP wrapper for youtube-dl",
"license": "GPL-3.0-only", "license": "GPL-3.0-only",
"homepage": "http://alltubedownload.net/", "homepage": "http://alltubedownload.net/",
@ -10,7 +10,7 @@
"symfony/process": "^4.0|^5.0" "symfony/process": "^4.0|^5.0"
}, },
"require-dev": { "require-dev": {
"phpro/grumphp": "^0.18.0", "phpro/grumphp": "^2.0.0",
"phpstan/phpstan": "^0.12.29", "phpstan/phpstan": "^0.12.29",
"roave/security-advisories": "dev-master", "roave/security-advisories": "dev-master",
"squizlabs/php_codesniffer": "^3.5", "squizlabs/php_codesniffer": "^3.5",

250
composer.lock generated
View file

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "fc113f753d9b94aa584ca3a3e85bb57c", "content-hash": "9a53e4f77d715163307f6736896493b8",
"packages": [ "packages": [
{ {
"name": "guzzlehttp/guzzle", "name": "guzzlehttp/guzzle",
@ -370,16 +370,16 @@
}, },
{ {
"name": "psr/log", "name": "psr/log",
"version": "1.1.4", "version": "1.1.3",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/php-fig/log.git", "url": "https://github.com/php-fig/log.git",
"reference": "d49695b909c3b7628b6289db5479a1c204601f11" "reference": "0f73288fd15629204f9d42b7055f72dacbe811fc"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/php-fig/log/zipball/d49695b909c3b7628b6289db5479a1c204601f11", "url": "https://api.github.com/repos/php-fig/log/zipball/0f73288fd15629204f9d42b7055f72dacbe811fc",
"reference": "d49695b909c3b7628b6289db5479a1c204601f11", "reference": "0f73288fd15629204f9d42b7055f72dacbe811fc",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -403,7 +403,7 @@
"authors": [ "authors": [
{ {
"name": "PHP-FIG", "name": "PHP-FIG",
"homepage": "https://www.php-fig.org/" "homepage": "http://www.php-fig.org/"
} }
], ],
"description": "Common interface for logging libraries", "description": "Common interface for logging libraries",
@ -413,10 +413,7 @@
"psr", "psr",
"psr-3" "psr-3"
], ],
"support": { "time": "2020-03-23T09:12:05+00:00"
"source": "https://github.com/php-fig/log/tree/1.1.4"
},
"time": "2021-05-03T11:20:27+00:00"
}, },
{ {
"name": "ralouphie/getallheaders", "name": "ralouphie/getallheaders",
@ -711,35 +708,34 @@
}, },
{ {
"name": "symfony/polyfill-php80", "name": "symfony/polyfill-php80",
"version": "v1.31.0", "version": "v1.17.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/polyfill-php80.git", "url": "https://github.com/symfony/polyfill-php80.git",
"reference": "60328e362d4c2c802a54fcbf04f9d3fb892b4cf8" "reference": "5e30b2799bc1ad68f7feb62b60a73743589438dd"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/60328e362d4c2c802a54fcbf04f9d3fb892b4cf8", "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/5e30b2799bc1ad68f7feb62b60a73743589438dd",
"reference": "60328e362d4c2c802a54fcbf04f9d3fb892b4cf8", "reference": "5e30b2799bc1ad68f7feb62b60a73743589438dd",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=7.2" "php": ">=7.0.8"
}, },
"type": "library", "type": "library",
"extra": { "extra": {
"thanks": { "branch-alias": {
"url": "https://github.com/symfony/polyfill", "dev-master": "1.17-dev"
"name": "symfony/polyfill"
} }
}, },
"autoload": { "autoload": {
"files": [
"bootstrap.php"
],
"psr-4": { "psr-4": {
"Symfony\\Polyfill\\Php80\\": "" "Symfony\\Polyfill\\Php80\\": ""
}, },
"files": [
"bootstrap.php"
],
"classmap": [ "classmap": [
"Resources/stubs" "Resources/stubs"
] ]
@ -770,44 +766,32 @@
"portable", "portable",
"shim" "shim"
], ],
"support": { "time": "2020-05-12T16:47:27+00:00"
"source": "https://github.com/symfony/polyfill-php80/tree/v1.31.0"
},
"funding": [
{
"url": "https://symfony.com/sponsor",
"type": "custom"
},
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
"time": "2024-09-09T11:45:10+00:00"
}, },
{ {
"name": "symfony/process", "name": "symfony/process",
"version": "v5.4.47", "version": "v5.1.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/process.git", "url": "https://github.com/symfony/process.git",
"reference": "5d1662fb32ebc94f17ddb8d635454a776066733d" "reference": "7f6378c1fa2147eeb1b4c385856ce9de0d46ebd1"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/process/zipball/5d1662fb32ebc94f17ddb8d635454a776066733d", "url": "https://api.github.com/repos/symfony/process/zipball/7f6378c1fa2147eeb1b4c385856ce9de0d46ebd1",
"reference": "5d1662fb32ebc94f17ddb8d635454a776066733d", "reference": "7f6378c1fa2147eeb1b4c385856ce9de0d46ebd1",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=7.2.5", "php": ">=7.2.5",
"symfony/polyfill-php80": "^1.16" "symfony/polyfill-php80": "^1.15"
}, },
"type": "library", "type": "library",
"extra": {
"branch-alias": {
"dev-master": "5.1-dev"
}
},
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"Symfony\\Component\\Process\\": "" "Symfony\\Component\\Process\\": ""
@ -830,26 +814,9 @@
"homepage": "https://symfony.com/contributors" "homepage": "https://symfony.com/contributors"
} }
], ],
"description": "Executes commands in sub-processes", "description": "Symfony Process Component",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"support": { "time": "2020-05-30T20:35:19+00:00"
"source": "https://github.com/symfony/process/tree/v5.4.47"
},
"funding": [
{
"url": "https://symfony.com/sponsor",
"type": "custom"
},
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
"time": "2024-11-06T11:36:42+00:00"
} }
], ],
"packages-dev": [ "packages-dev": [
@ -1169,20 +1136,20 @@
}, },
{ {
"name": "phpstan/phpstan", "name": "phpstan/phpstan",
"version": "0.12.100", "version": "0.12.29",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/phpstan/phpstan.git", "url": "https://github.com/phpstan/phpstan.git",
"reference": "48236ddf823547081b2b153d1cd2994b784328c3" "reference": "9771daaf6b95c6313b908d0bcdee0afcd51f838a"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/48236ddf823547081b2b153d1cd2994b784328c3", "url": "https://api.github.com/repos/phpstan/phpstan/zipball/9771daaf6b95c6313b908d0bcdee0afcd51f838a",
"reference": "48236ddf823547081b2b153d1cd2994b784328c3", "reference": "9771daaf6b95c6313b908d0bcdee0afcd51f838a",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": "^7.1|^8.0" "php": "^7.1"
}, },
"conflict": { "conflict": {
"phpstan/phpstan-shim": "*" "phpstan/phpstan-shim": "*"
@ -1207,25 +1174,7 @@
"MIT" "MIT"
], ],
"description": "PHPStan - PHP Static Analysis Tool", "description": "PHPStan - PHP Static Analysis Tool",
"support": { "time": "2020-06-14T14:10:59+00:00"
"issues": "https://github.com/phpstan/phpstan/issues",
"source": "https://github.com/phpstan/phpstan/tree/0.12.100"
},
"funding": [
{
"url": "https://github.com/ondrejmirtes",
"type": "github"
},
{
"url": "https://github.com/phpstan",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/phpstan/phpstan",
"type": "tidelift"
}
],
"time": "2022-11-01T09:52:08+00:00"
}, },
{ {
"name": "psr/container", "name": "psr/container",
@ -1648,16 +1597,16 @@
}, },
{ {
"name": "squizlabs/php_codesniffer", "name": "squizlabs/php_codesniffer",
"version": "3.11.3", "version": "3.5.5",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git", "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
"reference": "ba05f990e79cbe69b9f35c8c1ac8dca7eecc3a10" "reference": "73e2e7f57d958e7228fce50dc0c61f58f017f9f6"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/ba05f990e79cbe69b9f35c8c1ac8dca7eecc3a10", "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/73e2e7f57d958e7228fce50dc0c61f58f017f9f6",
"reference": "ba05f990e79cbe69b9f35c8c1ac8dca7eecc3a10", "reference": "73e2e7f57d958e7228fce50dc0c61f58f017f9f6",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1667,11 +1616,11 @@
"php": ">=5.4.0" "php": ">=5.4.0"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.3.4" "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0"
}, },
"bin": [ "bin": [
"bin/phpcbf", "bin/phpcs",
"bin/phpcs" "bin/phpcbf"
], ],
"type": "library", "type": "library",
"extra": { "extra": {
@ -1686,49 +1635,16 @@
"authors": [ "authors": [
{ {
"name": "Greg Sherwood", "name": "Greg Sherwood",
"role": "Former lead" "role": "lead"
},
{
"name": "Juliette Reinders Folmer",
"role": "Current lead"
},
{
"name": "Contributors",
"homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer/graphs/contributors"
} }
], ],
"description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.", "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
"homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer", "homepage": "https://github.com/squizlabs/PHP_CodeSniffer",
"keywords": [ "keywords": [
"phpcs", "phpcs",
"standards", "standards"
"static analysis"
], ],
"support": { "time": "2020-04-17T01:09:41+00:00"
"issues": "https://github.com/PHPCSStandards/PHP_CodeSniffer/issues",
"security": "https://github.com/PHPCSStandards/PHP_CodeSniffer/security/policy",
"source": "https://github.com/PHPCSStandards/PHP_CodeSniffer",
"wiki": "https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki"
},
"funding": [
{
"url": "https://github.com/PHPCSStandards",
"type": "github"
},
{
"url": "https://github.com/jrfnl",
"type": "github"
},
{
"url": "https://opencollective.com/php_codesniffer",
"type": "open_collective"
},
{
"url": "https://thanks.dev/phpcsstandards",
"type": "thanks_dev"
}
],
"time": "2025-01-23T17:04:15+00:00"
}, },
{ {
"name": "symfony/config", "name": "symfony/config",
@ -2401,20 +2317,20 @@
}, },
{ {
"name": "symfony/polyfill-mbstring", "name": "symfony/polyfill-mbstring",
"version": "v1.31.0", "version": "v1.26.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/polyfill-mbstring.git", "url": "https://github.com/symfony/polyfill-mbstring.git",
"reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341" "reference": "9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/85181ba99b2345b0ef10ce42ecac37612d9fd341", "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e",
"reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341", "reference": "9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=7.2" "php": ">=7.1"
}, },
"provide": { "provide": {
"ext-mbstring": "*" "ext-mbstring": "*"
@ -2424,9 +2340,12 @@
}, },
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": {
"dev-main": "1.26-dev"
},
"thanks": { "thanks": {
"url": "https://github.com/symfony/polyfill", "name": "symfony/polyfill",
"name": "symfony/polyfill" "url": "https://github.com/symfony/polyfill"
} }
}, },
"autoload": { "autoload": {
@ -2461,7 +2380,7 @@
"shim" "shim"
], ],
"support": { "support": {
"source": "https://github.com/symfony/polyfill-mbstring/tree/v1.31.0" "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.26.0"
}, },
"funding": [ "funding": [
{ {
@ -2477,7 +2396,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2024-09-09T11:45:10+00:00" "time": "2022-05-24T11:49:31+00:00"
}, },
{ {
"name": "symfony/polyfill-php73", "name": "symfony/polyfill-php73",
@ -2668,33 +2587,32 @@
}, },
{ {
"name": "symfony/var-dumper", "name": "symfony/var-dumper",
"version": "v5.4.48", "version": "v5.1.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/var-dumper.git", "url": "https://github.com/symfony/var-dumper.git",
"reference": "42f18f170aa86d612c3559cfb3bd11a375df32c8" "reference": "46a942903059b0b05e601f00eb64179e05578c0f"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/var-dumper/zipball/42f18f170aa86d612c3559cfb3bd11a375df32c8", "url": "https://api.github.com/repos/symfony/var-dumper/zipball/46a942903059b0b05e601f00eb64179e05578c0f",
"reference": "42f18f170aa86d612c3559cfb3bd11a375df32c8", "reference": "46a942903059b0b05e601f00eb64179e05578c0f",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=7.2.5", "php": ">=7.2.5",
"symfony/polyfill-mbstring": "~1.0", "symfony/polyfill-mbstring": "~1.0",
"symfony/polyfill-php80": "^1.16" "symfony/polyfill-php80": "^1.15"
}, },
"conflict": { "conflict": {
"phpunit/phpunit": "<5.4.3",
"symfony/console": "<4.4" "symfony/console": "<4.4"
}, },
"require-dev": { "require-dev": {
"ext-iconv": "*", "ext-iconv": "*",
"symfony/console": "^4.4|^5.0|^6.0", "symfony/console": "^4.4|^5.0",
"symfony/http-kernel": "^4.4|^5.0|^6.0", "symfony/process": "^4.4|^5.0",
"symfony/process": "^4.4|^5.0|^6.0", "twig/twig": "^2.4|^3.0"
"symfony/uid": "^5.1|^6.0",
"twig/twig": "^2.13|^3.0.4"
}, },
"suggest": { "suggest": {
"ext-iconv": "To convert non-UTF-8 strings to UTF-8 (or symfony/polyfill-iconv in case ext-iconv cannot be used).", "ext-iconv": "To convert non-UTF-8 strings to UTF-8 (or symfony/polyfill-iconv in case ext-iconv cannot be used).",
@ -2705,6 +2623,11 @@
"Resources/bin/var-dump-server" "Resources/bin/var-dump-server"
], ],
"type": "library", "type": "library",
"extra": {
"branch-alias": {
"dev-master": "5.1-dev"
}
},
"autoload": { "autoload": {
"files": [ "files": [
"Resources/functions/dump.php" "Resources/functions/dump.php"
@ -2730,30 +2653,13 @@
"homepage": "https://symfony.com/contributors" "homepage": "https://symfony.com/contributors"
} }
], ],
"description": "Provides mechanisms for walking through any arbitrary PHP variable", "description": "Symfony mechanism for exploring and dumping PHP variables",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"keywords": [ "keywords": [
"debug", "debug",
"dump" "dump"
], ],
"support": { "time": "2020-05-30T20:35:19+00:00"
"source": "https://github.com/symfony/var-dumper/tree/v5.4.48"
},
"funding": [
{
"url": "https://symfony.com/sponsor",
"type": "custom"
},
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
"time": "2024-11-08T15:21:10+00:00"
}, },
{ {
"name": "symfony/yaml", "name": "symfony/yaml",
@ -2829,9 +2735,9 @@
"platform": { "platform": {
"ext-json": "*" "ext-json": "*"
}, },
"platform-dev": {}, "platform-dev": [],
"platform-overrides": { "platform-overrides": {
"php": "7.3.11" "php": "7.3.11"
}, },
"plugin-api-version": "2.6.0" "plugin-api-version": "2.3.0"
} }