Download the PHP package aimeos/aimeos-laravel without Composer

On this page you can find all versions of the php package aimeos/aimeos-laravel. 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?

All versions of aimeos-laravel with dependencies

Informations about the package aimeos-laravel

Aimeos logo

Aimeos Laravel ecommerce package

Total Downloads Build Status Coverage Status Scrutinizer Code Quality License

:star: Star us on GitHub — it motivates us a lot! 😀

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

Aimeos Laravel demo

Table of content

Supported versions

This document is for the Aimeos Laravel package 2021.10 and later.

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

Basic application

Full shop application

If you want to set up a new application or test Aimeos, we recommend the Aimeos shop application. You need composer 2.1+ to install Aimeos.

It will install a complete shop system including demo data for a quick start without the need to follow the steps described in this readme.

More about the full package: :star: Aimeos shop

Shop package only

The Aimeos Laravel online shop package is a composer based library. It can be installed easiest by using Composer 2.1+ in the root directory of your exisisting Laravel application:

Database

Make sure that you've created the database in advance and added the configuration to the .env file in your application directory. Sometimes, using the .env file makes problems and you will get exceptions that the connection to the database failed. In that case, add the database credentials to the resource/db section of your ./config/shop.php file too!

If you don't have at least MySQL 5.7.8 or MariaDB 10.2.2 installed, you will probably get an error like

To circumvent this problem, drop the new tables if there have been any created and change the charset/collation setting in ./config/database.php to these values before installing Aimeos again:

Caution: Also make sure that your MySQL server creates InnoDB tables by default as MyISAM tables won't work and will result in an foreign key constraint error!

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. Supported are:

Installation

Then, add these lines to the composer.json of the Laravel skeleton application:

Afterwards, install the Aimeos shop package using

composer update

In the last step you must now execute these artisan commands to get a working or updated Aimeos installation:

In a production environment or if you don't want that the demo data gets installed, leave out the --option=setup/default/demo:1 option.

Authentication

You have to set up one of Laravels authentication starter kits. Laravel Breeze is the easiest one but your can also use Jetstream.

Laravel 8 & 9

For more information, please follow the Laravel documentation:

Laravel 7

For more information, please follow the Laravel documentation:

Laravel 6

For more information, please follow the Laravel documentation:

Configure authentication

As a last step, you need to extend the boot() method of your App\Providers\AuthServiceProvider class and add the lines to define how authorization for "admin" is checked in app/Providers/AuthServiceProvider.php:

Create account

Test if your authentication setup works before you continue. Create an admin account for your Laravel application so you will be able to log into the Aimeos admin interface:

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 "--admin", "--editor" or "--api" instead of "--super" (access to everything).

Setup

To reference images correctly, you have to adapt your .env file and set the APP_URL to your real URL, e.g.

Caution: Make sure, Laravel uses the file session driver in your .env file! Otherwise, the shopping basket content won't get stored correctly!

If your ./public directory isn't writable by your web server, you have to create these directories:

In a production environment, you should be more specific about the granted permissions!

Test

Then, you should be able to call the catalog list page in your browser. For a quick start, you can use the integrated web server. Simply execute this command in the base directory of your application:

Frontend

Point your browser to the list page of the shop using:

http://127.0.0.1:8000/shop

Note: Integrating the Aimeos package adds some routes like /shop or /admin to your Laravel installation but the home page stays untouched! If you want to add Aimeos to the home page as well, replace the route for "/" in ./routes/web.php by this line:

For multi-vendor setups, read the article about multiple shops.

This will display the Aimeos catalog home component on the home page you you get a nice looking shop home page. The /shop page will look like:

Aimeos frontend

Backend

If you've still started the internal PHP web server (php artisan serve) you should now open this URL in your browser:

http://127.0.0.1:8000/admin

Enter the e-mail address and the password of the newly created user and press "Login". If you don't get redirected to the admin interface (that depends on the authentication code you've created according to the Laravel documentation), point your browser to the /admin URL again.

Caution: Make sure that you aren't already logged in as a non-admin user! In this case, login won't work because Laravel requires to log out first.

Aimeos backend

Hints

To simplify development, you should configure to use no content cache. You can do this in the config/shop.php file of your Laravel application by adding these lines at the bottom:

License

The Aimeos Laravel package is licensed under the terms of the MIT license and is available for free.

Links


Version
Requires composer-runtime-api Version ^2.1
doctrine/dbal Version ~2.9||~3.0
laravel/framework Version ^9.0
nyholm/psr7 Version ~1.2
laminas/laminas-diactoros Version ~2.5
symfony/psr-http-message-bridge Version ~2.0
aimeos/aimeos-core Version 2022.04.*
aimeos/ai-laravel Version 2022.04.*
aimeos/ai-admin-jqadm Version 2022.04.*
aimeos/ai-admin-jsonadm Version 2022.04.*
aimeos/ai-client-html Version 2022.04.*
aimeos/ai-client-jsonapi Version 2022.04.*
aimeos/ai-controller-jobs Version 2022.04.*
aimeos/ai-controller-frontend Version 2022.04.*

The package aimeos/aimeos-laravel contains the following files

Loading the files please wait ....