We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

phalconphp getID3 is not working...

I want to get video format information. So I searched web and found getID3.

I copyed getid3.php and etc. I registered file getid3.php.

And I set loader.php. then I call new getID3. But It's not working...

Please, Help me...

app/config/loader.php

$loader->registerFiles([
    $config->application->libraryDir . "simplehtmldom/simple_html_dom.php",
    $config->application->libraryDir . "getid3/getid3.php"
]);

app/controllers/IndexController.php

$getID3 = new \getID3;

error output

Uncaught Error: Class 'getID3' not found in /var/www/html/openmarket/app/app/controllers/IndexController.php:26


10.1k

Looks like the class isn't PSR compatible. Why don't you directly include it with require_once or use a package that is available using composer: https://packagist.org/?query=id3

Do you run a website for yourself? If you are planning to make money on this, everything must be done at the highest level. I used WordPress and Joomla constructors for others. But when I needed the site, I turned to professionals. I think you should read more about it.