netzmacht / packagist-release-publisher
Ths package provides a CLI tool to create release notes of packagist releases.
Requires
- php: ~7.1
- ext-json: *
- ext-posix: *
- abraham/twitteroauth: ^0.9.2
- beberlei/assert: ^3.0
- composer/semver: ^1.4
- guzzlehttp/guzzle: ^6.3
- guzzlehttp/psr7: ^1.4
- netzmacht/tapatalk-client-api: ^0.4.0
- psr/container: ^1.0
- symfony/console: ^4.1
- symfony/filesystem: ^4.1
- webmozart/path-util: ^2.3
- zendframework/zend-feed: ^2.10
- zendframework/zend-servicemanager: ^3.3
Requires (Dev)
- phpcq/all-tasks: ^1.2
README
This tool allows to notify about releases published on packagist to a broader audience.
You can publish the release information as twitter tweet and as a forum post/topic of a forum using tapatalk.
Requirements
- >= PHP 7.1
Install
Global installation
- Make sure that the composer global bin directory is part of your
PATH
environment variable. - Install the tool with
composer global require netzmacht/release-notifier
Local installation
Alternatively you can install it in any directory locally
- Install the tool with
composer require netzmacht/release-notifier
Usage
The following description assumes you have installed the tool globally. If you have an local installation you have to adjust the executable path.
- Create a configuration file in your current directory
release-notifier create-config config.php
- Edit the configuration file with your publishers and packages.
- Check if any new releases where made (since last run). If config is used the first time, it's checked against today.
release-notifier check -v
- Let the tool publish your releases
release-notifier publish -v
- Setup an cron job to automate the task
The tool used the symfony/console. You might use the list
command or --help
option to get more information about
the provides commands.
If you want to use the twitter publisher, you have to register an own twitter app and generate the access token online at developer.twitter.com