# Alembic vs Doctrine

| Attribute | Alembic | Doctrine |
|---|---|---|
| **Vioscale score** | 65.7 (43% (low)) | 67.2 (54% (medium)) |
| activity.commits_last_30d | 15 | 10 |
| adoption.dependent_repos | 52,456 | 87,805 |
| adoption.github_stars | 4,340 | 10,169 |
| deployment.options | - | `{"self_hosted":true}` |
| description.long | Alembic is an open-source database migrations tool that provides transactional DDL support, auto-generation of migration scripts, and non-linear versioning with dependency-graph structure for managing database schema changes. | Doctrine provides PHP developers with both high-level object-oriented database tools and low-level direct SQL access. The core includes an Object Relational Mapper for complex data modeling and a Database Abstraction Layer for flexible database interaction. |
| features.capabilities | `{"raw_sql":true,"multi_db":true,"languages":"Python","relations":true,"migrations":true,"schema_first":true}` | `{"raw_sql":true,"multi_db":true,"languages":"PHP","relations":true,"migrations":true}` |
| integrations.count | - | 20 |
| integrations.list | - | `[{"name":"Symfony"},{"name":"Drupal"},{"name":"Laravel"},{"name":"Laminas"},{"name":"API Platform"},{"name":"eZ Platform"},{"name":"Akeneo PIM"},{"name":"Pimcore"},{"name":"Sylius"},{"name":"Shopware"},{"name":"Contao"},{"name":"Oxid eShop"},{"name":"PrestaShop"},{"name":"TYPO3"},{"name":"Sonata Project"},{"name":"JMS Libraries"},{"name":"Go! AOP"},{"name":"KNP Labs"},{"name":"PHPUnit"},{"name":"phpbench"}]` |
| language.primary | Python | PHP |
| license.spdx | MIT | MIT |
| market.availability | - | `{"primaryMarkets":[],"availabilityScope":"global","availableCountries":[],"notAvailableCountries":[]}` |
| platform.support | `{"cli":true}` | `{"cli":true,"web":true}` |
| pricing | `{"type":"open_source","freeTier":true,"sourceUrl":"https://alembic.sqlalchemy.org/","retrievedAt":"2026-08-13T16:51:56.374Z"}` | `{"type":"open_source","freeTier":true,"sourceUrl":"https://www.doctrine-project.org/","retrievedAt":"2026-08-14T08:35:07.074Z"}` |
| pricing.free_tier | yes | yes |
| pricing.model | open_source | commercial |
| pricing.price_level | free | free |
| pricing.transparent | - | yes |
| release.cadence_days | 17 | 2 |
| release.history | `[{"url":"https://github.com/sqlalchemy/alembic/releases/tag/rel_1_19_1","date":"2026-08-08T16:32:07Z","type":"stable","version":"rel_1_19_1"},{"url":"https://github.com/sqlalchemy/alembic/releases/tag/rel_1_19_0","date":"2026-08-04T18:57:11Z","type":"stable","version":"rel_1_19_0"},{"url":"https://github.com/sqlalchemy/alembic/releases/tag/rel_1_18_5","date":"2026-06-25T15:21:00Z","type":"stable","version":"rel_1_18_5"},{"url":"https://github.com/sqlalchemy/alembic/releases/tag/rel_1_18_4","date":"2026-02-10T16:00:54Z","type":"stable","version":"rel_1_18_4"},{"url":"https://github.com/sqlalchemy/alembic/releases/tag/rel_1_18_3","date":"2026-01-29T20:24:21Z","type":"stable","version":"rel_1_18_3"},{"url":"https://github.com/sqlalchemy/alembic/releases/tag/rel_1_18_2","date":"2026-01-28T21:23:36Z","type":"stable","version":"rel_1_18_2"},{"url":"https://github.com/sqlalchemy/alembic/releases/tag/rel_1_18_1","date":"2026-01-14T18:53:22Z","type":"stable","version":"rel_1_18_1"},{"url":"https://github.com/sqlalchemy/alembic/releases/tag/rel_1_18_0","date":"2026-01-09T21:22:29Z","type":"stable","version":"rel_1_18_0"},{"url":"https://github.com/sqlalchemy/alembic/releases/tag/rel_1_17_2","date":"2025-11-14T20:35:09Z","type":"stable","version":"rel_1_17_2"},{"url":"https://github.com/sqlalchemy/alembic/releases/tag/rel_1_17_1","date":"2025-10-29T00:23:22Z","type":"stable","version":"rel_1_17_1"},{"url":"https://github.com/sqlalchemy/alembic/releases/tag/rel_1_17_0","date":"2025-10-11T18:40:20Z","type":"stable","version":"rel_1_17_0"},{"url":"https://github.com/sqlalchemy/alembic/releases/tag/rel_1_16_5","date":"2025-08-27T18:02:11Z","type":"stable","version":"rel_1_16_5"},{"url":"https://github.com/sqlalchemy/alembic/releases/tag/rel_1_16_4","date":"2025-07-10T16:17:25Z","type":"stable","version":"rel_1_16_4"},{"url":"https://github.com/sqlalchemy/alembic/releases/tag/rel_1_16_3","date":"2025-07-08T18:57:56Z","type":"stable","version":"rel_1_16_3"},{"url":"https://github.com/sqlalchemy/alembic/releases/tag/rel_1_16_2","date":"2025-06-16T18:05:14Z","type":"stable","version":"rel_1_16_2"},{"url":"https://github.com/sqlalchemy/alembic/releases/tag/rel_1_16_1","date":"2025-05-21T23:11:12Z","type":"stable","version":"rel_1_16_1"},{"url":"https://github.com/sqlalchemy/alembic/releases/tag/rel_1_16_0","date":"2025-05-21T19:18:54Z","type":"stable","version":"rel_1_16_0"},{"url":"https://github.com/sqlalchemy/alembic/releases/tag/rel_1_15_2","date":"2025-03-28T13:52:07Z","type":"stable","version":"rel_1_15_2"},{"url":"https://github.com/sqlalchemy/alembic/releases/tag/rel_1_15_1","date":"2025-03-04T22:02:46Z","type":"stable","version":"rel_1_15_1"},{"url":"https://github.com/sqlalchemy/alembic/releases/tag/rel_1_15_0","date":"2025-03-04T17:57:42Z","type":"stable","version":"rel_1_15_0"}]` | `[{"url":"https://github.com/doctrine/orm/releases/tag/3.6.8","date":"2026-08-05T19:06:31Z","type":"stable","version":"3.6.8"},{"url":"https://github.com/doctrine/orm/releases/tag/3.6.7","date":"2026-05-25T16:53:47Z","type":"stable","version":"3.6.7"},{"url":"https://github.com/doctrine/orm/releases/tag/2.20.13","date":"2026-05-25T16:47:26Z","type":"stable","version":"2.20.13"},{"url":"https://github.com/doctrine/orm/releases/tag/3.6.6","date":"2026-05-21T06:09:26Z","type":"stable","version":"3.6.6"},{"url":"https://github.com/doctrine/orm/releases/tag/3.6.5","date":"2026-05-11T06:48:56Z","type":"stable","version":"3.6.5"},{"url":"https://github.com/doctrine/orm/releases/tag/2.20.12","date":"2026-05-08T11:19:50Z","type":"stable","version":"2.20.12"},{"url":"https://github.com/doctrine/orm/releases/tag/3.6.4","date":"2026-05-07T20:22:28Z","type":"stable","version":"3.6.4"},{"url":"https://github.com/doctrine/orm/releases/tag/2.20.11","date":"2026-05-07T20:18:17Z","type":"stable","version":"2.20.11"},{"url":"https://github.com/doctrine/orm/releases/tag/3.6.3","date":"2026-04-02T06:54:32Z","type":"stable","version":"3.6.3"},{"url":"https://github.com/doctrine/orm/releases/tag/2.20.10","date":"2026-04-02T06:20:37Z","type":"stable","version":"2.20.10"},{"url":"https://github.com/doctrine/orm/releases/tag/3.6.2","date":"2026-01-30T21:43:07Z","type":"stable","version":"3.6.2"},{"url":"https://github.com/doctrine/orm/releases/tag/3.6.1","date":"2026-01-09T06:44:11Z","type":"stable","version":"3.6.1"},{"url":"https://github.com/doctrine/orm/releases/tag/3.6.0","date":"2025-12-19T20:41:15Z","type":"stable","version":"3.6.0"},{"url":"https://github.com/doctrine/orm/releases/tag/3.5.8","date":"2025-11-29T23:12:27Z","type":"stable","version":"3.5.8"},{"url":"https://github.com/doctrine/orm/releases/tag/2.20.9","date":"2025-11-29T23:12:35Z","type":"stable","version":"2.20.9"},{"url":"https://github.com/doctrine/orm/releases/tag/3.5.7","date":"2025-11-11T18:29:24Z","type":"stable","version":"3.5.7"},{"url":"https://github.com/doctrine/orm/releases/tag/3.5.6","date":"2025-11-10T21:12:30Z","type":"stable","version":"3.5.6"},{"url":"https://github.com/doctrine/orm/releases/tag/3.5.5","date":"2025-11-10T20:27:08Z","type":"stable","version":"3.5.5"},{"url":"https://github.com/doctrine/orm/releases/tag/3.5.4","date":"2025-11-10T20:23:35Z","type":"stable","version":"3.5.4"},{"url":"https://github.com/doctrine/orm/releases/tag/2.20.8","date":"2025-11-10T20:24:32Z","type":"stable","version":"2.20.8"}]` |
| security.scorecard | 6.2 | 6.9 |
| security.vulnerabilities | `{"count":0,"source":"https://advisories.ecosyste.ms/api/v1/advisories?ecosystem=pypi&package_name=alembic&per_page=100","last_12m":0,"max_severity":null}` | `{"count":3,"source":"https://advisories.ecosyste.ms/api/v1/advisories?ecosystem=packagist&package_name=doctrine%2Form&per_page=100","last_12m":0,"max_severity":"CRITICAL"}` |

## Capabilities (ORM & Database Tools)

| Capability | Alembic | Doctrine |
|---|:--:|:--:|
| **Core** |  |  |
| Type-safe queries | - | - |
| Schema migrations | ✓ | ✓ |
| Relations / joins API | ✓ | ✓ |
| Languages | Python | PHP |
| **Modelling** |  |  |
| Schema-first modelling | ✓ | - |
| **Flexibility** |  |  |
| Raw SQL escape hatch | ✓ | ✓ |
| **Portability** |  |  |
| Multiple database backends | ✓ | ✓ |
| **Ops** |  |  |
| Connection pooling | - | - |
| **DX** |  |  |
| Data browser / studio | - | - |

*Source: Vioscale. Generated 2026-09-01T17:11:00.078Z. "-" = undocumented, not absent.*
