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.6(1mo ago)022MITPHP

Since Sep 30Pushed 1mo ago1 watchersCompare

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

READMEChangelog (7)DependenciesVersions (8)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

37

—

LowBetter than 81% of packages

Maintenance90

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 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 ~38 days

Recently: every ~56 days

Total

7

Last Release

48d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3218456?v=4)[Bernie Marger](/maintainers/bern)[@bern](https://github.com/bern)

---

Top Contributors

[![i3elj](https://avatars.githubusercontent.com/u/61887184?v=4)](https://github.com/i3elj "i3elj (113 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

[afragen/github-updater

A plugin to automatically update GitHub, Bitbucket, GitLab, or Gitea hosted plugins, themes, and language packs.

3.3k20.4k](/packages/afragen-github-updater)

PHPackages © 2026

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