PHPackages                             frostiede/silex-version-serviceprovider - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. frostiede/silex-version-serviceprovider

ActiveLibrary

frostiede/silex-version-serviceprovider
=======================================

v1.0.0(9y ago)0488MITPHPPHP &gt;=5.5

Since Oct 16Pushed 9y ago1 watchersCompare

[ Source](https://github.com/frostieDE/silex-version-serviceprovider)[ Packagist](https://packagist.org/packages/frostiede/silex-version-serviceprovider)[ RSS](/packages/frostiede-silex-version-serviceprovider/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Silex Version ServiceProvider
=============================

[](#silex-version-serviceprovider)

[![Build Status](https://camo.githubusercontent.com/9431f3852d4bb65f2754ad13d9b19b61c00f3ab15e448c692004981cda297f60/68747470733a2f2f7472617669732d63692e6f72672f66726f7374696544452f73696c65782d76657273696f6e2d7365727669636570726f76696465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/frostieDE/silex-version-serviceprovider)[![Code Climate](https://camo.githubusercontent.com/d2ae752d5056c4a29965cadc05ac315912f61e02589fe8948c911f12a23f7c1d/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f66726f7374696544452f73696c65782d76657273696f6e2d7365727669636570726f76696465722f6261646765732f6770612e737667)](https://codeclimate.com/github/frostieDE/silex-version-serviceprovider)

ServiceProvider for Silex which enables loading a version file to specify application version.

Installation
------------

[](#installation)

```
$ composer require frostiede/silex-version-serviceprovider

```

Afterwards, register the ServiceProvider:

```
$app->register(new VersionServiceProvider(), [
    'version.file' => __DIR__ . '/VERSION'
]);
```

Usage
-----

[](#usage)

You can now use `$app['version']` to determine the current application version.

Configuration
-------------

[](#configuration)

You must specify the parameter `version.file` which holds the path to the `VERSION` file which is loaded.

Optional: if you want to add an suffix to the version (e.g. `-dev`), you can do that, too. Just specify the option `version.suffix`. Example:

```
$app->register(new VersionServiceProvider(), [
    'version.file' => __DIR__ . '/VERSION',
    'version.suffix' => $app['debug'] ? 'debug' : ''
]);
```

This adds the suffix `debug` in case Silex is in debug mode.

Contribution
============

[](#contribution)

Any help is welcomed. Feel free to create issues and merge requests :-)

License
=======

[](#license)

MIT License

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3494d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3764924?v=4)[Marcel Marnitz](/maintainers/frostieDE)[@frostieDE](https://github.com/frostieDE)

---

Top Contributors

[![frostieDE](https://avatars.githubusercontent.com/u/3764924?v=4)](https://github.com/frostieDE "frostieDE (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/frostiede-silex-version-serviceprovider/health.svg)

```
[![Health](https://phpackages.com/badges/frostiede-silex-version-serviceprovider/health.svg)](https://phpackages.com/packages/frostiede-silex-version-serviceprovider)
```

###  Alternatives

[jaxon-php/jaxon-core

Jaxon is an open source PHP library for easily creating Ajax web applications

73142.3k25](/packages/jaxon-php-jaxon-core)[oat-sa/tao-core

TAO core extension

66136.7k74](/packages/oat-sa-tao-core)[sweatshop/sweatshop

Abstraction layer for message brokers and job servers, including process management

1112.3k](/packages/sweatshop-sweatshop)[moriony/silex-mongo-provider

Mongo service provider for the Silex framwork.

118.5k](/packages/moriony-silex-mongo-provider)[benjam1/symfttpd

PHP webserver

151.7k](/packages/benjam1-symfttpd)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
