1、getID3() 是一个 PHP 脚本,可从 MP3 和其他多媒体文件格式中提取有用的信息。打开网址:https://github.com/JamesHeinrich/getID3
2、基于 Composer 安装:JamesHeinrich / getID3。打开 PHP 软件包存储库的网址:https://packagist.org ,搜索:JamesHeinrich / getID3 ,得出搜索结果:james-heinrich/getid3,如图1
3、在 PowerShell 中,执行安装命令:composer require james-heinrich/getid3,提示 ( SSL:握手超时;无法启用加密;无法打开流:操作失败 ),如图2
PS E:/wwwroot/channel-pub-api> composer require james-heinrich/getid3 The "https://asset-packagist.org/packages.json" file could not be downloaded: SSL: Handshake timed out Failed to enable crypto failed to open stream: operation failed https://asset-packagist.org could not be fully loaded, package information was loaded from the local cache and may be ou t of date Using version ^1.9 for james-heinrich/getid3 ./composer.json has been updated Loading composer repositories with package information The "https://asset-packagist.org/packages.json" file could not be downloaded: failed to open stream: HTTP request failed ! https://asset-packagist.org could not be fully loaded, package information was loaded from the local cache and may be ou t of date Updating dependencies (including require-dev) ^CTerminate batch job (Y/N)? Y
4、参考网址:https://www.shuijingwanwq.com/2019/12/28/3784/ ,在 cmd 中设置 HTTP 代理,再次执行安装命令,安装成功,如图3
E:/wwwroot>cd channel-pub-api E:/wwwroot/channel-pub-api>set HTTP_PROXY=http://127.0.0.1:50999 E:/wwwroot/channel-pub-api>set HTTPS_PROXY=http://127.0.0.1:50999 E:/wwwroot/channel-pub-api>composer require james-heinrich/getid3 Using version ^1.9 for james-heinrich/getid3 ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 1 install, 0 updates, 0 removals - Installing james-heinrich/getid3 (v1.9.19): Downloading (100%) james-heinrich/getid3 suggests installing ext-com_dotnet (COM extension is required when loading files larger than 2GB on Windows.) james-heinrich/getid3 suggests installing ext-dba (DBA extension is required to use the DBA database as a cache storage.) james-heinrich/getid3 suggests installing ext-exif (EXIF extension is required for graphic modules.) james-heinrich/getid3 suggests installing ext-mysql (MySQL extension is required to use the MySQL database as a cache storage (deprecated in PHP 5.5, removed in PHP >= 7.0, use `ext-mysqli` instead).) james-heinrich/getid3 suggests installing ext-rar (RAR extension is required for RAR archive module.) james-heinrich/getid3 suggests installing ext-SimpleXML (SimpleXML extension is required to analyze RIFF/WAV/BWF audio files (also requires `ext-libxml`).) james-heinrich/getid3 suggests installing ext-sqlite3 (SQLite3 extension is required to use the SQLite3 database as a cache storage.) Package codeception/base is abandoned, you should avoid using it. No replacement was suggested. Writing lock file Generating autoload files
原创文章,作者:3628473679,如若转载,请注明出处:https://blog.ytso.com/tech/webdev/181502.html