In most of the world, the "Rails vs PHP" debate means Rails vs Laravel. In France, it almost always means Ruby on Rails vs Symfony. Symfony is a French framework, backed by the company SensioLabs, and it is everywhere in French IT services firms (the consultancies large organisations hire to build and run their software), in large corporations and in the public sector. Rails is less common in France, but it runs products such as Doctolib, Shopify and GitHub. This comparison is written for decision makers (CTOs, founders, IT managers at mid-sized companies, project leads) who have to choose for a new application or for the rebuild of an existing one.
We are a Ruby on Rails agency, so we are not neutral. We own that bias, and we also point out the cases where Symfony is objectively the better choice. If you are weighing Rails against Laravel, the other major PHP framework, our Ruby on Rails guide compares it with Laravel, Django and Node.js.
Two opposite philosophies
Rails: convention and integration
Ruby on Rails, released in 2004 by David Heinemeier Hansson, rests on two principles: convention over configuration and Don't Repeat Yourself. An Invoice model reads the invoices table without you declaring it. The framework comes with decisions already made for the database, views, emails, background jobs, caching, real time and deployment. All Rails applications look alike, which speeds up the start of a project and makes handovers easier.
Symfony: decoupled components and explicit configuration
Symfony, created by Fabien Potencier and released in 2005, is first of all a set of reusable PHP components (routing, HTTP, console, forms, security, dependency injection) assembled into a framework. These components are solid enough that other projects use them: Laravel and Drupal both rely on several of them. The philosophy is the opposite of Rails: nothing is magic, services are declared and injected, configuration is readable. Symfony Flex and autoconfiguration have reduced the wiring, but the spirit remains: make things explicit rather than guess.
Neither approach is better in absolute terms. Convention saves time as long as you stay within the expected path. Explicitness costs more lines up front, but makes every decision visible, which large teams appreciate.
What each framework provides
Data access: Active Record vs Doctrine
Rails uses Active Record: the business object holds both its data and the way it is saved (invoice.save). It is direct and very productive for the vast majority of business applications. Symfony usually relies on Doctrine ORM, which follows the Data Mapper pattern: entities are plain PHP objects, and an entity manager takes care of persistence. Doctrine separates business logic from the database more cleanly, at the cost of more ceremony. Both handle schema migrations, and both work very well with PostgreSQL.
Interface: Hotwire vs Symfony UX
Rails ships Hotwire by default, that is Turbo and Stimulus, to build reactive interfaces by sending HTML from the server, without a separate React application. Symfony offers Symfony UX, a collection of packages that integrate Stimulus and Turbo (two libraries born in the Rails ecosystem at 37signals) along with Live Components. Both frameworks therefore converge on the same idea: HTML rendered on the server, enhanced just enough. The difference is that Hotwire is the default path in Rails, while Symfony UX is one option among others (classic Twig templates, a React or Vue front end, API only). If you are weighing that front-end question, read React or Hotwire with Ruby on Rails.
Background jobs: Solid Queue vs Messenger
Since Rails 8, Solid Queue is the default background job system, and it stores the queue in the database, without Redis. On the Symfony side, the Messenger component handles synchronous and asynchronous messages, with several possible transports (database through Doctrine, Redis, AMQP). Messenger is more general and also serves as an internal message bus. Solid Queue is simpler to set up for the common case: sending an email, generating a PDF, syncing with a third-party service.
APIs: Rails API mode vs API Platform
Rails can run in API-only mode and pairs well with a mobile or JavaScript front end. But on this ground, Symfony has a serious asset: API Platform, an open source project that also originated in France, built on Symfony, which generates a documented REST or GraphQL API (OpenAPI) from your entities, with pagination, filters and validation. If your project is above all a rich API consumed by several clients, API Platform is a real argument for Symfony.
For the rest (authentication, emails, forms, caching, security by default), both are complete. Symfony relies on its bundles, such as MakerBundle or EasyAdmin for back offices; Rails on its gems.
Productivity and time to market
This is where Rails stands out most clearly. Conventions, generators and the consistency of the full stack (from the database to deployment) reduce the number of decisions to make. A small Rails team spends little time assembling tooling and most of its time writing business logic. That is what makes our Rails MVP development approach possible in a few weeks.
That does not make Symfony slow. A team that has used it for years, with its own project templates, delivers efficiently. But at the start, Symfony requires more choices (structure, bundles, front end, message queue) and more explicit code. On an MVP, or a product whose scope changes every week, that gap shows. On a project with stable specifications, run by an experienced Symfony team, it narrows.
Maintainability and upgrades
Symfony has a very predictable release policy, published on symfony.com: a minor version every six months, a major version every two years, and an LTS (long-term support) version at the end of each major cycle, maintained for several years. Deprecated features are flagged in advance, so you can prepare the upgrade. For an IT department planning several years ahead, that is reassuring.
Rails has no LTS label. Its maintenance policy is public: the latest versions receive bug and security fixes, older ones fall out of support. So you need to upgrade regularly, which goes smoothly when done along the way and becomes expensive when you wait several years. That is exactly the work we do as part of our Rails upgrade service, and our Rails 8 upgrade guide details the method.
On long-term readability, both hold up: code quality and tests matter more than the framework.
Hosting and deployment
A practical advantage for Symfony: PHP runs everywhere, including on classic shared hosting. For a modest application, that is simple and cheap. For a serious application, you move to a dedicated server, a VPS or containers anyway, and the gap narrows.
Rails does not run on PHP shared hosting. You need a server (VPS or dedicated) or a hosting platform (PaaS) that supports Ruby, such as Heroku, Render or, in France, Scalingo and Clever Cloud. Since Rails 8, Kamal deploys the application to any Linux server with a single command, and Solid Queue and Solid Cache remove the need to run Redis. In practice, hosting is no longer an obstacle to Rails, but it requires a skill that PHP shared hosting does not.
Hiring developers in France
Let's be clear: the PHP and Symfony talent pool in France is much larger than the Ruby on Rails one. Symfony is taught in schools, used by many IT services firms, and present in many public administrations and large companies. Finding a Symfony developer, or an IT services firm that provides one, is easier.
Rails developers are rarer, usually experienced, and often concentrated in startups and SaaS companies. If you plan to build a large in-house team, Symfony makes hiring easier. If you work with an agency or a small, stable team, the scarcity of Rails profiles matters less, because you need few of them to get a lot done. Dedicated Rails developers can also fill a temporary gap.
Ruby on Rails vs Symfony comparison table
| Criterion | Ruby on Rails | Symfony |
|---|---|---|
| Language | Ruby | PHP |
| Origin | 2004, David Heinemeier Hansson (37signals) | 2005, Fabien Potencier (SensioLabs, France) |
| Philosophy | Convention over configuration, integrated stack | Decoupled components, explicit configuration |
| Data access | Active Record | Doctrine ORM (Data Mapper) |
| Reactive interface | Hotwire (Turbo, Stimulus) by default | Symfony UX (Turbo, Stimulus, Live Components) as an option |
| Background jobs | Solid Queue, in the database | Messenger, several transports |
| Rich API | API mode, dedicated gems | API Platform, a key strength |
| Speed to get started | Very fast | Good, more choices to make |
| Release cycle | No LTS, regular upgrades recommended | Fixed schedule, LTS versions |
| Hosting | VPS with Kamal, or PaaS | Anywhere, including shared hosting |
| Hiring in France | Rarer profiles, often experienced | Large pool, many IT services firms |
| Typical use case | MVP, SaaS, business app with a small team | Large-company IT, PHP team, complex API |
When Symfony is the better choice
- You already have a PHP team. Moving skilled Symfony developers to Ruby carries a training cost and a risk. Unless you have a strong reason, keep their tool.
- Your systems already run on Symfony. In a large organisation where applications, monitoring, security rules and vendors are all set up for Symfony, adding a Rails component creates an exception to maintain.
- You need a specific component. API Platform to expose a rich API, or integration with an existing PHP ecosystem (Drupal, Sylius, an in-house CMS): the right tool is already there.
- Your purchasing goes through IT services firms or public tenders where Symfony is the norm, and you want to be able to switch vendors easily.
- You are targeting shared hosting for a simple, low-traffic application.
When Rails is the better choice
- You are launching an MVP or a SaaS and time to market matters more than anything. Rails conventions spare you weeks spent on tooling.
- You are building a business application with a small team: CRM, ERP, customer portal, back office. Rails covers all of it with very few dependencies.
- Your scope is going to change a lot. Rails lends itself to fast iterations and to data model changes thanks to its migrations.
- You want a modern interface without maintaining a separate React front end. Hotwire is the default path, documented and consistent with the rest of the stack.
- You want lean infrastructure: one server, a PostgreSQL database, deployment with Kamal.
Decision matrix
| Your situation | Our recommendation |
|---|---|
| Startup or new SaaS, small team, need to ship fast | Rails |
| Business app for an SME, no in-house tech team, working with an agency | Rails |
| Skilled and available in-house PHP/Symfony team | Symfony |
| Large-company IT standardised on Symfony | Symfony |
| Project centred on a rich API consumed by several clients | Symfony with API Platform, or Rails in API mode depending on the team |
| Plan to bring development in-house and hire several developers | Symfony, unless you are targeting product profiles who already know Rails |
| Existing Rails application to evolve | Rails, with an upgrade if needed |
| Existing Symfony application that works | Symfony, see the next section |
Migrating an ageing PHP or Symfony application to Rails?
We are regularly asked this question about older PHP applications: a Symfony app left on an unsupported version, an in-house framework, or a mix of both. A rewrite is never a small decision. Here is how we assess it.
When it is worth it
- The application is stuck on a very old version, and upgrading would cost almost as much as a rewrite, because most dependencies have to be redone.
- The business has changed a lot and the data model no longer matches reality. You are going to rebuild a large share of the screens anyway.
- Nobody understands the code anymore, the original team has left and documentation is missing.
- You already work with a Rails team that will maintain the application afterwards.
When it is not worth it
- The application works and is kept up to date: a Symfony upgrade is almost always less risky than a rewrite.
- You have a Symfony team that knows the code. Switching languages on principle destroys value.
- The only problem is the interface: Symfony UX or a front-end redesign may be enough.
When the migration is justified, we proceed step by step rather than in a big bang: rework the data model, migrate the data, then rewrite module by module, running both applications side by side if needed. If you are also considering Python, our Ruby on Rails vs Django comparison complements this one.
The best framework is the one your team masters and will be able to maintain. When there is no team yet, Rails saves time; when there is a PHP team, Symfony is often the sensible choice.
Do you have a project or an existing application, and want a frank opinion, even if the answer is Symfony? Tell us about your project.
FAQ
Is Ruby on Rails faster than Symfony?
In development speed, Rails is generally faster thanks to its conventions and integrated stack. In runtime performance, both frameworks are more than enough for the vast majority of web applications: the database, caching and code quality make the difference, not the choice between Ruby and PHP.
Is Symfony better suited to large enterprises than Rails?
Symfony is very common in large French organisations, with a predictable release schedule, LTS versions and a wide network of IT services firms. Rails also runs very large platforms such as Shopify and GitHub. For a large organisation, the deciding factor is usually consistency with the existing IT landscape and the teams already in place.
Can Symfony do real time and reactive interfaces like Rails?
Yes. Symfony UX integrates Turbo and Stimulus, two libraries that come from the Rails ecosystem, along with Live Components. Rails ships Hotwire by default, with Action Cable for real time. Both make modern interfaces possible without a separate React application.
Is it easier to hire a Symfony developer than a Rails developer in France?
Yes. The PHP and Symfony talent pool is much larger in France, notably through IT services firms. Rails developers are rarer and usually experienced. A small Rails team or a specialised agency can, however, carry a complete application, which reduces the number of people you need to hire.
Should you rewrite a Symfony application in Rails?
Rarely, if the application works and is kept up to date: a Symfony upgrade is less risky. A rewrite makes sense when the application is stuck on a very old version, the business has changed a lot, or nobody understands the code anymore. In that case, a step-by-step migration limits the risk.