consolidation/self-update
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|---|---|---|---|---|
composer/semver | 3.4.0 | 28.21 kB | MIT | prod | |
symfony/console | v6.4.7 | - | MIT | prod | |
symfony/filesystem | v6.4.7 | - | MIT | prod |
The consolidation/self-update package is a handy tool specifically developed for Symfony Console applications. Its primary function is to allow in-place updates of a phar (PHP Archive) effectively rendering the process for application updates straightforward and efficient.
The utilization of the consolidation/self-update package involves incorporating a self:update command into your application. By using the SelfUpdateCommand, you'll be able to specify the name of your application, the current version, and provide the full name of your GitHub project. Below is an example of how you can implement it within your program:
$cmd = new SelfUpdateCommand('MyAppName', '1.0.0', 'org/my-app');
$app->add($cmd);
In this instance, 'MyAppName' is the name of the application, '1.0.0' is the current version, and 'org/my-app' is the full name of your GitHub project.
The comprehensive documentation for the consolidation/self-update package can be found directly on the official GitHub repository - https://github.com/consolidation/self-update. Here, you'll access all the necessary information including usage guidelines, similar projects, and other intricate details pertaining to the functioning and implementation of the package.