WeExpire.org is the first opensource tool for creating emergency notes that can be read by your trusted contacts only after your death or if you are seriously injured.
- Clone the repo
git clone https://github.com/ciccionamente/WeExpire.git
- Create a MySQL database with
utf8mb4_unicode_cicollation, name itwe_expireand import thewe_expire.example.sqlconfiguration file into it - Copy the
configuration.example.phpfile intounderwear/environment_variablesand rename it asconfiguration.php - Provide your own environment variables in the
configuration.phpfile - Set the
htdocsfolder as the main root directory for your server configuration - Run the project!
If you are using Apache (locally or in production), include the following .htaccess file inside the htdocs folder to enable correct routing for all pages:
RewriteEngine On
RewriteBase /
# Remove trailing slash from non-existing files/directories
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/$ /$1 [R=301,L]
# Redirect .php URLs to clean URLs (e.g., /start.php → /start)
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.php[?\s] [NC]
RewriteRule ^([^.]+)\.php$ /$1 [R=301,L]
# Internally rewrite clean URLs to corresponding .php files if they exist
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^([a-zA-Z0-9/_-]+)$ $1.php [L]
# Redirect /index to root (/)
RewriteCond %{THE_REQUEST} /index\.php [NC]
RewriteRule ^index\.php$ / [R=301,L]
# Handle language-prefixed paths (e.g., /it/start → /start.php?l=it)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{DOCUMENT_ROOT}/$2.php -f
RewriteRule ^(en|es|fr|it)/(.+)$ /$2.php?l=$1 [NC,L]
# Language redirect for root-level language paths (e.g., /en → /?l=en)
RewriteRule ^(en|es|fr|it)/?$ /?l=$1 [NC,L]- Clone the repo
git clone https://github.com/ciccionamente/WeExpire.git
- Modify the
docker-compose.ymlfile's environment variables for thewe_expirecontainer/service - Run
docker-compose up -d
Contributions that are not time-consuming and made for improving WeExpire's security, efficiency or accessibility are greatly appreciated.
- Fork the project
- Create your feature branch
- Make your changes
- Commit your changes
- Push to the branch
- Open a pull request
Distributed under the GPLv3 License. See LICENSE for more information.
A special thanks goes to the following people who have contributed to this project:
- Rebeca Dieguez Merayo, Spanish content
- Hugo Blanc, French content
- Robert Thomas, Docker support + SQL schema simplification
Another special thanks goes to these opensource third-party libraries and frameworks that have been used in this project:
If you want to contribute with a simple donation, you can do it via Buy Me a Coffee.