PHPackages                             mauris/packer - 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. [Database &amp; ORM](/categories/database)
4. /
5. mauris/packer

AbandonedArchivedLibrary[Database &amp; ORM](/categories/database)

mauris/packer
=============

Simple Key-Value Storage for PHP. dead simple.

1.0.2(13y ago)91553BSD-3-ClausePHPPHP &gt;=5.3.0

Since Oct 11Pushed 8y ago1 watchersCompare

[ Source](https://github.com/thephpdeveloper/Packer-PHP)[ Packagist](https://packagist.org/packages/mauris/packer)[ Docs](http://github.com/thephpdeveloper/Packer-PHP)[ RSS](/packages/mauris-packer/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (4)Used By (0)

Packer-PHP
==========

[](#packer-php)

Simple Key-Value Storage for PHP.

Packer aims to be a zero-config, zero-install and works as PHP works library that developers can quickly pull into their project for use immediately for small and medium scaling usage.

[![Build Status](https://camo.githubusercontent.com/4eaaaa8b7647638e14fb5a3b6c95b303d39bbf5b9ac1a338fd15fddbff22dafb/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f746865706870646576656c6f7065722f5061636b65722d5048502e706e67)](http://travis-ci.org/thephpdeveloper/Packer-PHP)

Installation *via Composer*
---------------------------

[](#installation-via-composer)

To use Packer in your project, add a dependency to `mauris/packer` in your project's `composer.json` file. The following is a minimal sample configuration to use Packer in your project.

```
{
    "require": {
        "mauris/packer": "1.0"
    }
}

```

After which run the command:

```
php composer.phar install

```

Learn more about [Composer](http://getcomposer.org/doc/00-intro.md).

Usage
-----

[](#usage)

Once you have installed Packer as your project's dependencies using Composer, you can use the `Packer` class directly in your code.

To work with a Packer file, you create an instance of `Packer` like this:

```
$packer = new Packer\Packer('config.pack');

```

### Writing / Overwriting

[](#writing--overwriting)

To write a key and value entry to the Packer file, simply use the `write($key, $value)` method like this:

```
$packer->write('autorun', false);

```

### Reading

[](#reading)

To fetch a value from a Packer file, use the `read($key)` method.

```
$autorun = $packer->read('autorun');

```

### Deleting

[](#deleting)

To delete a value from the Packer file:

```
$packer->delete('autorun');
// $packer->exist('autorun') === false

```

### Fetch all keys

[](#fetch-all-keys)

To iterate through the Packer file, you can fetch the keys using the `keys()` method:

```
echo '';
foreach($packer->keys() as $key){
    echo '' . $packer->read($key) . '';
}
echo '';

```

### Clearing

[](#clearing)

```
To remove all entries from the Packer file:

$packer->clear();

```

License
-------

[](#license)

Packer is released open source under the New BSD 3-Clause License.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 97.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

4968d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1743cee8bb3242229368d7fca5a7ac952932fd377d0c3d4343eb8dceea6a395e?d=identicon)[mauris](/maintainers/mauris)

---

Top Contributors

[![mauris](https://avatars.githubusercontent.com/u/996939?v=4)](https://github.com/mauris "mauris (37 commits)")[![jorgesumle](https://avatars.githubusercontent.com/u/14212780?v=4)](https://github.com/jorgesumle "jorgesumle (1 commits)")

---

Tags

databasehashmemorystoragekey

### Embed Badge

![Health badge](/badges/mauris-packer/health.svg)

```
[![Health](https://phpackages.com/badges/mauris-packer/health.svg)](https://phpackages.com/packages/mauris-packer)
```

###  Alternatives

[bvanhoekelen/performance

PHP performance tool analyser your script on time, memory usage and db query. Support Laravel and Composer for web, web console and command line interfaces.

521774.3k4](/packages/bvanhoekelen-performance)[fire015/flintstone

A key/value database store using flat files for PHP

285108.7k7](/packages/fire015-flintstone)[orchid/settings

Settings this is key-value storage

1117.3k2](/packages/orchid-settings)[olliejones/index-wp-mysql-for-speed

Speed up your WordPress site by adding high-performance keys (database indexes) to your MySQL database tables.

1481.8k](/packages/olliejones-index-wp-mysql-for-speed)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
