Download the PHP package alsocoder/apnaphp without Composer
On this page you can find all versions of the php package alsocoder/apnaphp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alsocoder/apnaphp
More information about alsocoder/apnaphp
Files in alsocoder/apnaphp
Package apnaphp
Short Description ApnaPHP - A Next.js App Router style + Laravel inspired PHP framework with file-based routing
License MIT
Homepage https://apnaphp.com
Informations about the package apnaphp
ApnaPHP
Ready-to-use starter template for ApnaPHP Framework - A modern PHP framework inspired by Next.js App Router and Laravel.
🚀 Features
- File-based Routing: Next.js App Router style routing with
.apna.phpfiles - Laravel-like ORM: Eloquent-inspired models with schema definition
- Multiple Database Support: MySQL, MariaDB, PostgreSQL, MongoDB, SQLite
- Auto-migration: Automatic schema creation from model definitions
- Middleware Support: Hierarchical middleware system
- Console Commands: Built-in CLI with
php apna serve - Modern PHP: PHP 8.1+ with modern syntax and features
📦 Installation
Using Composer
Manual Installation
🏃♂️ Quick Start
1. Create a New Project
2. Configure Database
Edit .env file:
3. Start Development Server
Your application will be available at http://localhost:3000
📁 Project Structure
🛣️ Routing
File-based Routing
Create routes by adding .apna.php files:
API Routes (app/api/*/route.apna.php):
Page Routes (app/*/page.apna.php):
🗄️ Database & Models
Model Definition
Database Operations
🗃️ Database Support
MySQL/MariaDB
PostgreSQL
MongoDB
SQLite
🛠️ Console Commands
🔧 Configuration
Application Config (config/app.php)
Database Config (config/database.php)
🤝 Contributing
We appreciate your interest! However, please note:
- ✅ You can use this framework to build applications
- ✅ You can report bugs and issues
- ✅ You can suggest features
- ❌ Direct modifications to the framework core are not accepted
- ❌ Derivative works of the framework are not permitted
For feature requests and bug reports, please open an issue on GitHub.
📄 License
This project is licensed under the MIT License with additional restrictions - see the LICENSE file for details.
Important: You may use this framework to build applications, but you are NOT permitted to modify, alter, or create derivative works of the framework itself without explicit written permission.
🙏 Acknowledgments
- Inspired by Next.js App Router
- Inspired by Laravel
- Built with modern PHP features
📞 Support
- 📧 Email: [email protected]
- 🐛 Issues: GitHub Issues
- 💬 Discussions: GitHub Discussions
- 📖 Documentation: docs.apnaphp.com
Made with ❤️ by Also Coder (Dinesh Gupta)
© 2025 Also Coder. All rights reserved.
