2017 © Pedro Peláez
 

symfony-bundle version-checker-bundle

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.

image

artgris/version-checker-bundle

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.

  • Tuesday, October 24, 2017
  • by artgris
  • Repository
  • 1 Watchers
  • 4 Stars
  • 30 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

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., (*1)

Image of adding toolbar, (*2)

Versions available in Symfony Web Debug Toolbar, (*3)

Requirements

module php_curl, (*4)

Installation

1) Download

composer require artgris/version-checker-bundle, (*5)

2) Enable Bundle

// app/AppKernel.php

$bundles = array(
    // ...
      new Artgris\VersionCheckerBundle\ArtgrisVersionCheckerBundle()
);

3) Configure the Bundle

Adds following configurations, (*6)

to app/config/routing_dev.yml, (*7)

 _artgris_version_checker:
      resource: "@ArtgrisVersionCheckerBundle/Resources/config/routing.yml"

You don't have to have routing restriction on '/artgris-vcb-ajax', (*8)

to app/config/config.yml (optional) :, (*9)

artgris_version_checker:
    access_token: xxxxx...
    lifetime: 3600

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), (*10)

lifetime : Cache lifetime (seconds), GitHub Versions have been saved with The Cache Component., (*11)

GitHub Api rate limit

VersionCheckerBundle uses GitHub API v3 to get last releases of your packages., (*12)

But GitHub has Rate Limiting policy :, (*13)

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., (*14)

Usage

Symfony Web Debug Toolbar

(screenshot above), (*15)

Service

$this->get('version_checker_service')->versionChecker($gitHubName = null)

exemple :, (*16)

$this->get('version_checker_service')->versionChecker() 

return an array with all of your packages :, (*17)

[
    "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 :, (*18)

$this->get('version_checker_service')->versionChecker('doctrine/dbal')

Twig extension

same logic :, (*19)

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., (*20)

The Versions

24/10 2017

dev-master

9999999-dev https://github.com/artgris/VersionCheckerBundle

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.

  Sources   Download

MIT

The Requires

 

by Arthur Gribet

debug composer bundle symfony package github version toolbar

18/01 2017

v1.0.7

1.0.7.0 https://github.com/artgris/VersionCheckerBundle

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.

  Sources   Download

MIT

The Requires

 

by Arthur Gribet

debug composer bundle symfony package github version toolbar

18/01 2017

v1.0.6

1.0.6.0 https://github.com/artgris/VersionCheckerBundle

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.

  Sources   Download

MIT

The Requires

 

by Arthur Gribet

debug composer bundle symfony package github version toolbar

18/01 2017

v1.0.5

1.0.5.0 https://github.com/artgris/VersionCheckerBundle

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.

  Sources   Download

MIT

The Requires

 

by Arthur Gribet

debug composer bundle symfony package github version toolbar

18/01 2017

v1.0.4

1.0.4.0 https://github.com/artgris/VersionCheckerBundle

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.

  Sources   Download

MIT

The Requires

 

by Arthur Gribet

debug composer bundle symfony package github version toolbar

16/01 2017

v1.0.3

1.0.3.0 https://github.com/artgris/VersionCheckerBundle

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.

  Sources   Download

MIT

The Requires

 

by Arthur Gribet

debug composer bundle symfony package github version toolbar

15/01 2017

v1.0.2

1.0.2.0 https://github.com/artgris/VersionCheckerBundle

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.

  Sources   Download

MIT

The Requires

 

by Arthur Gribet

debug composer bundle symfony package github version toolbar

15/01 2017

v1.0.1

1.0.1.0 https://github.com/artgris/VersionCheckerBundle

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.

  Sources   Download

MIT

The Requires

 

by Arthur Gribet

composer bundle symfony package github version web debug toolbar

15/01 2017

v1.0

1.0.0.0 https://github.com/artgris/VersionCheckerBundle

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.

  Sources   Download

MIT

The Requires

 

by Arthur Gribet

composer bundle symfony package github version web debug toolbar