This website uses cookies

Our website, platform and/or any sub domains use cookies to understand how you use our services, and to improve both your experience and our marketing relevance.

📣 Try the fastest hosting platform with pay-as-you-go pricing & 24/7 expert support! MIGRATE NOW →

What Is Sulu & Why Do Developers Choose This Symfony CMS?

Updated on December 6, 2022

6 Min Read
sulu-cms

Sulu is a content management system built on Symfony PHP that supports highly customized content administration and publishing environments on the backend. Symfony and Sulu are both open source, free, supported by significant professional communities, and offer expert support.

Sulu is the go-to CMS for many agencies and developers within the PHP Symfony framework since it leverages a set of components ready to construct adaptable and performant backend solutions.

Let’s dive in to learn more about Sulu CMS.

Sulu CMS: An Overview

sulu cms

Digital agency professionals have developed Sulu for office professionals to offer everything a digital agency would need to build a project proficiently.

Sulu is designed with high-performance benchmarking at its core, without using any plugins. Integrated SEO functions help sites deliver their best performance to users, search engines, and third-party applications.

How Does Sulu Work?

adam ministrator

Sulu is built on top of a well-organized, feature-rich Symfony system.

Symfony’s Model-View-Controller (MVC) structural design is perfect for building systematic and adaptable web applications. The MVC design separates the application into three independent layers:

  • The Model layer describes data structures and their relations
  • The View layer focuses on complex business logic
  • The Controller layer exchanges data between the model and view layers

One of the main advantages of the MVC design is that it makes application management easier since each logical element is kept separate. Therefore, changing one area doesn’t affect the others.

For example, you can use the same data within the Admin portal and both web and mobile applications. This allows you to build fully scalable, easily maintainable, reliable backend solutions.

Why Choose Sulu CMS?

Sulu’s unique bundle of features and performance makes it a top choice for developers. This section covers some important reasons developers pick Sulu as their preferred CMS.

Simple User Interface

Sulu’s intuitive user interface provides content teams with an excellent experience, while developers can create an extensible backend to meet your custom business logic requirements.

Perfect for Enterprise Projects

Sulu is ideal for enterprise applications requiring extensive customization, including

  • Business logic–driven applications
  • Multilingual, multi-channel, and multi-portal infrastructure
  • News and media platforms
  • Brand and corporate web presences
  • Multi-channel platforms
  • Social and collaborative sites
  • Portals and intranets

Headless CMS Environment

Business websites have developed into rich software applications, requiring comprehensive integrations, data management capabilities, and business logic. Sulu offers developers a headless CMS environment to execute custom, data-driven capabilities and connect them to any innovative front end.

Integrations

Sulu offers multiple integrations with marketing tools such as Matomo, Google Analytics, and Google Tag Supervisor.

Sulu also integrates with Sylius , an open-source, headless ecommerce platform that relies on the Symfony framework. Products from Sylius can leverage Sulu’s CMS functions to optimize content. Sulu can hence be used to create an entire webshop, using Sylius as a headless ecommerce platform.

Who Should Use Sulu?

Sulu is designed for content professionals, developers, and digital marketers working in the business sector. The platform positions itself as a solution for enterprise-level websites and applications.

The need for pre-existing templates makes many frameworks unsuitable for clients trying to find an out-of-the-box website solution. But Sulu includes a bundle of functionalities for advanced marketers requiring high-end SEO and deep analytics integration while providing personalized content.

Custom modules can help you develop a well-organized, compliant backend for many business applications. You can find extensive documentation and a live demo here.

Nothing as Easy as Deploying Symfony Apps on Cloud

Have your PHP apps running on managed cloud servers in just a few minutes and enjoy instant performance boosts.

Usage Statistics

Sulu’s market share has recently increased significantly. Though interest in Sulu CMS has fluctuated throughout the year, it is becoming increasingly popular with content creators and developers.

usage-statistics

usage-statistics-1

How to Install Sulu On Cloudways

You can install Sulu on Cloudways in a few minutes by following these easy steps:

Step 1: Launch Your Server

  1. Visit the Cloudways Platform
  2. Sign up for a new account or log in with your credentials
  3. Click on Launch server
  4. Select PHP Stack as your application
  5. Fill in your Application , Server , and Project name

DO installation

Click Launch Now and wait a few minutes for your application to deploy on the server.

Step 2: Initialize Your Project

You can set up your project locally by running the following command:

composer create-project sulu/skeleton my-project -n
cd my-project
composer install

This will create a directory called “my-project” containing the files from https://github.com/sulu/skeleton , which is a basic setup of your application.

Configure the files in the “config” directory to change your application’s settings. Since Sulu’s content management is built upon webspaces, it is important to configure it correctly. Each of the webspaces configures a content tree, and each content tree may contain translations for different locales.

The default webspace configuration is located in “config/webspaces/example.xml”. You may rename this file to match your project.

To get started, change your webspace’s <name> and the <key> to your project’s name. The name is a human-readable label, shown in the administration interface, and the key is your wepspace’s unique identifier:

<?xml version="1.0" encoding="utf-8"?>

<webspace xmlns="http://schemas.sulu.io/webspace/webspace"

          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

          xsi:schemaLocation="http://schemas.sulu.io/webspace/webspace http://schemas.sulu.io/webspace/webspace-1.1.xsd">

    <name>My Project</name>

    <key>my-project</key>

    <!-- ... -->

</webspace>

Learn more about getting started in the Sulu documentation .

The new project should be stored in a Git repository. Execute the commands below to create a new commit and push it to GitHub.

cd my-project

git init

git remote add origin [email protected]:<username>/<repository>.git

git add .

git commit -m "Initial commit"

git push origin main

Step 3: Configure the Server

  • Navigate to the Server and click Settings & Packages in the left-hand navigation
  • Change your server’s PHP version to 8.1.
  • This will take a few minutes.

configure-server

Step 4: Launch an SSH Terminal

  • Go to the Master Credentials and click Launch SSH terminal :

launch-ssh-terminal

  • Head to the public_html folder and run a git clone command to download your Sulu CMS project:
cd applications/<application-id>/public_html

git clone git clone https://github.com/<username>/<repository>.git my-project

cd my-project

composer install
  • Add the .env.local file to configure your database URL:
APP_ENV=dev

APP_SECRET=my-super-secret-key

DATABASE_URL="mysql://<username>:<password>@127.0.0.1:3306/<db-name>?serverVersion=10.4"
  • Find your Database credentials by navigating to the Applications tab and click the www icon on the right-hand side
  • Select your application

select-app

  • And get your credentials under Application Management > Access Details :

access-details

  • Initialize your database by running the following command:
bin/console sulu:build dev

Step 5: Configure Your NGINX settings

  • Configure the root of the NGINX server by setting the configuration to “ my-project/public ”:

NGINX-settings

  • You can now open the Sulu CMS by following the application URL:

sulu-cms-url

  • A page like this will indicate that you’ve configured everything correctly:

sulu-homepage

  • Log in to the Sulu admin by adding ” /admin” to the URL. The default credentials are “admin/admin.”

sulu-dashboard

Step 6: Deployment

Manual deployment is the fastest way to test Sulu on a server, but we recommend using a deployment tool like Deployer . Read this blog post on how to configure and use Deployer.

Get started With Sulu on Cloudways

Sulu is a relatively young CMS based on advanced technologies like Symfony PHP and React JavaScript framework. Websites are a common use case for these frameworks, but Sulu CMS hosting is also a fantastic environment for building web applications.

Want to try it? Sulu is also exceptionally easy for developer onboarding. Get started with Sulu on Cloudways by following the instructions mentioned above!

Share your opinion in the comment section. COMMENT NOW

Share This Article

Shahzeb Ahmed

Shahzeb is a Digital Marketer with a Software Engineering background, works as a Community Manager — PHP Community at Cloudways. He is growth ambitious and aims to learn & share information about PHP & Laravel Development through practice and experimentation. He loves to travel and explore new ideas whenever he finds time. Get in touch with him at [email protected]

×

Get Our Newsletter
Be the first to get the latest updates and tutorials.

Thankyou for Subscribing Us!

×

Webinar: How to Get 100% Scores on Core Web Vitals

Join Joe Williams & Aleksandar Savkovic on 29th of March, 2021.

Do you like what you read?

Get the Latest Updates

Share Your Feedback

Please insert Content

Thank you for your feedback!

Do you like what you read?

Get the Latest Updates

Share Your Feedback

Please insert Content

Thank you for your feedback!

Want to Experience the Cloudways Platform in Its Full Glory?

Take a FREE guided tour of Cloudways and see for yourself how easily you can manage your server & apps on the leading cloud-hosting platform.

Start my tour

CYBER WEEK SAVINGS

  • 0

    Days

  • 0

    Hours

  • 0

    Mints

  • 0

    Sec

GET OFFER

For 4 Months &
40 Free Migrations

For 4 Months &
40 Free Migrations

Upgrade Now