承接 grnsv/l-codegen 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

grnsv/l-codegen

最新稳定版本:0.1.1

Composer 安装命令:

composer require grnsv/l-codegen

包简介

Laravel package for installing and running grnsv/lcodegen code generator

README 文档

README

Laravel package that downloads and installs the lcodegen Go binary from GitHub Releases into your Laravel project's vendor/bin directory.

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

  1. Install the package:
composer require grnsv/l-codegen
  1. Install the binary:
php artisan l-codegen:install

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

  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

  • Linux: x86_64, arm64, i386
  • macOS: x86_64 (Intel), arm64 (Apple Silicon)
  • Windows: x86_64, arm64, i386

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

  • PHP >= 8.2
  • Composer >= 2.0
  • Laravel >= 11.0 || >= 12.0

Development

Running Tests

composer test

Running Tests with Coverage

composer 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

Binary not found after installation

Run the install command manually:

php artisan l-codegen:install

Checksum verification failed

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

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

Permission denied

On Unix systems, ensure the binary is executable:

chmod +x vendor/bin/lcodegen

License

MIT

Links

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-02-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固