sebastiaanluca / laravel-changelog
Show your project's changelog in your application
Installs: 4 741
Dependents: 1
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 2
Open Issues: 0
Requires
- php: ^8.0
- erusev/parsedown: ^1.7.4
- laravel/framework: ^8.0
Requires (Dev)
- mockery/mockery: ^1.4.3
- orchestra/testbench: ^6.4
- phpunit/phpunit: ^9.5.2
This package is auto-updated.
Last update: 2022-03-07 15:06:44 UTC
README
Show your project's parsed Markdown changelog in your application.
Requirements
- PHP 8 or higher
- Laravel 8 or higher
Looking for support for earlier versions? Try out any of the previous package versions.
How to use
Ensure you have a CHANGELOG.md
file in the root of your project.
Secondly, register the routes by calling the appropriate method in your main routes file:
\SebastiaanLuca\Changelog\Changelog::routes();
This will enable you to visit the parsed changelog in your browser by visiting https://example.com/changelog
.
By default, the changelog is cached. A good practice is to clear the cache during deployment by running:
php artisan cache:clear
Alternative use
If you don't wish to use the package's routing, you can get the parsed and cached changelog in your own controller:
$changelog = \SebastiaanLuca\Changelog\Changelog::getCachedChangelog();
Customization
To customize a setting, first publish the configuration file and open config/changelog.php
:
php artisan vendor:publish --tag="laravel-changelog (configuration)"
Here you can change the location of the log, the route name and URL, the view used to display the log, and if and how you want to cache it.
License
This package operates under the MIT License (MIT). Please see LICENSE for more information.
Change log
Please see CHANGELOG for more information what has changed recently.
Testing
composer install
composer test
Contributing
Please see CONTRIBUTING and CONDUCT for details.
Security
If you discover any security related issues, please email hello@sebastiaanluca.com instead of using the issue tracker.
Credits
About
My name is Sebastiaan and I'm a freelance Laravel developer specializing in building custom Laravel applications. Check out my portfolio for more information, my blog for the latest tips and tricks, and my other packages to kick-start your next project.
Have a project that could use some guidance? Send me an e-mail at hello@sebastiaanluca.com!