Download the PHP package dominservice/laravel-theme-helper without Composer

On this page you can find all versions of the php package dominservice/laravel-theme-helper. 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 laravel-theme-helper

Dominservice Laravel Theme Helper

[Packagist]() Latest Version Total Downloads

A Laravel package for:

It is designed to be the integration layer between your Laravel application and one or more frontend themes, while still providing the usual <head> and </body> helpers.


Table of contents


Requirements

The current 4.x line targets DominPress and Laravel 13. Laravel 10–12 and PHP 8.1–8.3 remain available through the previous 3.x line. PHP 8.4 is required by spatie/schema-org 5.


Installation

Optional hreflang integration:

Publish config if you want to define themes globally:

This publishes:


Quick start

RobotsTxtBuilder::addGroup() wspiera także extras, więc można dodać dyrektywy specyficzne dla wybranych botów, np. Max-image-preview: large.

setIcons() wspiera także pełniejsze deklaracje favicon/PWA, m.in. apple_touch, icon, manifest, mask_icon, mask_color, ms_tile_image, ms_tile_color i theme_color. MetaManager wspiera też dodatkowe tagi head przez setAuthor(), setGenerator(), addMeta() i setHttpEquiv().

Switch public theme dynamically:


Theme system

Contexts

The package supports theme contexts.

Typical usage:

Rules are application-defined, but a common setup is:

Theme config

Published config structure:

Theme discovery with theme.json

The package can discover themes from one or more directories. This lets you keep your application-defined themes in config while also supporting uploaded or shipped themes described by a manifest.

Example config:

Example theme.json:

If a theme key already exists in config, config has priority over discovered manifests. This makes discovery safe for local overrides.

Drivers

Supported asset drivers:

Theme switching


Structured data

Multiple schema types on one page

Google supports multiple structured data items on the same page when they describe user-visible content on that page. This is useful for pages that need more than one schema type at once, for example:

This package supports that pattern through @graph.

Simple example:

Schema collection API

This lets you output one graph that contains separate entities for organization data, product data, services, breadcrumbs or page-level metadata.

Schema presets

For common business pages you often want a repeatable graph instead of building every entity manually.

Available preset keys:

Example:


Sitemap

The package includes a builder for XML sitemaps. It supports:

Example:

For sitemap indexes:


Robots.txt

The package also includes a builder for robots.txt.

Example:


Responsive images

The package includes a small renderer for SEO-friendly responsive images with modern formats.

Example using explicit <source> nodes:

Or using a simpler format map:


API

Main facade methods:


Blade integration


Helpers

Available helpers:


Deployment notes

Theme definitions can now also carry:

This makes the package a good base for future theme upload, import/export and theme management panels without forcing a specific storage model today.


Testing

Run package tests:


License

MIT


All versions of laravel-theme-helper with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
ext-json Version *
laravel/framework Version ^13.32
spatie/schema-org Version ^5.0.1
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 dominservice/laravel-theme-helper contains the following files

Loading the files please wait ...