PHPackages                             allfuel/lpg - 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. [Database &amp; ORM](/categories/database)
4. /
5. allfuel/lpg

ActiveLibrary[Database &amp; ORM](/categories/database)

allfuel/lpg
===========

Embedded Postgres command for Laravel applications.

v0.1.6(3mo ago)636MITPHPPHP ^8.2

Since Feb 9Pushed 3mo agoCompare

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

READMEChangelog (3)Dependencies (6)Versions (8)Used By (0)

lpg-laravel
===========

[](#lpg-laravel)

`allfuel/lpg` provides an `artisan lpg` command that starts a local Postgres server for Laravel development, downloading embedded binaries from release artifacts.

Install
-------

[](#install)

```
composer require allfuel/lpg --dev
```

Usage
-----

[](#usage)

**composer run dev**: Add it to your `composer.json` for `dev`. It will then always be available using the port in your `.env`.

e.g.

```
"dev": [
  "Composer\\Config::disableProcessTimeout",
  "npx concurrently -c \"#93c5fd,#34d399,#c4b5fd,#fb7185,#fdba74\" \"php artisan lpg\" \"php artisan serve\" \"php artisan queue:listen --tries=1 --timeout=0\" \"php artisan pail --timeout=0\" \"npm run dev\" --names=lpg,server,queue,logs,vite --kill-others"
],
```

**Or run it manually:**

```
php artisan lpg [--port=5455]
```

Configuration
-------------

[](#configuration)

Publish config:

```
php artisan vendor:publish --tag=lpg-config
```

Then edit `config/lpg.php`.

Embedded Requirements
---------------------

[](#embedded-requirements)

When using embedded binaries from GitHub releases, `lpg` expects:

- `curl` to download assets
- `tar` with gzip support (`-z`) to extract `.tar.gz` assets

Only `.tar.gz` embedded assets are supported. The active embedded runtime is materialized under `storage/pg`, with executables at `storage/pg/bin`.

Testing
-------

[](#testing)

Install dev dependencies and run tests:

```
composer install
composer test
```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance81

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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

Total

7

Last Release

98d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/454975?v=4)[Ashley Hindle](/maintainers/ashleyhindle)[@ashleyhindle](https://github.com/ashleyhindle)

---

Top Contributors

[![ashleyhindle](https://avatars.githubusercontent.com/u/454975?v=4)](https://github.com/ashleyhindle "ashleyhindle (9 commits)")

---

Tags

laravelpostgresartisanembedded

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/allfuel-lpg/health.svg)

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

###  Alternatives

[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[laravel-doctrine/orm

An integration library for Laravel and Doctrine ORM

8425.3M87](/packages/laravel-doctrine-orm)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[cybercog/laravel-clickhouse

ClickHouse migrations for Laravel

163166.8k](/packages/cybercog-laravel-clickhouse)[toponepercent/baum

Baum is an implementation of the Nested Set pattern for Eloquent models.

3154.7k](/packages/toponepercent-baum)[orptech/laravel-migration-partition

Laravel extensions that extends Illuminate to enable partitioned table creation within Laravel migrations.

3426.7k](/packages/orptech-laravel-migration-partition)

PHPackages © 2026

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