info-extractor.php 617 B

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/env php
  2. <?php
  3. declare(strict_types=1);
  4. /*
  5. * This file is part of PHP CS Fixer.
  6. *
  7. * (c) Fabien Potencier <fabien@symfony.com>
  8. * Dariusz Rumiński <dariusz.ruminski@gmail.com>
  9. *
  10. * This source file is subject to the MIT license that is bundled
  11. * with this source code in the file LICENSE.
  12. */
  13. use PhpCsFixer\Console\Application;
  14. require_once __DIR__.'/../vendor/autoload.php';
  15. $version = [
  16. 'number' => Application::VERSION,
  17. 'vnumber' => 'v'.Application::VERSION,
  18. 'codename' => Application::VERSION_CODENAME,
  19. ];
  20. echo json_encode([
  21. 'version' => $version,
  22. ], JSON_PRETTY_PRINT);