Does business-logic code fit inside Sage app folder?

Hi,

I am currently migrating a WordPress website to Bedrock. Not a direct 1-to-1 migration but more of a rebuild. The original website was based around a site-specific plugin that handled all the business login and integrations with 3rd-party plugins (ACF, FluentForms, etc..), while the block theme was mainly built with the UI site-editor.

For the rebuild, I am considering using more of Root’s ecosystem (I am just now getting to know it) and want to build the theme with Sage. Looking at the structure of a Sage theme and seeing there’s an app folder, is that only intended as view/rendering app? or would it fit for a implementing the entire website app (business logic, integration with external CRM and payment processors)?

themes/your-theme-name/   # → Root of your Sage based theme
├── app/                  # → Theme PHP
│   ├── Providers/        # → Service providers
│   ├── View/             # → View models
│   ├── filters.php       # → Theme filters
│   └── setup.php         # → Theme setup
├── public/               # → Built theme assets (never edit)
├── resources/ 

The intention is to follow best practices and not work against Sage or WordPress standards.

Radicle would be a better fit for you IMO

Thanks. I will take a look.

The links to the documentation and GitHub are broken here: Radicle - Laravel-Powered WordPress Starter Stack | Roots

Didn’t find the repo under https://github.com/orgs/roots/ either.

Thanks, I need to add a note below those links that they’re only available for Radicle customers once you get access to the repo

Looks good from what I can see on the website. But I want to make sure it’s a right fit for me.

I am not familiar with Laravel. Would the learning curve be long coming from traditional WordPress development? (Although not a PHP framework, I am familiar with Django Rest Framework so maybe it helps)

Also, I plan to use Learn Dash and maybe (big maybe) Woo commerce. Is Radicle compatible with these plugins? Don’t mind needing to patch them if I can keep maintenance to a minimum.

I am not familiar with Laravel. Would the learning curve be long coming from traditional WordPress development? (Although not a PHP framework, I am familiar with Django Rest Framework so maybe it helps)

Maybe others could chime in on this, but between docs + LLMs I wouldn’t expect this to be a problem, especially with how Radicle’s starting point is setup (and Radicle specific docs, not accounting for the public docs for our other projects)

Also, I plan to use Learn Dash and maybe (big maybe) Woo commerce. Is Radicle compatible with these plugins? Don’t mind needing to patch them if I can keep maintenance to a minimum.

Not sure on Learn Dash, but my main Radicle site is a WooCommerce app with zero issues.

1 Like

Thanks for taking the time to answer. I did go through Laravel docs moments ago. It aligns with what I know working on other projects with other framework.

Appreciate the help.

1 Like