PHPackages                             popphp/popphp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. popphp/popphp

ActiveLibrary[Framework](/categories/framework)

popphp/popphp
=============

Pop PHP Framework, a lightweight, robust PHP framework

4.4.1(4mo ago)5713.5k↑38.9%119BSD-3-ClausePHPPHP &gt;=8.3.0CI passing

Since Jul 26Pushed 4mo ago12 watchersCompare

[ Source](https://github.com/popphp/popphp)[ Packagist](https://packagist.org/packages/popphp/popphp)[ Docs](https://github.com/popphp/popphp)[ RSS](/packages/popphp-popphp/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (8)Versions (82)Used By (9)

popphp
======

[](#popphp)

[![Build Status](https://github.com/popphp/popphp/workflows/phpunit/badge.svg)](https://github.com/popphp/popphp/actions)[![Coverage Status](https://camo.githubusercontent.com/fc2a47fdbd3361a662c6ae37b21017ce0f17937110bec04069074fc5b5c8a2be/687474703a2f2f63632e706f707068702e6f72672f636f7665726167652e7068703f636f6d703d706f70706870)](http://cc.popphp.org/popphp/)

[![Join the chat at https://discord.gg/TZjgT74U7E](https://camo.githubusercontent.com/acad7b0eeb78b78d08ffd2b85681ab243436388b5f86f8bcb956a69246e53739/68747470733a2f2f6d656469612e706f707068702e6f72672f696d672f646973636f72642e737667)](https://discord.gg/TZjgT74U7E)

- [Overview](#overview)
- [Install](#install)
- [Quickstart](#quickstart)
- [Applications](#applications)
    - [HTTP Applications](#setting-up-an-http-application)
    - [CLI Applications](#setting-up-a-cli-application)
    - [CLI Shortcut](#cli-shortcut)
    - [Flexible Constructor](#flexible-constructor)
- [App Helper](#app-helper)
- [Router](#router)
    - [HTTP Routes](#http-routes)
    - [CLI Routes](#cli-routes)
    - [Dynamic Routing](#dynamic-routing)
- [Controllers](#controllers)
- [Models](#models)
    - [Data Models](#data-models)
- [Modules](#modules)
    - [Custom Modules](#custom-modules)
    - [Module Manager](#module-manager)
- [Event Manager](#event-manager)
- [Middleware Manager](#middleware-manager)
- [Service Locator](#service-locator)
- [Configuration Tips](#configuration-tips)

Overview
--------

[](#overview)

`popphp` is the main set of core components for the [Pop PHP Framework](https://www.popphp.org/). It provides the main Application object that can be configured to manage and interface with the underlying core components:

- Router
- Controller
- Model
- Modules
- Event Manager
- Service Locator

[Top](#popphp)

Install
-------

[](#install)

Install `popphp` using Composer.

```
composer require popphp/popphp

```

Or, require it in your composer.json file

```
"require": {
    "popphp/popphp" : "^4.4.0"
}

```

[Top](#popphp)

Quickstart
----------

[](#quickstart)

Here's a config file for a basic HTTP web application with some routes in it:

#### app.http.php

[](#apphttpphp)

```
