PHPainfree is an ultra-lightweight PHP framework. It is inspired by the MVC concept and attempts to remove barriers to entry while providing the flexibility to design, develop, and deploy applications of any size or complexity.
Version 2 comes with a significant shift in opinion, focused on developer productivity and happiness. Whenever possible, we follow a HATEOS approach to software development, and Version 2 of PHPainfree comes bundled with "opinions" and options on how to build modern, functional web applications.
This version comes embedded with htmx and has significant
improvements to the underlying PHP library design to make use of the htmx
system of partial content swaps with htmx
magic. You're still free, as always,
to roll your own mechanisms for anything, but we've provided a more robust
set of defaults to show you a different way to build PHP software products.
- This software is under development, and all bugs should be reported through github's issues system.
- Version: 2.2.0
- Maintainer: Eric Harrison @blister
PHPainfree2 comes with a predefined Docker image to make local development easier. To start, simply run the following command inside your folder:
docker compose up
1. Extract the PHPainfree release.
2. Place the contents of the htdocs/ folder in your web directory's document root.
3. Place the includes/ and templates/ folders somewhere accessible to your PHP's include root.
(If you can't mess with your include root, you should be able to place these folders inside your document root)
4. Edit includes/PainfreeConfig.php. Modify the $PainfreeConfig variable to match your application configuration.
5. Run and enjoy!
- v2 is a work in progress. All ideas and suggestions are welcome!
- 6/19/2024 - Updated default view template to use htmx version 2.0.0 by default.
- Eric Ryan Harrison @blister
- Kari Turner @thespecialK
- Ryan Laurie @iethree