PHPackages                             renanhangai/libweb - 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. renanhangai/libweb

ActiveLibrary

renanhangai/libweb
==================

Some PHP utility classes

4.0.9(8y ago)01.0k[2 issues](https://github.com/renanhangai/libweb/issues)ISCPHP

Since Feb 27Pushed 7y ago2 watchersCompare

[ Source](https://github.com/renanhangai/libweb)[ Packagist](https://packagist.org/packages/renanhangai/libweb)[ RSS](/packages/renanhangai-libweb/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (6)Versions (119)Used By (0)

LibWeb
======

[](#libweb)

- [API](docs/API.md)
- [DB](docs/DB.md)
- [Validator](docs/Validator.md)

Example
-------

[](#example)

A simple example using the API

```
use LibWeb\Validator as v;
use LibWeb\DB;

class TestAPI {

	public function GET_multiply( $req ) {
		$data = $req->params(array(
			"a" => v::f(),
			"b" => v::f(),
		));
		return $data->a * $data->b;
	}

	public function POST_create( $req ) {
		$data = $req->params(array(
			"name" => v::s(),
			"age"  => v::i(),
		));
		$id = DB::insertInto( "person", $data ); // "INSERT INTO person (name, age) VALUES (:name, :age)"
		return $id;
	}

	public function POST_update( $req ) {
		$data = $req->params(array(
			"id"   => v::i(),
			"age"  => v::i(),
		));
		$query = "UPDATE person SET age=:age WHERE id=:id"
		$result = DB::execute( $query, $data );
	}

};
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

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

Recently: every ~80 days

Total

115

Last Release

2772d ago

Major Versions

0.11.2 → 1.0.72017-06-05

1.18.2 → 2.0.02017-10-09

2.3.0 → 3.0.02017-11-06

2.3.1 → 3.1.02017-11-08

3.2.0 → 4.0.0-beta2017-11-13

### Community

Maintainers

![](https://www.gravatar.com/avatar/45d58ac83551eff8e1a531fb41c3b1fd57bb952986f46858e161f7352ef4482b?d=identicon)[renanhangai](/maintainers/renanhangai)

---

Top Contributors

[![rhangai](https://avatars.githubusercontent.com/u/1877289?v=4)](https://github.com/rhangai "rhangai (373 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/renanhangai-libweb/health.svg)

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

###  Alternatives

[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k20](/packages/civicrm-civicrm-core)[bennett-treptow/laravel-migration-generator

Generate migrations from existing database structures

605850.4k3](/packages/bennett-treptow-laravel-migration-generator)[moodlehq/moodle-plugin-ci

Helps running Moodle plugins analysis checks and tests under various CI environments.

612.6M](/packages/moodlehq-moodle-plugin-ci)[sylius-labs/doctrine-migrations-extra-bundle

226.6M9](/packages/sylius-labs-doctrine-migrations-extra-bundle)[blackboard-open-source/moodle-plugin-ci

Assists with running Moodle plugins in Travis CI

42141.8k](/packages/blackboard-open-source-moodle-plugin-ci)

PHPackages © 2026

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