API client for Kitsu.io, with optional Anime collection, and optional Anilist syncing.
anime
manga
kitsu
anilist
single-user

console 950B

123456789101112131415161718192021222324252627282930313233
  1. #!/usr/bin/env php
  2. <?php declare(strict_types=1);
  3. // Set up autoloader for third-party dependencies
  4. require_once __DIR__ . '/vendor/autoload.php';
  5. use Aviat\AnimeClient\Command;
  6. use ConsoleKit\Console;
  7. $_SERVER['HTTP_HOST'] = 'localhost';
  8. // -----------------------------------------------------------------------------
  9. // Start console script
  10. // -----------------------------------------------------------------------------
  11. try
  12. {
  13. (new Console([
  14. 'cache:clear' => Command\CacheClear::class,
  15. 'cache:refresh' => Command\CachePrime::class,
  16. 'clear:cache' => Command\CacheClear::class,
  17. 'clear:thumbnails' => Command\ClearThumbnails::class,
  18. 'refresh:cache' => Command\CachePrime::class,
  19. 'refresh:thumbnails' => Command\UpdateThumbnails::class,
  20. 'regenerate-thumbnails' => Command\UpdateThumbnails::class,
  21. 'lists:sync' => Command\SyncLists::class,
  22. 'mal_id:check' => Command\MALIDCheck::class,
  23. ]))->run();
  24. }
  25. catch (\Exception $e)
  26. {
  27. }