The clean & modern RSS server that doesn't give you any crap. https://thearsse.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

arsse.php 932B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /** @license MIT
  3. * Copyright 2017 J. King, Dustin Wilson et al.
  4. * See LICENSE and AUTHORS files for details */
  5. namespace JKingWeb\Arsse;
  6. const BASE = __DIR__.DIRECTORY_SEPARATOR;
  7. const NS_BASE = __NAMESPACE__."\\";
  8. require_once BASE."vendor".DIRECTORY_SEPARATOR."autoload.php";
  9. ignore_user_abort(true);
  10. ini_set("memory_limit", "-1");
  11. ini_set("max_execution_time", "0");
  12. if (\PHP_SAPI=="cli") {
  13. // initialize the CLI; this automatically handles --help and --version
  14. $cli = new CLI;
  15. // handle other CLI requests; some do not require configuration
  16. $exitStatus = $cli->dispatch();
  17. exit($exitStatus);
  18. } else {
  19. // load configuration
  20. $conf = file_exists(BASE."config.php") ? new Conf(BASE."config.php") : new Conf;
  21. Arsse::load($conf);
  22. // handle Web requests
  23. $emitter = new \Zend\Diactoros\Response\SapiEmitter();
  24. $response = (new REST)->dispatch();
  25. $emitter->emit($response);
  26. }