PHPackages                             pamil/symfony-lock - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. pamil/symfony-lock

ActiveMetapackage[Utility &amp; Helpers](/categories/utility)

pamil/symfony-lock
==================

Enforces that all Symfony components use the same major / minor version

v4.0(8y ago)014MIT

Since Dec 30Pushed 8y ago1 watchersCompare

[ Source](https://github.com/pamil/symfony-lock)[ Packagist](https://packagist.org/packages/pamil/symfony-lock)[ Docs](https://dunglas.fr)[ RSS](/packages/pamil-symfony-lock/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (7)Used By (0)

Locking a Symfony Project to a Specific Major Version of the Framework
======================================================================

[](#locking-a-symfony-project-to-a-specific-major-version-of-the-framework)

Using `symfony/symfony` makes Composer install all Symfony Components, all in the same version. But when using the standalone packages (the Symfony Flex way), Composer might install dependencies in a different major version (`symfony/http-kernel`v2.8 and `symfony/event-dispatcher` v3.4 for instance, usually because another dependency of the project is not compatible with Symfony 3.0).

This Composer package allows you to enforce a consistent major version on all Symfony Components, whether they are explicitly listed as a project's dependency or installed transitively.

For instance when using `dunglas/symfony-lock:^4`, if a package cannot be installed in v4.0, but only in v3.4 (usually because of another library not supporting Symfony 4), a conflict will be generated.

Note that this package is meant to be used by library authors in their continuous integration systems. It should NOT be added directly to the project's `composer.json`.

Difference with `symfony/lts`
-----------------------------

[](#difference-with-symfonylts)

`symfony/lts` enforces that your project don't use use a version not released as a LTS, but does not enforce that all your Symfony packages are in the same major version. For instance, when using `symfony/lts` v3, some packages can be installed in version 3.4, and some others in version 2.8.

Usage
-----

[](#usage)

Use the Composer command line:

```
composer require dunglas/symfony-lock v4
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 80% 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

Every ~0 days

Total

6

Last Release

3104d ago

Major Versions

v3.0 → v4.02017-12-30

### Community

Maintainers

![](https://www.gravatar.com/avatar/ddce56b3ed9857e5c4a25511e5925b793a1f04bd5fb8f19f42932a0b6dba914f?d=identicon)[pamil](/maintainers/pamil)

---

Top Contributors

[![dunglas](https://avatars.githubusercontent.com/u/57224?v=4)](https://github.com/dunglas "dunglas (4 commits)")[![pamil](https://avatars.githubusercontent.com/u/1897953?v=4)](https://github.com/pamil "pamil (1 commits)")

### Embed Badge

![Health badge](/badges/pamil-symfony-lock/health.svg)

```
[![Health](https://phpackages.com/badges/pamil-symfony-lock/health.svg)](https://phpackages.com/packages/pamil-symfony-lock)
```

###  Alternatives

[pecl/parallel

A succinct parallel concurrency API for PHP 8

1.6k1.7k](/packages/pecl-parallel)[eg-mohamed/referenceable

Advanced Laravel package for generating customizable model reference numbers with flexible formats, sequential numbering, and comprehensive configuration options

798.3k](/packages/eg-mohamed-referenceable)

PHPackages © 2026

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