Download the PHP package aimeos/aimeos-symfony without Composer

On this page you can find all versions of the php package aimeos/aimeos-symfony. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

Please rate this library. Is it a good library?

All versions of aimeos-symfony with dependencies

Informations about the package aimeos-symfony

Aimeos logo

Aimeos Symfony bundle

Total Downloads Build Status Coverage Status Scrutinizer Code Quality

:star: Star us on GitHub — it helps!

Aimeos is THE professional, full-featured and ultra fast e-commerce package for Symfony! You can install it in your existing Symfony application within 5 minutes and can adapt, extend, overwrite and customize anything to your needs.

Aimeos Symfony demo

Table of content

Installation

This document is for the latest Aimeos 2021.07 and Symfony 4.4.

If you want to upgrade between major versions, please have a look into the upgrade guide!

The Aimeos Symfony e-commerce bundle is a composer based library that can be installed easiest by using Composer. If you don't have an existing Symfony application, you can create a skeleton application using

These settings need to be added to the ./config/packages/fos_user.yaml file:

The Aimeos components have to be configured as well to get authentication working correctly. You need to take care of three things: Using the correct customer manager implementation and password encryption method as well as the right path for the storages. All must be appended at the end of the ./config/packages/aimeos_shop.yaml:

To configure the Aimeos routing, create the file ./config/routes/aimeos_shop.yaml with these lines:

The same applies for the FosUser bundle. Create the file ./config/routes/fos_user.yaml containing:

Make sure that the database is set up and it is configured in your ./config/packages/doctrine.yaml:

Also, you have to configure your database credentials in the .env file:

DATABASE_URL=mysql://db_user:[email protected]:3306/db_name

If you want to use a database server other than MySQL, please have a look into the article about supported database servers and their specific configuration.

Symfony 4 uses an in-memory mail spooler by default which collects the e-mails and send them at the end. This can be problematic if there's an error because you e.g. forgot to add a sender address and all e-mail gets lost. The settings for sending e-mails immediately in ./config/packages/swiftmailer.yaml are:

If you don't use Sendmail but SMTP for sending e-mails, you have to adapt the MAILER_URL configuration in your .env file, e.g.:

MAILER_URL=smtp://smtp.mailtrap.io:2525?encryption=tls&auth_mode=login&username=...&password=...

Composer

Then add these lines to your composer.json of your Symfony project:

Afterwards, install the Aimeos shop bundle using

composer update

In a production environment or if you don't want that the demo data gets installed, use the --no-dev option:

SYMFONY_ENV=prod composer update --no-dev

If you get an exception that the SensioGeneratorBundle isn't found, follow the steps described in the Aimeos Symfony forum post

Start the PHP web server in the base directory of your application to do some quick tests:

Then, you should be able to call the catalog list page in your browser using

Login and Admin

Setting up the administration interface is a matter of configuring the Symfony firewall to restrict access to the admin URLs.

Setting up the security configuration is the most complex part. The firewall setup in ./config/packages/security.yaml should look like this one:

Caution: The order of the configuration settings in this file is important!

These settings will protect the URLs from unauthorized access from someone without admin privileges.

The /profile URL is protected by the FOS user bundle as well, which also offers user registration.

As last step, you have to create an admin account using the Symfony command line:

The e-mail address is the user name for login and the account will work for the frontend too. To protect the new account, the command will ask you for a password. The same command can create limited accounts by using "--editor" instead of "--admin". If you use "--super" the account will have access to all sites.

If the PHP web server is still running (php -S 127.0.0.1:8000 -t public), you should be able to call the admin login page in your browser using

and authenticating with your e-mail and the password which has been asked for by the aimeos:account command.

Hints

To simplify development, you should configure to use no content cache. You can do this by adding these lines to ./config/packages/aimeos_shop.yaml:

License

The Aimeos Symfony bundle is licensed under the terms of the MIT license and is available for free.

Links


Version
Requires php Version ~7.1
aimeos/aimeos-core Version 2021.07.*
aimeos/ai-gettext Version 2021.07.*
aimeos/ai-monolog Version 2021.07.*
aimeos/ai-symfony Version 2021.07.*
aimeos/ai-swiftmailer Version 2021.07.*
aimeos/ai-admin-jqadm Version 2021.07.*
aimeos/ai-admin-jsonadm Version 2021.07.*
aimeos/ai-controller-jobs Version 2021.07.*
aimeos/ai-controller-frontend Version 2021.07.*
aimeos/ai-client-jsonapi Version 2021.07.*
aimeos/ai-client-html Version 2021.07.*
aimeos/ai-fosuser Version 2021.07.*
aimeos/ai-twig Version 2021.07.*
doctrine/common Version ^2.8||^3.0
symfony/asset Version ~3.4||~4.0||~5.0
symfony/monolog-bundle Version ~3.0
symfony/form Version ~3.4||~4.0||~5.0
symfony/framework-bundle Version ~3.4||~4.0||~5.0
symfony/security-bundle Version ~3.4||~4.0||~5.0
symfony/swiftmailer-bundle Version ~3.0
symfony/templating Version ~3.4||~4.0||~5.0
symfony/twig-bundle Version ~3.4||~4.0||~5.0
symfony/psr-http-message-bridge Version ~1.0
sensio/framework-extra-bundle Version ~3.4||~4.0||~5.0
nyholm/psr7 Version ~1.0

The package aimeos/aimeos-symfony contains the following files

Loading the files please wait ....