Skip to content
/ waux Public

Try to extract media (audio) information form the web

License

Notifications You must be signed in to change notification settings

flatgreen/waux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Waux - Web AUdio eXtractor

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

changelog

License

Waux is licensed under the MIT License (MIT). Please see the license file for more information.

About

Try to extract media (audio) information form the web

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages