PHPackages                             grnsv/l-codegen - 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. [API Development](/categories/api)
4. /
5. grnsv/l-codegen

ActiveLibrary[API Development](/categories/api)

grnsv/l-codegen
===============

Laravel package for installing and running grnsv/lcodegen code generator

0.1.1(3mo ago)00MITPHPPHP ^8.2CI passing

Since Jan 30Pushed 3mo agoCompare

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

READMEChangelog (3)Dependencies (9)Versions (4)Used By (0)

l-codegen
=========

[](#l-codegen)

Laravel package that downloads and installs the `lcodegen` Go binary from [GitHub Releases](https://github.com/grnsv/lcodegen/releases) into your Laravel project's `vendor/bin` directory.

Features
--------

[](#features)

- Artisan commands for binary installation and code generation
- Multi-platform support (Linux, macOS, Windows)
- Multi-architecture support (x86\_64, arm64, i386)
- Checksum verification for security
- Lightweight package (binary is downloaded, not included in package)
- Version synchronization with `composer.json`

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

[](#installation)

1. Install the package:

```
composer require grnsv/l-codegen
```

2. Install the binary:

```
php artisan l-codegen:install
```

Usage
-----

[](#usage)

Generate Laravel code from an OpenAPI specification:

```
php artisan l-codegen:generate openapi.yml
```

Or call the binary directly:

```
vendor/bin/lcodegen openapi.yml
```

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

[](#how-it-works)

1. Run the `php artisan l-codegen:install` command
2. It detects your operating system and CPU architecture
3. Downloads the appropriate binary from GitHub Releases based on the version in `composer.json`
4. Verifies the downloaded binary using SHA256 checksums
5. Extracts and installs the binary to `vendor/bin/lcodegen`
6. Makes the binary executable (on Unix systems)

Supported Platforms
-------------------

[](#supported-platforms)

- **Linux**: x86\_64, arm64, i386
- **macOS**: x86\_64 (Intel), arm64 (Apple Silicon)
- **Windows**: x86\_64, arm64, i386

Version Management
------------------

[](#version-management)

The version of the binary is determined by the `version` field in this package's `composer.json`. To update to a new version of `lcodegen`, update this package to the corresponding version.

Requirements
------------

[](#requirements)

- PHP &gt;= 8.2
- Composer &gt;= 2.0
- Laravel &gt;= 11.0 || &gt;= 12.0

Development
-----------

[](#development)

### Running Tests

[](#running-tests)

```
composer test
```

### Running Tests with Coverage

[](#running-tests-with-coverage)

```
composer test-coverage
```

### Test Coverage

[](#test-coverage)

The package includes integration tests that verify:

- Command registration in Laravel
- Platform detection (OS and architecture)
- Binary installation process
- Code generation via Artisan command
- Service provider auto-discovery

Troubleshooting
---------------

[](#troubleshooting)

### Binary not found after installation

[](#binary-not-found-after-installation)

Run the install command manually:

```
php artisan l-codegen:install
```

### Checksum verification failed

[](#checksum-verification-failed)

This might indicate a corrupted download or a network issue. Try:

```
rm -rf vendor/grnsv/l-codegen
composer install
```

### Permission denied

[](#permission-denied)

On Unix systems, ensure the binary is executable:

```
chmod +x vendor/bin/lcodegen
```

License
-------

[](#license)

MIT

Links
-----

[](#links)

- [lcodegen GitHub Repository](https://github.com/grnsv/lcodegen)
- [Issues](https://github.com/grnsv/l-codegen/issues)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance82

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

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

Total

3

Last Release

93d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0c9b1453ef3e24f5f7c4bfbb7e12b91072f17fd601d80091ba92200f9e2e8dd6?d=identicon)[grnsv](/maintainers/grnsv)

---

Top Contributors

[![grnsv](https://avatars.githubusercontent.com/u/70471000?v=4)](https://github.com/grnsv "grnsv (5 commits)")

---

Tags

code-generatorcodegenlaravelopenapiopenapi-codegenopenapi-generatoropenapi3restrest-apirestful-apiswaggerlaravelcodegen

###  Code Quality

TestsPHPUnit

Static AnalysisRector

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/grnsv-l-codegen/health.svg)

```
[![Health](https://phpackages.com/badges/grnsv-l-codegen/health.svg)](https://phpackages.com/packages/grnsv-l-codegen)
```

###  Alternatives

[andreaselia/laravel-api-to-postman

Generate a Postman collection automatically from your Laravel API

1.0k586.2k3](/packages/andreaselia-laravel-api-to-postman)[essa/api-tool-kit

set of tools to build an api with laravel

52680.5k](/packages/essa-api-tool-kit)[resend/resend-laravel

Resend for Laravel

1191.4M6](/packages/resend-resend-laravel)[mll-lab/laravel-graphiql

Easily integrate GraphiQL into your Laravel project

683.2M9](/packages/mll-lab-laravel-graphiql)[neuron-core/neuron-laravel

Official Neuron AI Laravel SDK.

10710.0k](/packages/neuron-core-neuron-laravel)[joggapp/laravel-aws-sns

Laravel package for the SNS events by AWS

3171.8k](/packages/joggapp-laravel-aws-sns)

PHPackages © 2026

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