PHPenalva is a lightweight PHP micro-framework designed on the Model-View-Controller (MVC) architecture.
Built with simplicity in mind, PHPenalva empowers you to swiftly create APIs and web applications.
Note: This project is currently under construction. Please bear with us as we work to make it even better.
PHP Version: PHP 7.4 or higher is required.
Web Server: You’ll need a web server with URL rewriting enabled.
Supported Servers: PHPenalva plays nicely with Apache, Nginx, and IIS.
Database Compatibility: PHPenalva is compatible with MySQL, MariaDB, PostgreSQL, and SQLite.
Platform: PHPenalva can be used on Linux, Windows, and macOS.
Getting started with PHPenalva is a breeze.
You can install it via Composer with the following command in your project directory:
composer require phpenalva/phpenalva
Here are some example routes that you can define in your PHPenalva application:
Route with views:
GET /posts: List all posts. Access it in your browser to view the posts.
GET /post/{id}: View details of a specific post. Replace {id} with the desired post ID in the URL
Route without views:
POST /post: Create a new post. Send a POST request to this route with the required parameters to create a new post.
PUT /post/{id}: Update an existing post. Send a PUT request to this route with the required parameters to update an existing post. Replace {id} with the desired post ID in the URL.
DELETE /post/{id}: Delete an existing post. Send a DELETE request to this