# Doctrine vs Sequelize

**Leader by Vioscale score:** Sequelize

| Attribute | Doctrine | Sequelize |
|---|---|---|
| **Vioscale score** | 67.2 (54% (medium)) | 73.7 (72% (medium)) |
| activity.commits_last_30d | 10 | 7 |
| adoption.dependent_repos | 87,805 | 193,226 |
| adoption.github_stars | 10,169 | 30,377 |
| adoption.package_downloads_weekly | - | 2,842,247 |
| deployment.options | `{"self_hosted":true}` | `{"self_hosted":true}` |
| description.long | 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. | Sequelize is an ORM that bridges JavaScript and TypeScript applications with multiple relational databases including PostgreSQL, MySQL, MariaDB, SQLite, Oracle, SQL Server, Snowflake, and DB2. It provides declarative schema modeling, relationship definitions, transaction support, and flexible data loading strategies. |
| features.capabilities | `{"raw_sql":true,"multi_db":true,"languages":"PHP","relations":true,"migrations":true}` | `{"multi_db":true,"languages":"JavaScript, TypeScript","relations":true,"migrations":true,"schema_first":true,"type_safe_queries":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 | PHP | TypeScript |
| license.spdx | MIT | MIT |
| market.availability | `{"primaryMarkets":[],"availabilityScope":"global","availableCountries":[],"notAvailableCountries":[]}` | `{"primaryMarkets":[],"availabilityScope":"global","availableCountries":[],"notAvailableCountries":[]}` |
| platform.support | `{"cli":true,"web":true}` | `{"cli":true}` |
| pricing | `{"type":"open_source","freeTier":true,"sourceUrl":"https://www.doctrine-project.org/","retrievedAt":"2026-08-14T08:35:07.074Z"}` | `{"type":"open_source","freeTier":true,"sourceUrl":"https://sequelize.org","retrievedAt":"2026-08-14T21:37:06.541Z"}` |
| pricing.free_tier | yes | yes |
| pricing.model | commercial | commercial |
| pricing.price_level | free | free |
| pricing.transparent | yes | yes |
| release.cadence_days | 2 | 20 |
| release.history | `[{"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"}]` | `[{"url":"https://github.com/sequelize/sequelize/releases/tag/v6.37.8","date":"2026-03-07T18:44:44Z","type":"stable","version":"v6.37.8"},{"url":"https://github.com/sequelize/sequelize/releases/tag/v7.0.0-alpha.48","date":"2026-02-04T13:52:17Z","type":"prerelease","version":"v7.0.0-alpha.48"},{"url":"https://github.com/sequelize/sequelize/releases/tag/v7.0.0-alpha.47","date":"2025-10-25T08:02:02Z","type":"prerelease","version":"v7.0.0-alpha.47"},{"url":"https://github.com/sequelize/sequelize/releases/tag/v6.37.7","date":"2025-03-28T11:35:01Z","type":"stable","version":"v6.37.7"},{"url":"https://github.com/sequelize/sequelize/releases/tag/v7.0.0-alpha.46","date":"2025-03-22T20:59:50Z","type":"prerelease","version":"v7.0.0-alpha.46"},{"url":"https://github.com/sequelize/sequelize/releases/tag/v6.37.6","date":"2025-03-04T10:38:26Z","type":"stable","version":"v6.37.6"},{"url":"https://github.com/sequelize/sequelize/releases/tag/v7.0.0-alpha.45","date":"2025-02-17T13:59:21Z","type":"prerelease","version":"v7.0.0-alpha.45"},{"url":"https://github.com/sequelize/sequelize/releases/tag/v7.0.0-alpha.44","date":"2025-01-27T07:32:05Z","type":"prerelease","version":"v7.0.0-alpha.44"},{"url":"https://github.com/sequelize/sequelize/releases/tag/v6.37.5","date":"2024-10-25T12:30:39Z","type":"stable","version":"v6.37.5"},{"url":"https://github.com/sequelize/sequelize/releases/tag/v7.0.0-alpha.43","date":"2024-10-04T14:13:01Z","type":"prerelease","version":"v7.0.0-alpha.43"},{"url":"https://github.com/sequelize/sequelize/releases/tag/v6.37.4","date":"2024-10-04T14:21:15Z","type":"stable","version":"v6.37.4"},{"url":"https://github.com/sequelize/sequelize/releases/tag/v7.0.0-alpha.42","date":"2024-09-13T13:40:39Z","type":"prerelease","version":"v7.0.0-alpha.42"},{"url":"https://github.com/sequelize/sequelize/releases/tag/v7.0.0-alpha.41","date":"2024-05-17T14:56:35Z","type":"prerelease","version":"v7.0.0-alpha.41"},{"url":"https://github.com/sequelize/sequelize/releases/tag/v6.37.3","date":"2024-04-13T20:54:30Z","type":"stable","version":"v6.37.3"},{"url":"https://github.com/sequelize/sequelize/releases/tag/v7.0.0-alpha.40","date":"2024-04-11T17:31:50Z","type":"prerelease","version":"v7.0.0-alpha.40"},{"url":"https://github.com/sequelize/sequelize/releases/tag/v6.37.2","date":"2024-03-29T18:55:34Z","type":"stable","version":"v6.37.2"},{"url":"https://github.com/sequelize/sequelize/releases/tag/v7.0.0-alpha.39","date":"2024-03-22T17:25:56Z","type":"prerelease","version":"v7.0.0-alpha.39"},{"url":"https://github.com/sequelize/sequelize/releases/tag/v7.0.0-alpha.38","date":"2024-03-19T08:38:28Z","type":"prerelease","version":"v7.0.0-alpha.38"},{"url":"https://github.com/sequelize/sequelize/releases/tag/v7.0.0-alpha.37","date":"2024-02-10T13:55:26Z","type":"prerelease","version":"v7.0.0-alpha.37"},{"url":"https://github.com/sequelize/sequelize/releases/tag/v6.37.1","date":"2024-02-18T00:44:09Z","type":"stable","version":"v6.37.1"}]` |
| security.disclosure_policy | - | yes |
| security.scorecard | 6.9 | 6.7 |
| security.vulnerabilities | `{"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"}` | `{"count":19,"source":"https://advisories.ecosyste.ms/api/v1/advisories?ecosystem=npm&package_name=sequelize&per_page=100","last_12m":2,"max_severity":"CRITICAL"}` |

## Capabilities (ORM & Database Tools)

| Capability | Doctrine | Sequelize |
|---|:--:|:--:|
| **Core** |  |  |
| Type-safe queries | - | ✓ |
| Schema migrations | ✓ | ✓ |
| Relations / joins API | ✓ | ✓ |
| Languages | PHP | JavaScript, TypeScript |
| **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-01T14:33:44.119Z. "-" = undocumented, not absent.*
