# Lighthouse **Repository Path**: wfdaj/Lighthouse ## Basic Information - **Project Name**: Lighthouse - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-11-25 - **Last Updated**: 2025-11-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # π¨ Lighthouse PHP Framework > A minimal, predictable PHP micro-framework for building modern web applications [](https://php.net) [](LICENSE) [](https://github.com/max-yterb/Lighthouse) ## β¨ Features - **β‘ Lightning Fast** - Built for speed and performance with minimal overhead - **π― Simple & Focused** - Clean, predictable API that gets out of your way - **π Secure by Default** - Built-in CSRF protection, input validation, and authentication - **π± Modern Stack** - PHP 8+, HTMX, Pico.css, and SQLite - **π Deploy Anywhere** - Simple deployment, works on any server with PHP 8+ - **π οΈ Developer Friendly** - Type hints, modern PHP features, and comprehensive documentation ## π Quick Start ### Installation Requirements: bash, PHP 8.x, curl or wget Install the standalone CLI (defaults to ~/.local/bin): ```bash bash -c "$(curl -fsSL https://raw.githubusercontent.com/max-yterb/Lighthouse/main/scripts/install.sh)" ``` or with wget: ```bash bash -c "$(wget -qO- https://raw.githubusercontent.com/max-yterb/Lighthouse/main/scripts/install.sh)" ``` If ~/.local/bin is not on your PATH, add it to your shell profile: ```bash export PATH="$HOME/.local/bin:$PATH" ``` ### Create Your First Project ```bash # Create a new project lighthouse new my-app cd my-app # Start development server php -S localhost:8000 -t public/ ``` Or with FrankenPHP (for production parity during development): ```bash frankenphp php-server --root=public --listen=127.0.0.1:8000 --watch='./**/*.{php,css,js,env}' ``` ### Your First Route ```php 'Welcome']); }); route('/about', function() { return view('about.php', ['title' => 'About Us']); }); ``` Logic lives in your viewsβthe route just renders templates. This keeps things simple and predictable. ## ποΈ Project Structure ``` lighthouse/ βββ includes/ # Core framework files β βββ auth.php # Authentication helpers β βββ config.php # Configuration loader β βββ db.php # Database helpers β βββ utils.php # Utility functions β βββ validation.php # Validation functions βββ views/ # View templates β βββ _layout.php # Main layout β βββ *.php # Page templates βββ public/ # Web root β βββ css/ # Stylesheets β βββ js/ # JavaScript files β βββ index.php # Entry point βββ database/ # Database files βββ logs/ # Log files βββ .env # Environment configuration ``` ## π οΈ CLI Commands ```bash # Check version lighthouse version # Create a new project lighthouse new PROJECT_NAME # Run tests lighthouse test run # Database migrations lighthouse db make:migration MIGRATION_NAME lighthouse db migrate ``` ## π¨ Brand Colors Lighthouse comes with a beautiful, sea-inspired color palette: | Color Name | Hex Code | Usage | |------------|----------|-------| | Beacon Red | `#E63946` | Accent / Logo / Links | | Sea Slate | `#1D3557` | Primary background or text | | Fog White | `#F1FAEE` | Page background | | Sky Mist | `#A8DADC` | Borders / secondary background | | Signal Blue| `#457B9D` | Buttons / code highlights | ## π Documentation - [π **Getting Started**](docs/getting-started.md) - Installation and basic setup - [π£οΈ **Routing**](docs/routing.md) - URL routing and parameters - [ποΈ **Views & Templates**](docs/views.md) - Rendering views and layouts - [ποΈ **Database**](docs/database.md) - Database operations and migrations - [π **Authentication**](docs/authentication.md) - User authentication and sessions - [β **Validation**](docs/validation.md) - Input validation and sanitization - [π¨ **Frontend**](docs/frontend.md) - Working with HTMX and Pico.css - [π **Deployment**](docs/deployment.md) - Production deployment guide ## π€ Contributing We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details. ### Development Setup ```bash # Clone the repository git clone https://github.com/max-yterb/Lighthouse.git cd Lighthouse # Copy environment file cp .env.example .env # Start development server php -S localhost:8000 -t public ``` ## π¬ Community - [π¬ **Discussions**](https://github.com/max-yterb/Lighthouse/discussions) - Ask questions and share ideas - [π **Issues**](https://github.com/max-yterb/Lighthouse/issues) - Report bugs and request features - [π§ **Email**](mailto:max.yterb@gmail.com) - Direct contact ## π Support Lighthouse Lighthouse is free and open-source. If you're using it in production or want to support its development: - β **Star the repository** - Help others discover Lighthouse - π **[Become a GitHub Sponsor](https://github.com/sponsors/max-yterb)** - Support ongoing development - π’ **[Enterprise Support](mailto:max.yterb@gmail.com?subject=Lighthouse%20Enterprise%20Support)** - Priority support and custom features - π’ **Share your success story** - Tell others about your Lighthouse projects ### π Need Custom Features? For mission-critical features or custom development: - **Priority Development** - Get your features built first - **Custom Integrations** - Tailored solutions for your business - **Training & Consulting** - Expert guidance for your team - **Code Audits** - Security and performance reviews [Contact us for enterprise solutions β](mailto:max.yterb@gmail.com?subject=Lighthouse%20Custom%20Development) ## π License Lighthouse is open-sourced software licensed under the [MIT license](LICENSE). ## π Acknowledgments - Built with β€οΈ by [Massimiliano Bertinetti](https://github.com/max-yterb) - Inspired by modern PHP frameworks and minimalist design principles - Special thanks to the PHP community ---