Skip to content

chellmann/sad-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sad Server

A Laravel package that replaces the default 404 error page with a terminal animation featuring a depressed web server.

Inspired by wachwerk.de/404. Original text by Sebastian Lübcke, circa 2000.

Installation

composer require chellmann/sad-server

That's it. The package auto-discovers and immediately replaces your 404 page.

Configuration

Publish the config to customize the terminal title, typing speed, or messages:

php artisan vendor:publish --tag=sad-server-config

This creates config/sad-server.php where you can change:

  • title — The terminal window title bar text
  • type_speed — Typing speed in milliseconds per character
  • strings — Array of messages the server types out

Customizing the View

php artisan vendor:publish --tag=sad-server-views

This publishes the Blade template to resources/views/vendor/sad-server/errors/404.blade.php.

How It Works

The package registers a renderable callback for NotFoundHttpException. HTML requests get the terminal 404 page, JSON/API requests are unaffected.

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors