It could be a new beginning in the WordPress era. Imagine WordPress being WordPress, but also being Symfony. Not a subset of WordPress and a subset of Symfony. Both WordPress and Symfony at their full potential, at the same time, on the same application.
Sounds like a dream? It's now reality.
Meet Sword. The best of both worlds.
So, what Sword really is and what problems does it solve? If you've heard of Bedrock, it's similar but with Symfony.
Sword is Symfony running WordPress.
It allows you to:
- use a centralized composer for WordPress core and plugins as well as other libs
- extend a WordPress website well outside its bounds, into the modern framework territory
- give WordPress code standardized and modern style and patterns
- bring all the good things of Symfony into WordPress, be it dependency injection, translator, Symfony UX, etc...
There's no limit to what you can do.
You want Symfony routes bypassing WordPress? No problem, it's a Symfony app.
You need Symfony UX into your WordPress theme? Sure.
You need a specific page to be 100% Symfony with API calls to WordPress API? Yes you can.
Full installation with Docker takes one command. Zero configuration. No Docker knowledge needed (recommended for further usage though).
Your Sword app should be ready in one or two minutes.
Performance wise, it seems fast enough. Pure Symfony performance is not impacted, the WordPress side is maybe 90ms slower. No big deal given the superpowers you get in exchange.
Here's the link: https://getsword.com
If you like it please give a star on the Github repo and share it!
I previously posted on Reddit, it got some attention with interesting comments. Check it out eventually:
Few months ago I came here to introduce a library to work with WordPress database from a third party app (WordpressInterop). I use it to work in a Symfony app that connects to some WordPress websites.
And then I had a monolithic dream. While the world is falling apart into microservices, I had a vision of WordPress and Symfony merging…