o0h / composer-update-request
Support to easily keep composer packages up-to-date, making pull request
Installs: 1 314
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 2
Open Issues: 1
Type:composer-plugin
Requires
- php: ^7.0
- composer-plugin-api: ^1.0
- czproject/git-php: ^3.13
- guzzlehttp/psr7: ^1.4
- knplabs/github-api: ^2.8
- php-http/guzzle6-adapter: ^1.1
Requires (Dev)
This package is auto-updated.
Last update: 2024-05-21 01:32:11 UTC
README
Support to easily keep composer packages up-to-date, making pull request. Try composer update and send pull request automatically.
Requirements
- PHP 7.0+
Installation
composer global require o0h/composer-update-request
Usage
composer.json
You MUST set 'name' fieled in your composer.json.
If not set, then update command run as __root__
and skip create pull request.
Set up env var.
Set up environment variables in bellow.
- GITHUB_TOKEN
- github personal access token
- see setting page
- GITHUB_USER
- user id of login to github(token owner)
- like
o0h
- GITHUB_REPOSITORY
- repository name to send pull request
org/repository
without.git
suffix- like
o0h/composer-update-request-client-test-app
Set up scheduled task.
With cron jobs, auto checking composer-update and pull request will be created.
See exsamples
directory.
@TODO
This is still very WIP. Following tasks must be done 💪
- write tests.
- phpstan with CI.
- support Circle CI.