Download the PHP package softlandtech/theme-builder without Composer

On this page you can find all versions of the php package softlandtech/theme-builder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package theme-builder

softlandtech/theme-builder

A general-purpose visual theme builder (React + @dnd-kit drag-and-drop editor) and block renderer for any Laravel site — ecommerce, LMS, CMS, or personal/portfolio. A merchant opens the builder, edits their site in a drag-and-drop editor, and publish makes it live.


Requirements


Install — the easy way

The installer (all greps, no AI):

  1. Scans your app — models, migrations, routes, composer.json — and reports the detected site type (ecommerce / lms / cms / personal / new empty project) with the evidence it found. You can accept it or override it.
  2. Asks what already exists — a cart page? checkout? search? accounts? blog? (pre-filled from the scan).
  3. Lets you pick theme packages — personal, ecommerce, lms, cms — or several. Themes already on disk (vendor / beside the core package / previously cloned) are used as-is; anything missing is git-cloned from its repo (github.com/SoftLand-Tech/theme-builder-{slug}, overridable via theme-builder.theme_repos) into theme-builder-themes/ and seeded. When a theme can't be installed (offline, unknown slug), the installer falls back to the bundled starter for your site type, so you always end with a working theme.
  4. Does the manual install: publishes config/assets/lang/migrations, migrates, seeds the chosen presets, wires routes/web.php (/ storefront + ThemeBuilder::routes()), injects the Vite entries + Tailwind @source line, checks the npm deps, and records site_type + pages in the config.
  5. Prints an AI hand-off prompt (also saved to theme-builder-ai-prompt.md) containing the scan results, your choices, what was done, and an exact checklist for the host-specific remainder — paste it into Claude Code or any agent to finish. --no-ai skips this.

Every step is idempotent — re-running fills in only what's missing.

Install — the manual way

If your app already has a themes table with the same shape, skip the migration publish - just point the package at it via the db config (see Schema below).


Theme packages (personal / ecommerce / lms / cms)

The engine ships a bundled starter per site type (default for ecommerce/empty installs, personal, lms, cms) so installs work offline with zero extra packages; richer site-type personality comes from theme packages. Each is a small composer package containing:

Package Site type Pages it adds
softlandtech/theme-builder-personal personal / portfolio about, services, contact
softlandtech/theme-builder-ecommerce ecommerce product, collection, cart, checkout
softlandtech/theme-builder-lms LMS / courses course, lesson
softlandtech/theme-builder-cms CMS / blog post, page

Each lives in its own public repo — github.com/SoftLand-Tech/theme-builder-{slug} — and installs three ways:

Theme packages are discovered automatically — from vendor/*/*/theme-builder.json, from folders beside the core package (theme-builder-* — the dev layout), and from the host's themes directory (theme-builder.themes_path, default theme-builder-themes/ — update a cloned theme with git pull, then re-seed). Their pages appear in the editor's Pages tab, their presets in the theme picker, and their suggested routes_map entries are offered to the installer.

Build your own: copy one, edit theme-builder.json + the preset, and php artisan theme-builder:validate {slug} it. theme-builder:make-theme {slug} --from={slug} scaffolds a customizable copy into database/presets/. Point theme-builder.theme_repos.{slug} at your fork to make it clone-installable too.


Wire the frontend build (manual installs)

The editor's React source is built by your Vite, not the package's.

1. Add the editor entry to vite.config.js:

2. (Only for a symlinked path-repository install) tell Vite to preserve the symlink so the editor's react/@dnd-kit imports resolve from your node_modules:

3. (Only if you render the package's bundled block views) add a Tailwind @source line to resources/css/storefront.css so its utility classes compile:

Skip step 3 if you point the package at your own block views via theme-builder.blocks_view_prefix (see Block views).

Then npm install && npm run build.


Register routes (manual installs)

In routes/web.php:

ThemeBuilder::routes() accepts overrides: ['prefix' => 'builder', 'name' => 'builder', 'middleware' => [...], 'domain' => null] (defaults come from config('theme-builder.routes')).

The editor shell lives at GET /builder/themes/{theme}/edit (by default) and the JSON endpoints the editor calls (save/publish/promote/media/revisions/api) are registered alongside.

Pages & templates

Every theme stores per-page block lists (before / after the page's own content). Which pages exist is not hardcoded: it comes from theme-builder.pages config → installed theme packages → the starter pages for your site_type (course/lesson for LMS, post/page for CMS, about/services/contact for personal, product/cart/collection for ecommerce). The editor's Pages tab follows automatically.


Commands

validate exits non-zero on errors (suitable for CI / a pre-commit hook) and prints ! warnings for anything that will fall back to defaults.


Testing

The suite covers the block registry (every registered block resolves to a real Blade component), the Theme model (defaults, draft overlay, promotion, activation, preset forking), the builder HTTP endpoints (save/publish/promote/ restore, tenant isolation, validation — including arbitrary page-template keys), storefront rendering, the site detector, theme-package discovery, the theme-builder:install command (non-interactive, with host-file restore), and the theme-builder:validate command.


AI assistant integration (Laravel Boost)

The package ships a Boost guideline (resources/boost/guidelines/core.blade.php) and an agent skill (resources/boost/skills/theme-builder/SKILL.md) using Boost's first-party third-party-package hook. Boost auto-discovers them - no manual publish needed:

Not using Boost? Plain Claude Code can still use the skill:

The installer's generated prompt (theme-builder-ai-prompt.md) pairs with the skill: the prompt carries your app's scan results and remaining checklist, the skill carries the package integration knowledge.


Provide tenant data - the Store interface

The package reads tenant data only through an interface - never by assuming your Store model's columns. Implement it on your tenant model:

Then tell the package how to resolve the current store, in a service provider's register():

The package resolves the store fresh on every access, so route-model binding (which runs before your tenant middleware) safely sees "no tenant" and the controllers see the real tenant afterward.


Provide content data - the StorefrontDataProvider interface

Block types that show products/categories/blog (or courses mapped onto the same shapes) pull data through a contract, so the package ships no domain models. Implement and bind it:

Value shapes are documented in the interface docblock. featuredProduct() and blogPost() return mixed (a normalized array by default, or your own model if you keep your own block views - see Block views).

LMS hosts: map courses → products() (name/slug/url/price/rating), lessons → your own pages, and the same grids render your catalog — see the theme-builder-lms README.

Without a provider, static blocks (Hero, Banners, FAQ, …) render normally and product/category/blog blocks render empty - the bundled NullStorefrontDataProvider never throws.

Media (optional)

Implement SoftLand\ThemeBuilder\Contracts\MediaProvider and bind it to power the editor's media picker (list, store, url). Default is a null provider.


Schema - tables & columns are configurable

The package's themes / theme_revisions tables and the owning tenant column are not hardcoded. Three ways to adapt, in order of simplicity:

a) Publish the config and edit db:

b) Bind a custom ThemeSchema for full control (table names, tenant column, per-column remap) in a service provider:

c) Extend the (non-final) models (SoftLand\ThemeBuilder\Models\Theme, ThemeRevision) and override methods.

The default is SoftLand\ThemeBuilder\Support\DefaultThemeSchema, which reads the db config above.


Block views

The renderer registers each block under theme-builder.blocks_view_prefix (default theme-builder::storefront.blocks → the package's bundled Blade components).

Override a single block by publishing a view to resources/views/vendor/theme-builder/components/storefront/blocks/<kebab>.blade.php.

Per-theme component/header/footer overrides follow the convention resources/views/components/themes/{slug}/… (file existence is the signal - no registration). A packaged theme stylesheet goes at public/themes/{slug}/theme.css.


Configuration reference

Published at config/theme-builder.php:

Key Purpose
store_resolver Closure returning the current Store (tenant) or null.
active_theme_resolver Optional closure returning the active Theme directly.
exit_url Where the editor's "Exit" button redirects.
currency Fallback currency for the NullStore / tb_money().
default_preset Slug of the shipped/fallback preset.
site_type What kind of app this is (ecommerce/lms/cms/personal). Filled by the installer.
pages Page templates the builder edits (key => label). Null = theme packages → legacy trio.
discover_siblings Auto-discover theme-builder-* packages beside the core package.
themes_path Where cloned theme repos live (default theme-builder-themes/).
theme_repos slug => clone URL map for theme-builder:install. Point entries at forks.
offer_remote_themes Offer to git-clone catalog themes during install.
db themes_table, revisions_table, tenant_column, columns (remap).
acting_user_resolver Closure returning the revision author id (or null).
blocks_view_prefix Blade namespace/prefix for block components.
storefront_data_provider Default provider class (NullStorefrontDataProvider).
media_provider Default media provider class (NullMediaProvider).
routes enabled, path, name, middleware.
routes_map Maps tb_route() names (e.g. product, cart, course, page) to URLs/closures.

Helpers

tb_bi($value) (bilingual {ar,en} → locale), tb_money($cents, $currency), tb_route($name, $params=[]) (resolves via routes_map, strips a storefront. prefix, falls back to #).

Facade: ThemeBuilder::routes(), ThemeBuilder::pages(), ThemeBuilder::packages(), ThemeBuilder::renderTemplate($page, $slot).


Quickstart (single-tenant)

Open /, then /builder/themes/{id}/edit. Implement StorefrontDataProvider when you want real product/category data — or paste the generated theme-builder-ai-prompt.md into your AI agent and let it finish.


License

MIT.


All versions of theme-builder with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
laravel/framework Version ^13.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package softlandtech/theme-builder contains the following files

Loading the files please wait ...