The Pop PHP Framework is a lightweight, yet robust PHP framework that can be used for rapid application development. The framework itself has a base set of core components as well as numerous other additional components to facilitate many of the common features needed for a PHP application.
The two main concepts behind the Pop PHP Framework have always been:
The goal is so that anyone from an advanced programmer to a novice developer can install and start using the Pop PHP Framework quickly and effectively.
The Pop PHP Framework has been built for and tested with PHP 8.1 and is backwards compatible to 7.4. So the only true requirement is that to have at least PHP 7.4 installed in the environment.
For more on the various additional recommended server components, settings and extensions, please review the documentation.
The Pop PHP Framework provides a number of options to install as much or as little as a developer requires. It can be installed in a few of different ways:
Full Installation:
A developer can install or download the full framework, which includes the core components plus an additional 27 components to serve as a toolkit for application development. The full version can either be downloaded from one of the links on this website, or installed via Composer like this:
$ composer create-project popphp/popphp-framework project-folder
Or, it can be added to a project like this:
$ composer require popphp/popphp-framework
Or, it can be added to a project's composer.json
file like this:
{
"require": {
"popphp/popphp-framework": "^4.7.0"
}
}
[ Top ]
Barebones Installation:
A developer can opt to only install the barebones core components that make up the foundation of the application stack. This includes:
The barebones version can be installed using one of the methods above, but by swapping out the framework repository for the core repository like this:
{
"require": {
"popphp/popphp": "^3.7.2"
}
}
[ Top ]
Popcorn Installation:
A developer can also choose to install Popcorn, which is a web-based, micro-framework layer that can be
utilized to build REST applications and APIs. It installs the same core components from the barebones
installation, plus the popphp/pop-http
, popphp/pop-session
and popphp/pop-view
web components.
Popcorn can be installed using one of the methods above, but by using the Popcorn repository like this:
{
"require": {
"popphp/popcorn": "^3.4.1"
}
}
[ Top ]
CLI Applications:
Installing the popphp/pop-console
package along with the main popphp/popphp
package
will provide the tools needed to build and run an application on the command line, with support for CLI
commands, output and colors.
{
"require": {
"popphp/popphp": "^3.7.2",
"popphp/pop-console": "^3.2.1"
}
}
[ Top ]
Installing Individual Components:
And finally, if a developer has chosen a different framework or application stack in which to build an application, the individual components of the Pop PHP Framework play nicely with others. Please refer to the individual documentation of whichever components are required to be added to your project to get the name of the repository for those components.
[ Top ]