All Projects → ctf0 → PackageChangeLog

ctf0 / PackageChangeLog

Licence: MIT license
Show Package Changelog On Composer Install/update

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to PackageChangeLog

Project
⭐️ Antares Project Application Skeleton. This is the very first place you should start. It allows you to create a brand new awesome project in easy few steps.
Stars: ✭ 84 (+460%)
Mutual labels:  notifications, composer
Composer Changelogs
📓 Display better summary after Composer update
Stars: ✭ 540 (+3500%)
Mutual labels:  composer, changelog
wordpress-scaffold
The scaffold for GRRR's WordPress Pro setup.
Stars: ✭ 16 (+6.67%)
Mutual labels:  composer
hangouts-chrome-notifications
Extension which adds Chrome notifications to the Hangouts webchat
Stars: ✭ 20 (+33.33%)
Mutual labels:  notifications
SnitchDNS
Database Driven DNS Server with a Web UI
Stars: ✭ 169 (+1026.67%)
Mutual labels:  notifications
ChatApp
Chat app based on Firebase tools.
Stars: ✭ 88 (+486.67%)
Mutual labels:  notifications
laration
Simple package to see all current configurations being used by your Laravel application
Stars: ✭ 47 (+213.33%)
Mutual labels:  composer
vue-dk-toast
Lightweight toast-notification plugin for Vue 3 🍞
Stars: ✭ 23 (+53.33%)
Mutual labels:  notifications
NotificationShortcuts
Manage your macOS notifications with keyboard shortcuts
Stars: ✭ 25 (+66.67%)
Mutual labels:  notifications
changelog
Changelog library - builder setup and advanced filtering
Stars: ✭ 73 (+386.67%)
Mutual labels:  changelog
homify
🏡 Open-source home automation / smarthome platform running on PHP (Laravel).
Stars: ✭ 45 (+200%)
Mutual labels:  composer
laravel-pipes
Aims making it easier to organize internal handling of incoming webhooks.
Stars: ✭ 21 (+40%)
Mutual labels:  notifications
robusta
Open source Kubernetes monitoring, troubleshooting, and automation platform
Stars: ✭ 772 (+5046.67%)
Mutual labels:  notifications
app
Aplus Framework App Project
Stars: ✭ 338 (+2153.33%)
Mutual labels:  composer
sns-laravel
A library to enable sending and receiving broadcasts to and from SNS topics in Laravel and Lumen.
Stars: ✭ 23 (+53.33%)
Mutual labels:  notifications
pushex
Push notifications for Elixir
Stars: ✭ 96 (+540%)
Mutual labels:  notifications
laravel-fcm-notification-channel
No description or website provided.
Stars: ✭ 23 (+53.33%)
Mutual labels:  notifications
mac-ibm-notifications
macOS agent used to display custom notifications and alerts to the end user.
Stars: ✭ 206 (+1273.33%)
Mutual labels:  notifications
react-redux-notification
The simplest way to implement a notification system in your React-Redux app
Stars: ✭ 28 (+86.67%)
Mutual labels:  notifications
linkedresearch.org
🌐 linkedresearch.org
Stars: ✭ 32 (+113.33%)
Mutual labels:  notifications

PackageChangeLog
Latest Stable Version Total Downloads

usually when a package gets updated, the package owner could possibly add/change/remove something from the configuration file, or could add a new feature that he/she didn't have time to add to the read me yet, or for whatever reason that could potentially effect how the user consume the package.

Therefor PackageChangeLog was made, to help developers keep their packages as user friendly as possible and keep the users up-to-date with new changes as releases gets published.

Installation

  • composer require ctf0/package-changelog

  • after installation, package will auto-register the below to composer.json

    "scripts": {
        "post-install-cmd": [
            "@php artisan pcl:post-install"
        ],
        "post-update-cmd": [
            "@php artisan pcl:post-update"
        ]
    }

Upgrading to v✌️

  • remove 'App\\Providers\\EventServiceProvider::postAutoloadDump' from composer.json

  • remove

    /**
    * "ctf0/package-changelog".
    */
    public static function postAutoloadDump(\Composer\Script\Event $event)
    {
       if (class_exists('ctf0\PackageChangeLog\Ops')) {
           return \ctf0\PackageChangeLog\Ops::postAutoloadDump($event);
       }
    }

    from app\Providers\EventServiceProvider

  • clear the cache php artisan cache:clear


Usage

  • inside your "package" composer.json

    • add the package as a dependency
    • add "changeLog": "log_folder_name" to extra
    "require": {
        // ...
        "ctf0/package-changelog": "^2.0"
    },
    "extra": {
        // ...
        "changeLog": "logs"
    }
  • inside that folder add the log files

    • install post-install-cmd

    if you want to show a log on installation only, then add a file name install.txt and we will display it only when the package gets installed for the first time.

    release tag log file name
    * install.txt
    • update post-update-cmd

    the version have to be equal "==" to the release tag because we check against that version b4 showing the log.

    this is useful in-case you didn't add a changeLog for the current published version.

    release tag log file name
    v1.0.0 v1.0.0.txt

Uninstall

  • for whatever reason you decided to remove the package, make sure to remove all the package scripts under composer.json before uninstall
"scripts": {
    "post-install-cmd": [
        "@php artisan pcl:post-install"
    ],
    "post-update-cmd": [
        "@php artisan pcl:post-update"
    ]
}

Notes

  • we don't use any parser for the log file, so whatever you write in the file will be displayed to the user as it is.
  • This is more of a utility package directed towards developers & to get the best of it you have to add it to your package, however to test it you can install it like any other package & you would get a message like the screenshot above.

Security

If you discover any security-related issues, please email [email protected].

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].