Download the PHP package loamok/sf2security-bundle without Composer

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

Loamok Symfony 2 Security Bundle

Inspired from https://inuits.eu/blog/getting-fail2ban-work-symfony2-proper-way

Thank you Kalman Olah for the great article.

A bundle for plug symfony to linux fail2ban security application

Important note about revisions :

Revision 2 is for Symfony 2.x Revision 3 is for Symfony 3.x Revision 3 is merged in dev-master and in develop

So if you are using Symfony 2.8 you must use revision 2 of this bundle.

Important note about revisions :

Migration from sf 2.8 to sf 3.3 :

In all cases :

If you have moved your log files to var/logs instead of app/logs you must :

  1. upgrade to revision 3 or dev-master
  2. adapt your logrotate scripts according to this documentation
  3. adapt your fail2ban documentation

If you haven't moved your log files and still let them in app/logs yopu have nothing to do. Eventually upgrade this bundle to revision 2 to ensure you dont go to 3 by error.

First step rotate the logs

Start by configuring log rotate on your web server.

What you need :

  1. Full path of your application logs
  2. System webserver username
  3. Root or sudo access
  4. name of your application

Create an empty file in the logrotate config directory with a pattern like this :

Write this in your new file (substitute with good values) :

Then (if your application has already started working and do logs) force first rotating :

Install this bundle in your application

Composer.json :

And run composer update.

Add it to your kernel AppKernel.php :

Mod your security config file

plug-in to fail2 ban :

Create a symbolic link from filter conf file to /etc/fail2ban/filter :

Add the jail definition for fail2ban (/etc/fail2ban/jail.conf) (sample is in the filter file) :

Restart fail2 ban service and that's it you just secure your symfony2 application against brutforce.


All versions of sf2security-bundle with dependencies

PHP Build Version
Package Version
No informations.
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 loamok/sf2security-bundle contains the following files

Loading the files please wait ....