Skip to content

SMART BOOSTER Sonata default configuration

License

Notifications You must be signed in to change notification settings

smartbooster/sonata-bundle

Repository files navigation

SMARTBOOSTER - Sonata bundle

Latest Stable Version Latest Unstable Version Total Downloads License

CI workflow Codacy Badge GitHub contributors

SymfonyInsight

Installation

Add the bundle as dependency with Composer

composer require smartbooster/sonata-bundle

Put this configuration inside your config/packages/smart_sonata.yaml

smart_sonata:
    sender:
        address: 'project@example.com'

Check full configuration reference here

Enable the bundle in the kernel

<?php
return [
    Smart\SonataBundle\SmartSonataBundle::class => ['all' => true],
];

Add frontend dependencies

    yarn add bootstrap-sass --dev

Include styles

# Copy and customize your colors
cp smartbooster/sonata-bundle/assets/styles/_variables.scss assets/admin/styles/_variables.scss

# Incluse smart sonata styles in your file (ex: assets/admin/styles/main.scss)
@import "variables";
@import 'smartbooster/sonata-bundle/assets/styles/main';

Tailwind

Check the Tailwind documentation to enable it and use our tailwind templates.

What's inside !

  • Default styles for sonata admin
  • Mailer component with an autogenerated documentation of all emails
  • Basic security class to handle User model in your database and controller actions for
    • login
    • forgot and reset password
    • a profile for the sonata admin interface
    • subscriber to handle automatically last login date
  • Provide an easy way to administrate your app parameters through each environment with the following tools :
    • A configuration template to define all parameters that need to exist in your application with their default value
    • A Command to use on CD to generate missing parameters
    • A Parameter Entity to store your parameters in database
    • An Admin to easily edit the value of your parameters and more data related to them

Contributing

Pull requests are welcome.

Thanks to everyone who has contributed already.


This project is supported by SmartBooster