PHPackages                             pocket-framework/framework - 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. pocket-framework/framework

ActiveLibrary[Framework](/categories/framework)

pocket-framework/framework
==========================

A small PHP framework that just tries to get out of the way

1.0.0(3mo ago)0658Apache-2.0PHPPHP ^8.2 || ^8.3 || ^8.4 || ^8.5

Since Apr 1Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/dragonmantank/pocket-framework)[ Packagist](https://packagist.org/packages/pocket-framework/framework)[ RSS](/packages/pocket-framework-framework/feed)WikiDiscussions 1.x Synced today

READMEChangelog (7)Dependencies (11)Versions (10)Used By (0)

Pocket Framework
================

[](#pocket-framework)

#### A small PHP framework that tries to get out of the way

[](#a-small-php-framework-that-tries-to-get-out-of-the-way)

[![Tests](https://github.com/dragonmantank/pocket-framework/actions/workflows/tests.yml/badge.svg)](https://github.com/dragonmantank/pocket-framework/actions/workflows/tests.yml/badge.svg)

Pocket Framework is a small PHP framework that is designed to get out of the way. Write your code using plain PHP Objects for almost anything, sprinkle in a few attributes, and you are all set!

Installation
------------

[](#installation)

Installation is done using composer:

```
composer require pocket-framework/framework
```

### Requirements

[](#requirements)

- PHP 8.2 or higher

Usage
-----

[](#usage)

Pocket Framework requires a small bootstrapping script to get running, as the framework requires an HTTP dispatcher (`nikic/fast-route` is included) as well as a PSR-11-compatible service container. We recommend using [`php-di/php-di`](https://php-di.org/).

```
// index.php
