Development Setup
Get a local development environment running to contribute to Simple Invoices.
Prerequisites
Quick Start
Configuration
Copy the default config and edit for your environment:
Edit config/config.php with your database settings:
For SQLite (zero-config):
No database server needed: the database file is created automatically at databases/sqlite/simpleinvoices.sqlite.
Project Structure
NPM Scripts
Contributing Workflow
- Fork the repo on your preferred platform
- Create a feature branch:
git checkout -b my-feature - Make your changes following existing conventions
- Test thoroughly: no automated test suite, test manually
- Submit a pull request with a clear description
Conventions
- PHP: Follow existing patterns in the codebase. Use PDO prepared statements for all queries.
- Templates: Use Laravel Blade (
.blade.php). Checktemplates/default/for examples. - JavaScript: Vanilla JS or jQuery. New files in
include/js/. - Documentation: Rspress markdown in
docs-rspress/docs/. Usenpm run dev-docsto preview.