console 663 B

1234567891011121314151617181920212223242526
  1. #!/usr/bin/env php
  2. <?php
  3. /*
  4. * This file is part of PHPExifTool.
  5. *
  6. * (c) 2012 Romain Neutron <imprec@gmail.com>
  7. *
  8. * For the full copyright and license information, please view the LICENSE
  9. * file that was distributed with this source code.
  10. */
  11. use Symfony\Component\Console\Application;
  12. use PHPExiftool\Tool\Command\ClassesBuilder;
  13. require __DIR__ . '/../vendor/autoload.php';
  14. if (!class_exists('Symfony\Component\DomCrawler\Crawler')) {
  15. echo "You must install composer developer packages to use the commandline dev tool\n";
  16. exit(1);
  17. }
  18. $cli = new Application('PHPExiftool', '0.3.0');
  19. $cli->addCommands(array(new ClassesBuilder()));
  20. $cli->run();