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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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.

Image of adding toolbar

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

PHP Build Version
Package Version
Requires php Version >=5.3.3
symfony/framework-bundle Version ^2.8 || ^3.0
twig/twig Version ~1.11|~2.0
ext-curl Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package artgris/version-checker-bundle contains the following files

Loading the files please wait ....