A small Slim application for returning a list of pages in a MediaWiki category, ordered by Dale-Chall readability scores.
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.

21 lines
575 B

  1. <?php
  2. return [
  3. 'settings' => [
  4. 'displayErrorDetails' => true, // set to false in production
  5. 'addContentLengthHeader' => false, // Allow the web server to send the content-length header
  6. // Renderer settings
  7. 'renderer' => [
  8. 'template_path' => __DIR__ . '/../templates/',
  9. ],
  10. // Monolog settings
  11. 'logger' => [
  12. 'name' => 'slim-app',
  13. 'path' => isset($_ENV['docker']) ? 'php://stdout' : __DIR__ . '/../logs/app.log',
  14. 'level' => \Monolog\Logger::DEBUG,
  15. ],
  16. 'mwEndpoint' => 'https://en.wikipedia.org/w/api.php?'
  17. ],
  18. ];