PHPackages                             waponix/pocket - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. waponix/pocket

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

waponix/pocket
==============

Is a service container that considers all loadable classes inside a project as a service.

v2.2.0(3y ago)1261GPL-3.0PHPPHP &gt;=8.1.6

Since Mar 26Pushed 3y ago1 watchersCompare

[ Source](https://github.com/waponix/pocket)[ Packagist](https://packagist.org/packages/waponix/pocket)[ RSS](/packages/waponix-pocket/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (1)Versions (5)Used By (1)

pocket (v2.2.0)
===============

[](#pocket-v220)

Is basically a service container.

Pocket is currently being developed in `PHP 8`, and will take advantage of it's new features as much as possible.

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

[](#installation)

```
composer require waponix/pocket

```

Introduction
------------

[](#introduction)

Pocket considers all classes as service, you can pass any class name to pocket's get() method without doing any registration and it will try to load the object for you.

> Note: you need to setup your own autoloading because pocket won't handle that for you, pocket also only works with PSR-4 autoloading

Example:

```
