Download the PHP package byrcsc/laravel-whitelabel without Composer

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

Laravel Whitelabel

Latest Version on Packagist GitHub Tests Action Status GitHub PHPStan Action Status Total Downloads

Give every white-label client its own branding and settings across web pages, emails, and background jobs in one Laravel application.

Laravel Whitelabel stores each client's logo, favicon, colours, mail sender, and application settings as a brand. It selects one active brand for each request or job, so every part of the application reads the same client configuration.

The package manages branding only. Your application remains responsible for tenants, users, billing, authorization, and content.

Laravel Tested PHP versions
12.x 8.3, 8.4
13.x 8.3, 8.4

Tested with SQLite, MySQL, and PostgreSQL. The optional integration supports spatie/laravel-multitenancy 4.x.

Installation

Install the package and publish its configuration:

The installer can also publish the migration for database-managed brands:

How it works

A brand is an immutable definition with fixed fields for its name, domain, logo, favicon, colours, and mail sender, plus a settings array for values your application owns.

The default config driver reads definitions from config/whitelabel.php. The database driver stores them in a table and supports create, update, and delete operations. Both return the same Brand object through the BrandRepository contract.

The active brand comes from the first resolver that finds one. The default order checks an explicit activation, the current Spatie tenant, the request domain, and finally the configured default brand. Values omitted by a brand inherit from the default brand one key at a time.

Quick start

Brands can live in configuration or the database. This shortest example uses the config driver, which fits brands managed through deployments. Use the database driver when customers create or edit their branding at runtime; the Blade code below stays the same.

Define a default brand and a domain-specific brand in config/whitelabel.php:

Render the active brand in a shared Blade layout:

A request for acme.test uses Acme's name, logo, colour, and support URL. Its missing favicon falls back to the default brand's favicon.

What is included

Documentation

The versioned documentation contains the full setup, guides, behavior details, and API reference:

Development

The local checks mirror CI:

PHPStan runs at max with no baseline. Tests run against SQLite locally and against MySQL and PostgreSQL in CI. The public API test pins the supported classes and methods. See CONTRIBUTING.md for the full development workflow.

workbench/ is a bootable demo application that exercises both repositories, the resolver chain, Blade components, branded mail, queued work, Spatie Multitenancy, and the testing helpers. Run composer build, then follow the workbench demo loop.

Out of scope

The package will not include:

Versioning

The package follows semantic versioning.

Bug fixes go into the newest version only. To get a fix, upgrade to it.

Questions and issues

This package is maintained by one person, so replies can take a while. Everything gets read.

Credits

License

MIT. See CHANGELOG.md.


All versions of laravel-whitelabel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/console Version ^12.0||^13.0
illuminate/contracts Version ^12.0||^13.0
illuminate/database Version ^12.0||^13.0
illuminate/filesystem Version ^12.0||^13.0
illuminate/http Version ^12.0||^13.0
illuminate/mail Version ^12.0||^13.0
illuminate/queue Version ^12.0||^13.0
illuminate/support Version ^12.0||^13.0
illuminate/view Version ^12.0||^13.0
spatie/laravel-package-tools Version ^1.16
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 byrcsc/laravel-whitelabel contains the following files

Loading the files please wait ...