PHPackages                             i3elj/agmen - 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. i3elj/agmen

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

i3elj/agmen
===========

A simple web library

1.0.3(6mo ago)011MITPHP

Since Sep 30Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/i3elj/agmen)[ Packagist](https://packagist.org/packages/i3elj/agmen)[ RSS](/packages/i3elj-agmen/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

Agmen
=====

[](#agmen)

 [![A logo of a battalion of soldiers with the name Agmen at the bottom](./assets/logo.png)](./assets/logo.png)

A simple opinionated web library to be used alongside nginx or apache.

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

[](#installation)

```
composer require i3elj/agmen
```

How to use it
-------------

[](#how-to-use-it)

Look into the examples folder, is not hard to understand the code. Basically you configure the default folders for views, globals, partials, etc... using `define()`, require the autoload and use the Router class to add endpoints. Routes can have names, it uses classes and you can define the name of the method to be used for the endpoint, otherwise the Router will look into methods named after request methods (e.g. `static::get`, or `static::post`...). Use `snip()` for partials and `globals()` for... well, globals. There are some helper functions (just a few, look into the code).

The Database class needs a .env file with the following:

```
# host name for PDO interface: sqlite, pgsql, mysql...
DB=sqlite

# used only for sqlite host name
DB_URL=db.sqlite

# common variables used with server based databases: postgresql, mysql, mariadb etc...
DB_HOST=localhost
DB_PORT=8080
DB_USER=admin
DB_PASSWORD=admin
DB_NAME=dbname
```

Contributing
============

[](#contributing)

I don't plan on supporting this more than I need. If you have something to add up, and it makes sense, I'll be glad to add your contribution.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance66

Regular maintenance activity

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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 ~8 days

Total

4

Last Release

206d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ff5281065de839b1e4a72723241cd2699d7ca1fe199e540bcd8d8bc0738d5c0c?d=identicon)[bern](/maintainers/bern)

---

Top Contributors

[![i3elj](https://avatars.githubusercontent.com/u/61887184?v=4)](https://github.com/i3elj "i3elj (108 commits)")

### Embed Badge

![Health badge](/badges/i3elj-agmen/health.svg)

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

###  Alternatives

[gnello/laravel-mattermost-driver

Laravel integration of php-mattermost-driver

1844.9k2](/packages/gnello-laravel-mattermost-driver)[monzer/filament-chatify-integration

Seamlessly integrate real-time messaging into your application.

244.2k](/packages/monzer-filament-chatify-integration)

PHPackages © 2026

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