bringyourownideas / silverstripe-composer-update-checker
Checks if any composer packages needs to be updated.
Installs: 185 895
Dependents: 5
Suggesters: 4
Security: 0
Stars: 4
Watchers: 3
Forks: 9
Open Issues: 7
Type:silverstripe-vendormodule
Requires
- php: ^8.1
- bringyourownideas/silverstripe-maintenance: ^3
- composer/composer: ^2
- silverstripe/framework: ^5
Requires (Dev)
Conflicts
- symbiote/silverstripe-queuedjobs: <4.1.0
Replaces
- dev-master
- 5.x-dev
- 4.x-dev
- 4.1.x-dev
- 4.1.2
- 4.1.1
- 4.1.0
- 4.1.0-rc1
- 4.1.0-beta1
- 4.0.x-dev
- 4.0.0
- 4.0.0-rc1
- 4.0.0-beta1
- 3.x-dev
- 3.1.x-dev
- 3.1.0
- 3.0.x-dev
- 3.0.0
- 2.x-dev
- 2.1.x-dev
- 2.1.1
- 2.1.0
- 2.0.x-dev
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.x-dev
- 1.1.x-dev
- 1.1.0
- 1.1.0-rc1
- 1.0.x-dev
- 1.0.2
- 1.0.1
- 1.0.0
- 0.3.1
- 0.3.0
- 0.2.5
- 0.2.4
- 0.2.3
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.2
- 0.1.1
- 0.1.0
This package is auto-updated.
Last update: 2024-11-26 20:27:20 UTC
README
Checks if any of your Composer dependencies needs to be updated, and tracks the available and latest versions that can be updated to.
This module only runs the actual checks and saves the information into fields on the Package DataObject. The fields are also added to the report that the SilverStripe Maintenance module provides.
The bulk of the heavy lifting here is done using the Composer PHP API, which mimics the behaviour of using Composer on the command line to install or update PHP packages.
Requirements
- bringyourownideas/silverstripe-maintenance ^2
- composer/composer ^2
- silverstripe/framework ^4
Compatibility
The 1.x release line of this module is compatible with SilverStripe ^3.2, and the 2.x release line is compatible with SilverStripe ^4.0.
The 2.x release line of the module is compatible with composer v1, and this 3.x release line is compatible with composer v2
Installation
Run the following command to install this package:
composer require bringyourownideas/silverstripe-composer-update-checker ^2
vendor/bin/sake dev/build flush=1
vendor/bin/sake dev/tasks/UpdatePackageInfoTask
Note for private repositories
Please note that if your project has modules that are stored in private repositories, the server running the BuildTask will need to have the necessary permissions to access the private VCS repositories in order for the report to include update information about necessary updates to the module.
If the process looking for available updates fails (for example, due to an authentication failure against a private repository) the process will fail gracefully and allow the rest of the report generation to continue.
Users on the Common Web Platform will currently not be able to retrieve information about updates to private repositories.
Documentation
Please see the user guide section of the SilverStripe Maintenance module.
Terminology
The "Available" version will show the latest available version for a Package that can be installed, given the package's semver constraint. If the version is the same as that which is already installed, the column will be empty in the report.
The "Latest" version is the latest available version regardless of the package's semver constraint.
When tracking available and latest versions, the current, available and latest version hashes are also stored against the Package. This is to help with showing whether updates are available within a branch alias (for example: 1.x-dev).
Contributing
Please see the contributing guide.