Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/3x1io/filament-themes
FrontEnd Themes Manager For Filament Admin
https://github.com/3x1io/filament-themes
filament laravel php tailwind theme
Last synced: 24 days ago
JSON representation
FrontEnd Themes Manager For Filament Admin
- Host: GitHub
- URL: https://github.com/3x1io/filament-themes
- Owner: 3x1io
- License: mit
- Created: 2022-01-05T03:28:35.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-06T15:55:08.000Z (9 months ago)
- Last Synced: 2024-11-18T03:07:50.356Z (about 1 month ago)
- Topics: filament, laravel, php, tailwind, theme
- Language: PHP
- Homepage: https://github.com/3x1io/filament-themes
- Size: 106 KB
- Stars: 34
- Watchers: 4
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
![Screenshot of Login](./art/screenshot.png)
# Filament Theme Manager
FrontEnd Themes Manager For Filament Admin
## Installation
You can install the package via composer:
```bash
composer require 3x1io/filament-themes
```Run migration:
```bash
php artisan vendor:publish --provider="Spatie\LaravelSettings\LaravelSettingsServiceProvider" --tag="migrations"
php artisan vendor:publish --tag="filament-themes-assets"
php artisan vendor:publish --tag="filament-themes-migrations"
```Run migration:
```bash
php artisan migrate
```Remove default route from routes/web.php
```bash
php artisan optimize
```add to your composer.json
```json
"autoload": {
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/",
"Themes\\": "resources/views/themes/"
}
},
``````bash
composer dump-autoload
```## Create New Theme
to create a new theme just this this command
```bash
php artisan filament-themes:generate
```it will ask you for the theme name and the theme description
and you will get your new theme folder on path `resources/views/themes/THEME_NAME`
and your assets folder on path `public/themes/THEME_NAME`
## Theme Helpers
our theme feature has some helpers to make it easy to make a frontend theme like theme assets url
```php
theme_assets()
```this function take a `url` and make it easy to access your theme path `public/themes/THEME_NAME/`
```php
theme_namespace()
```this function get the namespace for the controller folder of the current theme
```php
show_menu()
```this function take a `key` and get this key from `settings` table and decode it to array so you can use it when you make a menu inside a json setting.
```php
dollar()
```this function take a `number` and convert it to money style with a currency symbol
## Generate a Theme Controller
our themes feature support artisan command to generate a new theme controller you can use this command like
```bash
php artisan filament-themes:controller
```i will ask you about Theme Name and Controller Name
**Note:** the controller name must be in `PascalCase` without `Controller` word on the end because we attach it automatically
## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Credits
- [Fady Mondy](https://github.com/3x1io)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.