Download the PHP package hasnayeen/themes without Composer

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

Themes for Filament panels

preview

Latest Version on Packagist Total Downloads

Themes is a Filament plugin that allows users to set themes from a collection and customize the color of the selected theme. The package provides a simple and easy-to-use interface for selecting and applying themes to Filament panels.

Available For Hire

For custom theme please reach out via discord

I'm also available for contractual work on this stack (Filament, Laravel, Livewire, AlpineJS, TailwindCSS). Reach me via discord

Installation

You can install the package via composer:

Publish plugin assets by running following commands

If you want to set theme per user then you'll need to run the package migration. You can publish and run the migrations with:

You need to publish config file and change 'mode' => 'user' in order to set theme for user separately

You can publish the config file with:

This is the contents of the published config file:

Optionally, you can publish the views using

Usage

You'll have to register the plugin in your panel provider

Add Hasnayeen\Themes\Http\Middleware\SetTheme middleware to your provider middleware method or if you're using filament multi-tenancy then instead add to tenantMiddleware method.

This plugin provides a themes setting page. You can visit the page from user menu.

page-menu-link

Authorization

You can configure the authorization of themes settings page and user menu option by providing a closure to the canViewThemesPage method on ThemesPlugin.

Customize theme collection

You can create new custom theme and register them via registerTheme method on plugin.

You can also remove plugins default theme set by providing override argument as true. You may choose to pick some of the themes from plugin theme set.

Create custom theme

You can create custom theme and register them in themes plugin. To create a new theme run following command in the terminal and follow the steps

This will create the following class

If your theme support changing primary color then implement Hasnayeen\Themes\Contracts\HasChangeableColor interface and getPrimaryColor method.

If your theme need to change panel config then do so inside modifyPanelConfig method in your theme.

Next add a new item to the input array of vite.config.js: resources/css/awesome.css

Available Themes

Dracula (dark)

dracula-dark

Nord (light)

nord-light

Nord (dark)

nord-dark

Sunset (light)

sunset-light

Sunset (dark)

sunset-dark

Upgrading

Everytime you update the package you should run package upgrade command so that necessary assets have been published.

Alternatively you can add this command to composer.json on post-autoload-dump hook so that upgrade command run automatically after every update.

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of themes with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
filament/filament Version ^3.0
spatie/laravel-package-tools Version ^1.15.0
illuminate/contracts Version ^10.0|^11.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 hasnayeen/themes contains the following files

Loading the files please wait ....