Download the PHP package artgris/version-checker-bundle without Composer
On this page you can find all versions of the php package artgris/version-checker-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download artgris/version-checker-bundle
More information about artgris/version-checker-bundle
Files in artgris/version-checker-bundle
Package version-checker-bundle
Short Description Symfony Bundle to get list of installed packages in your project with a comparative of your and github (last release) versions. Accessible via Symfony Web Debug Toolbar, service and twig extension.
License MIT
Homepage https://github.com/artgris/VersionCheckerBundle
Informations about the package version-checker-bundle
VersionCheckerBundle
Symfony Bundle to get list of installed packages in your project with a comparative of your versions (Parse composer.lock) and github versions (GitHub Api v3) . Accessible via Symfony Web Debug Toolbar (using Cache), service and twig extension.
Versions available in Symfony Web Debug Toolbar
Requirements
module php_curl
Installation
1) Download
composer require artgris/version-checker-bundle
2) Enable Bundle
// app/AppKernel.php
$bundles = array(
// ...
new Artgris\VersionCheckerBundle\ArtgrisVersionCheckerBundle()
);
3) Configure the Bundle
Adds following configurations
to app/config/routing_dev.yml
_artgris_version_checker:
resource: "@ArtgrisVersionCheckerBundle/Resources/config/routing.yml"
You don't have to have routing restriction on '/artgris-vcb-ajax'
to app/config/config.yml
(optional) :
access_token
: optional but necessary if you have more than 60 packages - It's your token to use GitHub API without rate limit => Generate your token (required GitHub user account)
lifetime
: Cache lifetime (seconds), GitHub Versions have been saved with The Cache Component
.
GitHub Api rate limit
VersionCheckerBundle uses GitHub API v3 to get last releases of your packages.
But GitHub has Rate Limiting policy :
For requests using Basic Authentication or OAuth, you can make up to 5,000 requests per hour.
For unauthenticated requests, the rate limit allows you to make up to 60 requests per hour.
That's why it's necessary to use a token when you have more than 60 packages.
Usage
Symfony Web Debug Toolbar
(screenshot above)
Service
$this->get('version_checker_service')->versionChecker($gitHubName = null)
exemple :
$this->get('version_checker_service')->versionChecker()
return an array with all of your packages :
[
"doctrine/dbal" => [
"yourVersion" => "v2.5.6"
"url" => "https://github.com/doctrine/dbal.git"
"gitHubVersion" => "v2.5.7"
],[
"doctrine/DoctrineBundle" => [
"yourVersion" => "1.6.6"
"url" => "https://github.com/doctrine/DoctrineBundle.git"
"gitHubVersion" => "1.6.6"
],[
...
]
]
or get a unique package version :
$this->get('version_checker_service')->versionChecker('doctrine/dbal')
Twig extension
same logic :
version_checker()
version_checker(packageName)
No release found
If you have message No release found
for a package, it's because he doesn't have any published full release.
All versions of version-checker-bundle with dependencies
symfony/framework-bundle Version ^2.8 || ^3.0
twig/twig Version ~1.11|~2.0
ext-curl Version *