symvaro/release-notes

1.0.0 2020-04-20 16:04 UTC

This package is auto-updated.

Last update: 2024-05-09 19:37:55 UTC


README

Laravel package to create and manage markdown release notes.

Installation

Composer

composer require symvaro/release-notes

And optionally add the Facade

'ReleaseNotes' => Symvaro\ReleaseNotes\Facades\ReleaseNotes::class,

and publish the config file for view path customization.

Usage

Creating a new Note (from terminal)

artisan release:note name_for_the_update
artisan release:note "Super tolle neue Features"

This automatically creates .md files for every language used in your application. The default directory is resources/views/release/.

Retrieving all release notes, sorted by date created, for current set language

\ReleaseNotes::notesForCurrentLocale();

Retrieving most recent 10 notes

\ReleaseNotes::notesForCurrentLocale(null, 10);

Retrieving notes after a specific date

\ReleaseNotes::notesForCurrentLocale(new \DateTime());

Retrieving only the most recent note

\ReleaseNotes::lastNoteForCurrentLocale()

Using a custom language

\ReleaseNotes::notesForLocale('de');