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
- Add the repository to your
composer.json:
"repositories": [ { "type": "path", "url": "packages/doganddev/changelog-generator" } ]
- Install the package:
composer require doganddev/changelog-generator
- Publish the configuration and assets:
php artisan vendor:publish --provider="DogAndDev\ChangelogGenerator\ChangelogGeneratorServiceProvider"
Usage
- Access the changelog generator at
/admin/actions/create-changelog - Fill in the version (format: X.X.X)
- Select the release date
- Add your changes in the appropriate sections:
- Added Features
- Changed Features
- Fixed Issues
- 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
其他信息
- 授权协议: MIT
- 更新时间: 2025-02-09