Skip to content

monsieurbiz/SyliusAdminBetterLoginPlugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ This plugin is depracated due to a limitation of Unsplash API. Please use monsieurbiz/SyliusBetterAdminPlugin instead.

Banner of Sylius Admin Better Login plugin

Sylius Admin Better Login

Admin Better Login Plugin license Tests Status Recipe Status Security Status

This plugin changes the way you log to your admin panel by adding a beautiful background and focusing on the username (or password) field.

The backgrounds are from Unsplash.
Thank you to all the authors.

Compatibility

Sylius Version PHP Version
1.11 8.0 - 8.1
1.12 8.1 - 8.2
1.13 8.1 - 8.2

Installation

If you want to use our recipes, you can configure your composer.json by running:

composer config --no-plugins --json extra.symfony.endpoint '["https://api.github.com/repos/monsieurbiz/symfony-recipes/contents/index.json?ref=flex/master","flex://defaults"]'
composer require monsieurbiz/sylius-admin-better-login-plugin

Then you have to declare it in your config/bundles.php:

<?php
return [
    // …
    MonsieurBiz\SyliusAdminBetterLoginPlugin\MonsieurBizSyliusAdminBetterLoginPlugin::class => ['all' => true],
];

You can copy the template of the login page as well, it's optional.
But we strongly suggest it, otherwise you won't be able to really enjoy the background 🙃.

mkdir -p templates/bundles/
cp -Rv vendor/monsieurbiz/sylius-admin-better-login-plugin/src/Resources/views/SyliusUiBundle templates/bundles/

How it works

When you load the login page we make a HTTP request to get a random image on Unsplash.
We keep the random image's URL in your local storage for the rest of the day.

If you don't like the image, there is a small button in the left footer of the page.

Change the theme of the images

You can do that! Simply change the default tags (nature and water) with your owns in your project configuration:

monsieurbiz_sylius_admin_better_login:
    tags: ['paris by night']

Testing

See TESTING.md.

Contributing

You can open an issue or a Pull Request if you want! 😘
Thank you!