PHPackages                             genelet/php - 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. genelet/php

ActiveProject[Framework](/categories/framework)

genelet/php
===========

PHP version of Genelet web development framework

1.3.1(6y ago)066PHP

Since Jun 1Pushed 6y ago1 watchersCompare

[ Source](https://github.com/guruperl/php)[ Packagist](https://packagist.org/packages/genelet/php)[ RSS](/packages/genelet-php/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

Genelet PHP
===========

[](#genelet-php)

Genelet PHP is a small PHP web framework for JSON-described CRUD-style web applications. A Genelet app keeps its runtime contract in `conf/config.json` and per-component `component.json` files, then supplies generated or hand-written `Filter` and `Model` classes for each component.

The framework is intentionally legacy-friendly: it uses Composer and PDO, keeps numeric framework error strings stable, and does not require Laravel, Symfony, or a modern full-stack PHP framework.

How It Works
------------

[](#how-it-works)

Requests are routed by path:

```
///
////

```

`config.json` defines the project namespace, script path, roles, chartags, authentication providers, templates, and database connection settings. Each component's `component.json` defines tables, keys, available actions, validation, aliases, groups, fields, foreign-key helpers, and optional next-page model calls.

For a component named `question` in project namespace `Jenny`, the application provides:

```
Jenny\Question\Filter
Jenny\Question\Model

```

At request time the controller parses the request, creates the filter and model, fills `ARGS`, executes the requested action, and returns JSON or renders a template depending on the chartag.

Repository Layout
-----------------

[](#repository-layout)

- `src/` - framework runtime.
- `tests/` - PHPUnit regression tests.
- `samples/project-php` - sample application using this package through a local Composer path repository.
- `views/` - minimal framework views used by tests and defaults.
- `conf/test.conf` - test configuration.
- `scripts/` - Docker-based test harnesses.

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

[](#installation)

```
git clone git@github.com:genelet/php.git
cd php
composer install
```

Test
----

[](#test)

Run the local PHPUnit suite:

```
composer test
```

The default tests expect a MySQL database named `test` with user `genelet_test` and a blank password.

Without local PHP, Composer, or MySQL, run the isolated Docker harness:

```
./scripts/test-docker.sh
```

The script builds a PHP 8.3 test image, starts a disposable MySQL 8 container, installs Composer dependencies, lints `src/` and `tests/`, and runs PHPUnit.

Run the sample application test harness:

```
./scripts/test-sample-project-php.sh
```

Using Genelet
-------------

[](#using-genelet)

1. Create a PHP app with `conf/config.json` defining `Project`, `Script`, `Template`, `Pubrole`, `Chartags`, `Roles`, and optional DB/auth settings.
2. For each component, create a `component.json` with `actions`, `current_table` or `current_tables`, and `current_key`.
3. Provide `\\Filter` and `\\Model` classes.
4. Bootstrap `Genelet\Controller` from an entrypoint such as `www/app.php`.
5. Configure Composer autoloading for the app namespace and require `genelet/php`.

Generated apps can use `no_db` for actions that do not need database work and `no_method` for actions handled entirely by filter/template behavior. JSON chartags return response bodies; HTML-like chartags render templates such as:

```
///.

```

Compatibility Notes
-------------------

[](#compatibility-notes)

Genelet keeps the legacy generated-app surface stable:

- Public framework class names and public methods remain stable.
- Numeric framework error codes and messages are preserved.
- Cookie behavior, including CLI test cookie mirroring through `$_COOKIE["SET_COOKIE"]`, is preserved.
- `ARGS`, `LISTS`, `OTHER`, existing config keys, and nextpage marker names remain part of the runtime contract.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.3% 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 ~6 days

Total

2

Last Release

2215d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/710562?v=4)[Peter Bi](/maintainers/genelet)[@genelet](https://github.com/genelet)

---

Top Contributors

[![genelet](https://avatars.githubusercontent.com/u/710562?v=4)](https://github.com/genelet "genelet (58 commits)")[![tabilet](https://avatars.githubusercontent.com/u/63295647?v=4)](https://github.com/tabilet "tabilet (1 commits)")

### Embed Badge

![Health badge](/badges/genelet-php/health.svg)

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M20.0k](/packages/laravel-framework)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M572](/packages/shopware-core)[symfony/symfony

The Symfony PHP framework

31.4k87.2M2.2k](/packages/symfony-symfony)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

21866.0M1.7k](/packages/drupal-core)[oro/platform

Business Application Platform (BAP)

645143.5k115](/packages/oro-platform)

PHPackages © 2026

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