flatgreen / waux
Try to extract media (audio) information from the web
v1.3.2
2025-03-24 22:49 UTC
Requires
- php: >=8.1
- flatgreen/rfrance: ^2.1
- symfony/cache: ^6.4|^7.0
- symfony/css-selector: ^6.4|^7.0
- symfony/dom-crawler: ^6.4|^7.0
- symfony/event-dispatcher: ^6.4|^7.0
Requires (Dev)
- phpstan/phpstan: ^2.1
- symfony/var-dumper: ^7.2
README
Try to extract media (audio) information from the web !
Prerequisites
- php >= 8.1
Installation
- Use the package manager composer to install Waux.
composer require flatgreen/waux
- Optional: Create a 'cache' directory (with read|write permissions), by default the cache directory is inside the system temporary directory.
Usage
require_once 'vendor/autoload.php'; use Flatgreen\Waux\Waux; const CACHE_DURATION = 345600; const CACHE_DIRECTORY = 'cache'; $cache_options = ['cache_directory' => CACHE_DIRECTORY, 'cache_duration' => CACHE_DURATION]; $http_options = ['header' => 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/124.0']; $waux = new Waux($cache_options, $http_options); $url = '...'; var_dump($waux->getExtractorClass($url)); var_dump($waux->extract($url)->getAll());
Extractors
For the moment, just some web extractors.
Changelog
License
Waux is licensed under the MIT License (MIT). Please see the license file for more information.