doganddev/changelog-generator 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

doganddev/changelog-generator

Composer 安装命令:

composer require doganddev/changelog-generator

包简介

A Laravel package to create changelogs via a dynamic interface

README 文档

README

A Laravel package to create and manage changelogs via a beautiful and dynamic interface.

Features

  • Modern UI with Tailwind CSS
  • Livewire-powered dynamic interface
  • Multi-language support (English and French)
  • Version validation
  • Markdown and JSON file storage
  • Automatic Git integration (commit and push)
  • Easy integration with Laravel 11
  • Jetstream compatible

Requirements

  • PHP 8.2 or higher
  • Laravel 11.x
  • Livewire 3.x
  • Git (for automatic commits and pushes)

Installation

  1. Add the repository to your composer.json:
"repositories": [
    {
        "type": "path",
        "url": "packages/doganddev/changelog-generator"
    }
]
  1. Install the package:
composer require doganddev/changelog-generator
  1. Publish the configuration and assets:
php artisan vendor:publish --provider="DogAndDev\ChangelogGenerator\ChangelogGeneratorServiceProvider"

Usage

  1. Access the changelog generator at /admin/actions/create-changelog
  2. Fill in the version (format: X.X.X)
  3. Select the release date
  4. Add your changes in the appropriate sections:
    • Added Features
    • Changed Features
    • Fixed Issues
  5. Submit the form to generate the changelog

The changelog will be stored as both:

  • A JSON file in storage/app/changelogs/
  • A Markdown file (CHANGELOG.md) in your project root

Configuration

You can customize the package behavior in config/changelog-generator.php:

  • Storage path for changelog files
  • File format (supports both JSON and Markdown)
  • Markdown file path
  • Git configuration:
    • Enable/disable Git integration
    • Auto-commit changes
    • Auto-push changes
    • Customize commit message
    • Configure remote and branch
  • Route configuration (prefix and middleware)

Git Integration

The package can automatically commit and push your changelog changes. Configure Git settings in config/changelog-generator.php:

'git' => [
    'enabled' => true,
    'auto_commit' => true,
    'auto_push' => true,
    'commit_message' => 'docs: update changelog for version {version}',
    'remote' => 'origin',
    'branch' => 'main',
],

Translations

The package comes with English and French translations. You can add more languages by creating new files in the resources/lang/vendor/changelog-generator directory.

Security

The changelog generator routes are protected by the auth middleware by default. Make sure to configure your authentication as needed.

License

This package is open-sourced software licensed under the MIT license.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-02-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固