basic php project setup with auth
- PHP 99.5%
- CSS 0.2%
- PowerShell 0.2%
| cron | ||
| pages | ||
| public | ||
| utils | ||
| .gitignore | ||
| _flash_message.php | ||
| _footer.php | ||
| _header.php | ||
| bootstrap.php | ||
| LICENSE | ||
| php.ini | ||
| README.md | ||
| run-locally.ps1 | ||
PHP Auth Template
Basic PHP application with self-rolled auth 😱 . It has no dependencies, no node, no npm packages, no tailwind. Just PHP, HTML, CSS, JavaScript and Sqlite. It is written with the goal of minimizing maintenance work and to just be thrown on a webspace and provide decent performance.
Disclaimer
While I am a software developer I am not a security expert. This code has neither been peer-reviewed (message me if you did so and found something) nor audited. Use with caution and at your own risk.
TODOs
near-term
- Basic Auth with DB session → done
- Validate email address → done
- Reset password via email
long-term
- Organisations
- Login with Google
- Login with Apple
Known Issues
- When there is an active session key but no session in the table an error is thrown
- Error message is presented to the user when the mailer is not running (in dev on Windows 11)
Dev Setup
Windows 11
- use
run-locally.ps1to run locally - use mailpit for mocking email