Rapid development of secure, scalable PHP apps with a flexible, extensible core.
✨ Features • 🚀 Installation • 📖 Configuration • 🤝 Contributing
AFN PHP Framework is a customizable and lightweight PHP+MySQL web framework designed to streamline the development of modern web applications. With its modular architecture, intuitive routing, and built-in support for MySQL, it empowers developers to build scalable, secure, and maintainable solutions quickly. Whether you're creating a simple website or a complex system, AFN PHP Framework offers flexibility and extensibility for projects of any size.
- MVC Architecture: Clean separation of concerns using the Model-View-Controller pattern.
- Customizable: Easily extend and modify core components to suit your application's needs.
- Database Integration: Built-in support for MySQL with secure, simple database interactions.
- Routing System: Flexible routing for clean, SEO-friendly URLs.
- Template Engine: Lightweight templating for rapid UI development.
- Form Validation: Simplified form processing and validation.
- Session & Authentication: Basic user authentication and session management.
- Asset Management: Organize CSS, JS, and other static assets efficiently.
- Error Handling & Logging: Developer-friendly error reporting and logging.
- PHP 7.0+
- MySQL 5.6+
- Composer (optional, for dependency management)
- Web server (Apache, Nginx)
-
Clone the repository
git clone https://github.com/afnx/afn-php-framework.git cd afn-php-framework
-
Configure your site
- Open the configuration files under
config
and update your database and app settings. - Set up your virtual host to point to the
www/
directory.
- Open the configuration files under
-
Install dependencies
- If using Composer, run:
composer install
- If using Composer, run:
-
Run database migrations (if available)
php migrate.php
- Configure your MySQL credentials in the
config/database.php
file. - Database migration scripts are provided for initial setup.
- Routes are defined automaticaly when you create a Controller with routing.
- Controllers are located in
app/controllers/
.
- Views are located in
resources/views
. - Use simple placeholders and helpers for dynamic HTML.
afn-php-framework/ ├── app/ # Application logic (core files, controllers, models) ├── config/ # Configuration files ├── www/ # Public web root (index.php, assets) ├── resourcees/ # Views components ├── library/ # Composer dependencies └── README.md
We welcome contributions from developers of all skill levels!
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License.
- Ali Fuat Numanoglu - Initial work - @afnx
- 🐛 Report Issues
- 📧 Contact Me
- ⭐ If this project helped you, please give it a star!
Made with ❤️ by Ali Fuat Numanoglu