Download the PHP package cooolinho/symfony-security-bundle without Composer

On this page you can find all versions of the php package cooolinho/symfony-security-bundle. 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 symfony-security-bundle

symfony-security-bundle

Setup

Install via composer

composer install cooolinho/symfony-security-bundle

update .env

MAILER_DSN=smtp://user:[email protected]:port

update security.yml

add to encoders

security:
    encoders:
        ...
        Cooolinho\Bundle\SecurityBundle\Entity\User:
            algorithm: auto

use in provider

security:
    providers:
        ...
        my_custom_provider:
            entity:
                class: Cooolinho\Bundle\SecurityBundle\Entity\User
                property: email | username

update firewall

security:
    firewalls:
        ...
        secured_admin_area:
            provider: my_custom_provider
            user_checker: Cooolinho\Bundle\SecurityBundle\Security\UserChecker
            custom_authenticator:
                - Cooolinho\Bundle\SecurityBundle\Security\SecurityAuthenticator
            logout:
                path: app_logout
                target: app_login

add role hierarchy

role_hierarchy:
    ROLE_SUPER_ADMIN: [ ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH ]
    ROLE_ADMIN: ROLE_USER

add access control

access_control:
    - { path: ^/login, roles: PUBLIC_ACCESS }
    - { path: ^/logout, roles: PUBLIC_ACCESS }
    - { path: ^/admin, roles: ROLE_ADMIN }

add cooolinho_security.yaml to config/packages

cooolinho_security:
    route_after_login: # REQUIRED
    user_class: # REQUIRED
    registration_enabled: false # optional
    route_login: app_login # optional
    route_logout: app_logout # optional
    mailer_from: test@localhost # optional
    mailer_name: Localhost Mailbot # optional
    login_provider_property: email # optional

ResetPassword Setup

First you have to create two classes: App\Entity\ResetPasswordRequest and App\Repository\ResetPasswordRequestRepository

App\Entity\ResetPasswordRequest

App\Repository\ResetPasswordRequestRepository

update reset_password.yaml in config/packages

symfonycasts_reset_password:
    request_password_repository: App\Repository\ResetPasswordRequestRepository

update config/routes/annotations.yaml

cooolinho_security:
    resource: ../../vendor/cooolinho/symfony-security-bundle/src/Controller/
    type: annotation

All versions of symfony-security-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
ext-ctype Version *
ext-iconv Version *
cooolinho/symfony-ui-bundle Version 5.4.*
sensio/framework-extra-bundle Version ^6.1
symfony/flex Version ^1.3.1
symfony/framework-bundle Version 5.4.*
symfony/mailer Version 5.4.*
symfony/security-bundle Version 5.4.*
symfony/translation Version 5.4.*
symfony/twig-bundle Version 5.4.*
symfony/yaml Version 5.4.*
symfonycasts/reset-password-bundle Version ^1.1
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 cooolinho/symfony-security-bundle contains the following files

Loading the files please wait ....