PHPackages                             woohoolabs/larva - 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. woohoolabs/larva

ActiveLibrary

woohoolabs/larva
================

Woohoo Labs. Larva Database Abstraction

0.7.3(5y ago)27041[1 PRs](https://github.com/woohoolabs/larva/pulls)1MITPHPPHP ^7.4.0||^8.0.0CI passing

Since Jan 29Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/woohoolabs/larva)[ Packagist](https://packagist.org/packages/woohoolabs/larva)[ RSS](/packages/woohoolabs-larva/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (13)Used By (1)

Woohoo Labs. Larva
==================

[](#woohoo-labs-larva)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e28c5ce43e046ca7fdcd6ee8edcc5e603a2038ac37816ca875970428afda932b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f776f6f686f6f6c6162732f6c617276612e737667)](https://packagist.org/packages/woohoolabs/larva)[![Software License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](LICENSE)[![Build Status](https://camo.githubusercontent.com/adceaf29f8d44e67e6b8f70f318e9088c2fb05e49530ead05c4a7fe5fc9696c1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f776f6f686f6f6c6162732f6c617276612f436f6e74696e756f7573253230496e746567726174696f6e)](https://github.com/woohoolabs/larva/actions)[![Coverage Status](https://camo.githubusercontent.com/8c034d0421108ab64440b97289cfd782604a7c45789dec955174c1d73f39b218/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f776f6f686f6f6c6162732f6c61727661)](https://codecov.io/gh/woohoolabs/larva)[![Quality Score](https://camo.githubusercontent.com/dd4bcc5e2d55ef7b654a7d29ddd6f24f49ad0ade88e847d7ea67018040bcd1a5/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f776f6f686f6f6c6162732f6c617276612e737667)](https://scrutinizer-ci.com/g/woohoolabs/larva)[![Total Downloads](https://camo.githubusercontent.com/db8f55026ea9179f73897ec4e4a38c6893da7dba9b886900251b7bb921e5d116/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f776f6f686f6f6c6162732f6c617276612e737667)](https://packagist.org/packages/woohoolabs/larva)[![Gitter](https://camo.githubusercontent.com/fca843d3d6702d9f0589673cb4e14bc031b819d62e5b0c64bd40795dd76aa858/68747470733a2f2f6261646765732e6769747465722e696d2f776f6f686f6f6c6162732f6c617276612e737667)](https://gitter.im/woohoolabs/larva?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)

**Woohoo Labs. Larva is an efficient and minimal database abstraction library.**

Table of Contents
-----------------

[](#table-of-contents)

- [Introduction](#introduction)
- [Install](#install)
- [Basic Usage](#basic-usage)
- [Advanced Usage](#advanced-usage)
- [Examples](#examples)
- [Versioning](#versioning)
- [Change Log](#change-log)
- [Contributing](#contributing)
- [Support](#support)
- [Credits](#credits)
- [License](#license)

Introduction
------------

[](#introduction)

Install
-------

[](#install)

The steps of this process are quite straightforward. The only thing you need is [Composer](https://getcomposer.org).

#### Add Larva to your composer.json:

[](#add-larva-to-your-composerjson)

To install this library, run the command below and you will get the latest version:

```
$ composer require woohoolabs/larva
```

> Note: The tests and examples won't be downloaded by default. You have to use `composer require woohoolabs/larva --prefer-source`or clone the repository if you need them.

Basic Usage
-----------

[](#basic-usage)

Advanced Usage
--------------

[](#advanced-usage)

Examples
--------

[](#examples)

Have a look at the [examples directory](https://github.com/woohoolabs/larva/blob/master/examples/) for a really basic example. Don't forget to run `composer install` first in Larva's root directory if you want to try it out!

Versioning
----------

[](#versioning)

This library follows [SemVer v2.0.0](https://semver.org/).

Change Log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

Larva has a PHPUnit test suite. To run the tests, run the following command from the project folder:

```
$ phpunit
```

Additionally, you may run `docker-compose up` or `make test` to execute the tests.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Support
-------

[](#support)

Please see [SUPPORT](SUPPORT.md) for details.

Credits
-------

[](#credits)

- [Máté Kocsis](https://github.com/kocsismate)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see the [License File](LICENSE) for more information.

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance54

Moderate activity, may be stable

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity65

Established project with proven stability

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

Recently: every ~137 days

Total

11

Last Release

2147d ago

PHP version history (4 changes)0.1.0PHP ^7.0.0

0.5.0PHP ^7.1.0

0.7.0PHP ^7.4.0

0.7.3PHP ^7.4.0||^8.0.0

### Community

Maintainers

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

---

Top Contributors

[![kocsismate](https://avatars.githubusercontent.com/u/6057627?v=4)](https://github.com/kocsismate "kocsismate (159 commits)")

---

Tags

database-abstractionmysqlphpquery-builderdatabase abstractionquery builderWoohoo Labs.Larva

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/woohoolabs-larva/health.svg)

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

###  Alternatives

[j4mie/idiorm

A lightweight nearly-zero-configuration object-relational mapper and fluent query builder for PHP5

2.0k1.5M29](/packages/j4mie-idiorm)[cycle/orm

PHP DataMapper ORM and Data Modelling Engine

1.3k835.4k64](/packages/cycle-orm)[usmanhalalit/pixie

A lightweight, expressive, framework agnostic query builder for PHP.

6872.2M15](/packages/usmanhalalit-pixie)[gmostafa/php-graphql-client

GraphQL client and query builder.

3217.6M25](/packages/gmostafa-php-graphql-client)[cakephp/database

Flexible and powerful Database abstraction library with a familiar PDO-like API

9724.6M33](/packages/cakephp-database)[foolz/sphinxql-query-builder

A PHP query builder for SphinxQL and ManticoreQL with MySQLi and PDO drivers.

3232.2M32](/packages/foolz-sphinxql-query-builder)

PHPackages © 2026

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