smartbooster/sonata-bundle

SMART BOOSTER Sonata setup

Installs: 8 505

Dependents: 4

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 2

Open Issues: 3

Type:symfony-bundle

v2.1.1 2024-03-28 10:06 UTC

README

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';

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