Compare commits

..

12 commits

Author SHA1 Message Date
5677551b3f fix name 2025-05-01 13:24:28 +02:00
d0e2337def Update README.md 2025-05-01 11:57:40 +02:00
Kumi
23cdbed023 Merge pull request 'fix(deps): update dependency psr/log to v1.1.4' (#23) from renovate/psr-log-1.x-lockfile into main
Reviewed-on: https://git.private.coffee/kumi/alltube-library/pulls/23
2025-04-21 20:29:49 +00:00
Renovate
03011a4385 fix(deps): update dependency psr/log to v1.1.4 2025-04-18 18:07:44 +00:00
Kumi
6804801f2c Merge pull request 'chore(deps): update dependency phpstan/phpstan to v0.12.100' (#2) from renovate/phpstan-packages into main
Reviewed-on: https://git.private.coffee/kumi/alltube-library/pulls/2
2025-03-12 12:10:27 +00:00
Kumi
197fafe9f9 Merge branch 'main' into renovate/phpstan-packages 2025-03-12 12:10:18 +00:00
Kumi
63a3f20507 Merge pull request 'chore(deps): update dependency squizlabs/php_codesniffer to v3.11.3' (#6) from renovate/squizlabs-php_codesniffer-3.x-lockfile into main
Reviewed-on: https://git.private.coffee/kumi/alltube-library/pulls/6
2025-03-12 12:10:00 +00:00
Kumi
e44ea150e8 Merge branch 'main' into renovate/squizlabs-php_codesniffer-3.x-lockfile 2025-03-12 12:09:53 +00:00
Kumi
5adf3d18fb Merge pull request 'fix(deps): update symfony packages' (#7) from renovate/symfony into main
Reviewed-on: https://git.private.coffee/kumi/alltube-library/pulls/7
2025-03-12 12:09:41 +00:00
Renovate
6b87d66609 fix(deps): update symfony packages 2025-03-12 12:09:11 +00:00
Renovate
1444dbe6db chore(deps): update dependency squizlabs/php_codesniffer to v3.11.3 2025-03-12 12:08:58 +00:00
Renovate
deab626dba chore(deps): update dependency phpstan/phpstan to v0.12.100 2025-03-12 12:08:37 +00:00
3 changed files with 176 additions and 84 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://github.com/Rudloff/alltube). It is primarily used by [AllTube Download](https://code.ehwurscht.at/genuineparts/alltube).
You can install it with: You can install it with:
```bash ```bash
composer require kumi/alltube-library composer require genuineparts/alltube-library
``` ```
You can then use it in your PHP code: You can then use it in your PHP code:
@ -24,5 +24,3 @@ $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": "kumi/alltube-library", "name": "genuineparts/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/",
@ -11,7 +11,7 @@
}, },
"require-dev": { "require-dev": {
"phpro/grumphp": "^0.18.0", "phpro/grumphp": "^0.18.0",
"phpstan/phpstan": "^2.0.0", "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",
"symfony/var-dumper": "^5.1" "symfony/var-dumper": "^5.1"

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": "9a53e4f77d715163307f6736896493b8", "content-hash": "fc113f753d9b94aa584ca3a3e85bb57c",
"packages": [ "packages": [
{ {
"name": "guzzlehttp/guzzle", "name": "guzzlehttp/guzzle",
@ -370,16 +370,16 @@
}, },
{ {
"name": "psr/log", "name": "psr/log",
"version": "1.1.3", "version": "1.1.4",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/php-fig/log.git", "url": "https://github.com/php-fig/log.git",
"reference": "0f73288fd15629204f9d42b7055f72dacbe811fc" "reference": "d49695b909c3b7628b6289db5479a1c204601f11"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/php-fig/log/zipball/0f73288fd15629204f9d42b7055f72dacbe811fc", "url": "https://api.github.com/repos/php-fig/log/zipball/d49695b909c3b7628b6289db5479a1c204601f11",
"reference": "0f73288fd15629204f9d42b7055f72dacbe811fc", "reference": "d49695b909c3b7628b6289db5479a1c204601f11",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -403,7 +403,7 @@
"authors": [ "authors": [
{ {
"name": "PHP-FIG", "name": "PHP-FIG",
"homepage": "http://www.php-fig.org/" "homepage": "https://www.php-fig.org/"
} }
], ],
"description": "Common interface for logging libraries", "description": "Common interface for logging libraries",
@ -413,7 +413,10 @@
"psr", "psr",
"psr-3" "psr-3"
], ],
"time": "2020-03-23T09:12:05+00:00" "support": {
"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",
@ -708,34 +711,35 @@
}, },
{ {
"name": "symfony/polyfill-php80", "name": "symfony/polyfill-php80",
"version": "v1.17.0", "version": "v1.31.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/polyfill-php80.git", "url": "https://github.com/symfony/polyfill-php80.git",
"reference": "5e30b2799bc1ad68f7feb62b60a73743589438dd" "reference": "60328e362d4c2c802a54fcbf04f9d3fb892b4cf8"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/5e30b2799bc1ad68f7feb62b60a73743589438dd", "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/60328e362d4c2c802a54fcbf04f9d3fb892b4cf8",
"reference": "5e30b2799bc1ad68f7feb62b60a73743589438dd", "reference": "60328e362d4c2c802a54fcbf04f9d3fb892b4cf8",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=7.0.8" "php": ">=7.2"
}, },
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "thanks": {
"dev-master": "1.17-dev" "url": "https://github.com/symfony/polyfill",
"name": "symfony/polyfill"
} }
}, },
"autoload": { "autoload": {
"psr-4": {
"Symfony\\Polyfill\\Php80\\": ""
},
"files": [ "files": [
"bootstrap.php" "bootstrap.php"
], ],
"psr-4": {
"Symfony\\Polyfill\\Php80\\": ""
},
"classmap": [ "classmap": [
"Resources/stubs" "Resources/stubs"
] ]
@ -766,32 +770,44 @@
"portable", "portable",
"shim" "shim"
], ],
"time": "2020-05-12T16:47:27+00:00" "support": {
"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.1.2", "version": "v5.4.47",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/process.git", "url": "https://github.com/symfony/process.git",
"reference": "7f6378c1fa2147eeb1b4c385856ce9de0d46ebd1" "reference": "5d1662fb32ebc94f17ddb8d635454a776066733d"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/process/zipball/7f6378c1fa2147eeb1b4c385856ce9de0d46ebd1", "url": "https://api.github.com/repos/symfony/process/zipball/5d1662fb32ebc94f17ddb8d635454a776066733d",
"reference": "7f6378c1fa2147eeb1b4c385856ce9de0d46ebd1", "reference": "5d1662fb32ebc94f17ddb8d635454a776066733d",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=7.2.5", "php": ">=7.2.5",
"symfony/polyfill-php80": "^1.15" "symfony/polyfill-php80": "^1.16"
}, },
"type": "library", "type": "library",
"extra": {
"branch-alias": {
"dev-master": "5.1-dev"
}
},
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"Symfony\\Component\\Process\\": "" "Symfony\\Component\\Process\\": ""
@ -814,9 +830,26 @@
"homepage": "https://symfony.com/contributors" "homepage": "https://symfony.com/contributors"
} }
], ],
"description": "Symfony Process Component", "description": "Executes commands in sub-processes",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"time": "2020-05-30T20:35:19+00:00" "support": {
"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": [
@ -1136,20 +1169,20 @@
}, },
{ {
"name": "phpstan/phpstan", "name": "phpstan/phpstan",
"version": "0.12.29", "version": "0.12.100",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/phpstan/phpstan.git", "url": "https://github.com/phpstan/phpstan.git",
"reference": "9771daaf6b95c6313b908d0bcdee0afcd51f838a" "reference": "48236ddf823547081b2b153d1cd2994b784328c3"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/9771daaf6b95c6313b908d0bcdee0afcd51f838a", "url": "https://api.github.com/repos/phpstan/phpstan/zipball/48236ddf823547081b2b153d1cd2994b784328c3",
"reference": "9771daaf6b95c6313b908d0bcdee0afcd51f838a", "reference": "48236ddf823547081b2b153d1cd2994b784328c3",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": "^7.1" "php": "^7.1|^8.0"
}, },
"conflict": { "conflict": {
"phpstan/phpstan-shim": "*" "phpstan/phpstan-shim": "*"
@ -1174,7 +1207,25 @@
"MIT" "MIT"
], ],
"description": "PHPStan - PHP Static Analysis Tool", "description": "PHPStan - PHP Static Analysis Tool",
"time": "2020-06-14T14:10:59+00:00" "support": {
"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",
@ -1597,16 +1648,16 @@
}, },
{ {
"name": "squizlabs/php_codesniffer", "name": "squizlabs/php_codesniffer",
"version": "3.5.5", "version": "3.11.3",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/squizlabs/PHP_CodeSniffer.git", "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git",
"reference": "73e2e7f57d958e7228fce50dc0c61f58f017f9f6" "reference": "ba05f990e79cbe69b9f35c8c1ac8dca7eecc3a10"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/73e2e7f57d958e7228fce50dc0c61f58f017f9f6", "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/ba05f990e79cbe69b9f35c8c1ac8dca7eecc3a10",
"reference": "73e2e7f57d958e7228fce50dc0c61f58f017f9f6", "reference": "ba05f990e79cbe69b9f35c8c1ac8dca7eecc3a10",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1616,11 +1667,11 @@
"php": ">=5.4.0" "php": ">=5.4.0"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0" "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.3.4"
}, },
"bin": [ "bin": [
"bin/phpcs", "bin/phpcbf",
"bin/phpcbf" "bin/phpcs"
], ],
"type": "library", "type": "library",
"extra": { "extra": {
@ -1635,16 +1686,49 @@
"authors": [ "authors": [
{ {
"name": "Greg Sherwood", "name": "Greg Sherwood",
"role": "lead" "role": "Former 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/squizlabs/PHP_CodeSniffer", "homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer",
"keywords": [ "keywords": [
"phpcs", "phpcs",
"standards" "standards",
"static analysis"
], ],
"time": "2020-04-17T01:09:41+00:00" "support": {
"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",
@ -2317,20 +2401,20 @@
}, },
{ {
"name": "symfony/polyfill-mbstring", "name": "symfony/polyfill-mbstring",
"version": "v1.26.0", "version": "v1.31.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/polyfill-mbstring.git", "url": "https://github.com/symfony/polyfill-mbstring.git",
"reference": "9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e" "reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e", "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/85181ba99b2345b0ef10ce42ecac37612d9fd341",
"reference": "9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e", "reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=7.1" "php": ">=7.2"
}, },
"provide": { "provide": {
"ext-mbstring": "*" "ext-mbstring": "*"
@ -2340,12 +2424,9 @@
}, },
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": {
"dev-main": "1.26-dev"
},
"thanks": { "thanks": {
"name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill",
"url": "https://github.com/symfony/polyfill" "name": "symfony/polyfill"
} }
}, },
"autoload": { "autoload": {
@ -2380,7 +2461,7 @@
"shim" "shim"
], ],
"support": { "support": {
"source": "https://github.com/symfony/polyfill-mbstring/tree/v1.26.0" "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.31.0"
}, },
"funding": [ "funding": [
{ {
@ -2396,7 +2477,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2022-05-24T11:49:31+00:00" "time": "2024-09-09T11:45:10+00:00"
}, },
{ {
"name": "symfony/polyfill-php73", "name": "symfony/polyfill-php73",
@ -2587,32 +2668,33 @@
}, },
{ {
"name": "symfony/var-dumper", "name": "symfony/var-dumper",
"version": "v5.1.2", "version": "v5.4.48",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/var-dumper.git", "url": "https://github.com/symfony/var-dumper.git",
"reference": "46a942903059b0b05e601f00eb64179e05578c0f" "reference": "42f18f170aa86d612c3559cfb3bd11a375df32c8"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/var-dumper/zipball/46a942903059b0b05e601f00eb64179e05578c0f", "url": "https://api.github.com/repos/symfony/var-dumper/zipball/42f18f170aa86d612c3559cfb3bd11a375df32c8",
"reference": "46a942903059b0b05e601f00eb64179e05578c0f", "reference": "42f18f170aa86d612c3559cfb3bd11a375df32c8",
"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.15" "symfony/polyfill-php80": "^1.16"
}, },
"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", "symfony/console": "^4.4|^5.0|^6.0",
"symfony/process": "^4.4|^5.0", "symfony/http-kernel": "^4.4|^5.0|^6.0",
"twig/twig": "^2.4|^3.0" "symfony/process": "^4.4|^5.0|^6.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).",
@ -2623,11 +2705,6 @@
"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"
@ -2653,13 +2730,30 @@
"homepage": "https://symfony.com/contributors" "homepage": "https://symfony.com/contributors"
} }
], ],
"description": "Symfony mechanism for exploring and dumping PHP variables", "description": "Provides mechanisms for walking through any arbitrary PHP variable",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"keywords": [ "keywords": [
"debug", "debug",
"dump" "dump"
], ],
"time": "2020-05-30T20:35:19+00:00" "support": {
"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",
@ -2735,9 +2829,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.3.0" "plugin-api-version": "2.6.0"
} }