Download the PHP package alexhenriet/common-bundle without Composer

On this page you can find all versions of the php package alexhenriet/common-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 common-bundle

CommonBundle

Common stuffs used in Symfony projects.

How to install the bundle ?

  1. Create bundle configuration in config/packages/alexhenriet_common.yaml BEFORE requiring the package or you'll get an error during install (the bundle has no recipe)

    common: ldap_host: 'ldap-host.lan'

    ldap_port: 389

       # ldap_opt_protocol_version: 3
       # ldap_opt_referrals: 0
       login_prefix: 'DOMAIN'
       # login_route: 'app_login'
       bypass_user_identifiers: ['MyLogin']
       bypass_environments: ['loc']
  2. Install the package with composer

    composer require alexhenriet/common-bundle

  3. Enable the package in config/bundles.php

    return [ ... Alexhenriet\Bundle\CommonBundle\CommonBundle::class => ['all' => true], ];

How to use the bundle ?

Custom Authenticator

  1. Generate user and auth using commands provided by symfony/maker-bundle

  2. Replace the custom authenticator in the security.yaml

    security: enable_authenticator_manager: true

    firewalls: main: custom_authenticators:

    • Alexhenriet\Bundle\CommonBundle\Security\BypassableLdapLoginFormAuthenticator
  3. Use _username and _password as input names in your template\security\login.html.twig

Abstract Controller

  1. Extend the abstract controller in a controller

    use Alexhenriet\Bundle\CommonBundle\Controller\AbstractController;

    class ActionsController extends AbstractController {}

  2. If you get error "Controller ... cannot be fetched from the container because it is private", add the following lines to your services.yaml

    controllers are imported separately to make sure services can be injected

    as action arguments even if you don't extend any base controller class

    App\Controller\: resource: '../src/Controller/' tags: ['controller.service_arguments']

Warranty Disclaimer and Limitation of Liability

THIS FREE LIBRARY IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTY OF ANY KIND. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THE AUTHOR DISCLAIMS ALL WARRANTIES, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE AND MERCHANTABILITY. UNDER NO CIRCUMSTANCES WILL THE AUTHOR BE LIABLE FOR ANY CONSEQUENTIAL, SPECIAL, INDIRECT, INCIDENTAL OR PUNITIVE DAMAGES WHATSOEVER ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME JURISDICTIONS DO NOT ALLOW LIMITATIONS ON IMPLIED WARRANTIES OR THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES, SO THE ABOVE LIMITATIONS MAY NOT APPLY TO YOU. THIS EULA WILL BE GOVERNED BY AND CONSTRUED IN ACCORDANCE WITH THE LAWS OF BELGIUM WITHOUT REGARD TO ITS CONFLICTS OF LAWS OR ITS PRINCIPLES. ANY CLAIM OR SUIT ARISING OUT OF OR RELATING TO THIS EULA WILL BE BROUGHT EXCLUSIVELY IN ANY COURT OF COMPETENT JURISDICTION LOCATED IN HAINAUT (BELGIUM).


All versions of common-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2.5
ext-ldap Version *
symfony/security-bundle Version ^5.4
symfony/config Version ^5.4
symfony/dependency-injection Version ^5.4
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 alexhenriet/common-bundle contains the following files

Loading the files please wait ....