All Projects → aimeos → Aimeos Laravel

aimeos / Aimeos Laravel

Licence: mit
Laravel ecommerce package for professional, ultra fast online shops, complex B2B applications and #gigacommerce

Programming Languages

PHP
23972 projects - #3 most used programming language
Blade
752 projects

Projects that are alternatives of or similar to Aimeos Laravel

Bagisto
An easy to use, free and open source laravel eCommerce platform to build your online shop in no time.
Stars: ✭ 4,140 (-20.45%)
Mutual labels:  ecommerce, ecommerce-platform, laravel-application, ecommerce-framework, multi-tenant, laravel, laravel-package, opensource, shop, laravel-ecommerce, multivendor-ecommerce
Aimeos
Integrated online shop based on Laravel 8 and the Aimeos e-commerce framework
Stars: ✭ 2,354 (-54.77%)
Mutual labels:  ecommerce, shop, e-commerce, laravel, ecommerce-platform, shopping-cart, b2b, aimeos
Laracom
Laravel FREE E-Commerce Software
Stars: ✭ 1,570 (-69.83%)
Mutual labels:  ecommerce, shop, e-commerce, laravel, opensource, shopping-cart, laravel-ecommerce
Aimeos Core
Aimeos PHP e-commerce framework for ultra fast online shops, complex B2B applications and #gigacommerce
Stars: ✭ 2,152 (-58.65%)
Mutual labels:  ecommerce, shop, e-commerce, marketplace, b2b, aimeos
Wellcommerce
Open-source E-Commerce software
Stars: ✭ 499 (-90.41%)
Mutual labels:  ecommerce, shop, ecommerce-platform, opensource, shopping-cart
Example Storefront
Example Storefront is Reaction Commerce’s headless ecommerce storefront - Next.js, GraphQL, React. Built using Apollo Client and the commerce-focused React UI components provided in the Storefront Component Library (reactioncommerce/reaction-component-library). It connects with Reaction backend with the GraphQL API.
Stars: ✭ 471 (-90.95%)
Mutual labels:  ecommerce, shop, e-commerce, ecommerce-platform, marketplace
Ever
Ever® - Open-Source Commerce Platform for On-Demand Economy and Digital Marketplaces
Stars: ✭ 980 (-81.17%)
Mutual labels:  ecommerce, shop, e-commerce, ecommerce-platform, marketplace
Ryal
🏵 An e-commerce library for elixir; just to save you some pain, we're still in construction, so star us instead or donate!
Stars: ✭ 87 (-98.33%)
Mutual labels:  ecommerce, shop, e-commerce, ecommerce-platform, shopping-cart
Ecommerce Laravel Bootstrap
Responsive, Multi-Vendor, MultiLanguage Online Store Platform (shopping cart solution)
Stars: ✭ 99 (-98.1%)
Mutual labels:  ecommerce, e-commerce, ecommerce-platform, laravel, shopping-cart
Grandnode
Open source, headless, multi-tenant eCommerce platform built with .NET Core, MongoDB, AWS DocumentDB, Azure CosmosDB, Vue.js.
Stars: ✭ 1,768 (-66.03%)
Mutual labels:  ecommerce, shop, ecommerce-platform, marketplace, shopping-cart
S Cart
This project has been replaced by https://github.com/s-cart/s-cart
Stars: ✭ 258 (-95.04%)
Mutual labels:  ecommerce, shop, e-commerce, laravel, shopping-cart
Reaction
Mailchimp Open Commerce is an API-first, headless commerce platform built using Node.js, React, GraphQL. Deployed via Docker and Kubernetes.
Stars: ✭ 11,588 (+122.67%)
Mutual labels:  ecommerce, shop, e-commerce, ecommerce-platform, marketplace
Shopping Cart
An easy-to-use shopping cart for Laravel
Stars: ✭ 57 (-98.9%)
Mutual labels:  e-commerce, ecommerce-framework, laravel, laravel-package, shopping-cart
Nopcommerce
The most popular open-source eCommerce shopping cart solution based on ASP.NET Core
Stars: ✭ 6,827 (+31.19%)
Mutual labels:  ecommerce, shop, ecommerce-platform, e-commerce, shopping-cart
Aimeos Typo3
TYPO3 e-commerce extension for professional, ultra fast online shops, complex B2B applications and #gigacommerce
Stars: ✭ 157 (-96.98%)
Mutual labels:  json-api, ecommerce, shop, e-commerce, marketplace
Aimeos Symfony
Symfony e-commerce bundle for professional, ultra fast online shops, complex B2B applications and #gigacommerce
Stars: ✭ 194 (-96.27%)
Mutual labels:  json-api, ecommerce, shop, e-commerce, marketplace
grandnode2
Free, Open source, Fast, Headless, Multi-tenant eCommerce platform built with .NET Core, MongoDB, AWS DocumentDB, Azure CosmosDB, LiteDB, Vue.js.
Stars: ✭ 626 (-87.97%)
Mutual labels:  ecommerce, marketplace, shopping-cart, shop, ecommerce-platform
Spree
Open Source headless multi-language/multi-currency/multi-store eCommerce platform
Stars: ✭ 11,571 (+122.35%)
Mutual labels:  ecommerce, shop, e-commerce, ecommerce-platform
Laravel Ecommerce
Laravel open source e-commerce system.
Stars: ✭ 163 (-96.87%)
Mutual labels:  ecommerce, shop, ecommerce-platform, laravel
storefront-app
Storefront by Fleetbase is an open source hyperlocal shopping or services app. Enables users to quickly launch their own shop or service booking app or setup a multi-vendor marketplace.
Stars: ✭ 40 (-99.23%)
Mutual labels:  ecommerce, shopping-cart, shop, e-commerce
Aimeos logo

Aimeos Laravel ecommerce package

Total Downloads Build Status Coverage Status Scrutinizer Code Quality License

Star us on GitHub — it helps!

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.

  • LTS release: 2021.10 (6.x, 7.x and 8.x)

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.

wget https://getcomposer.org/download/latest-stable/composer.phar -O composer
php composer create-project aimeos/aimeos myshop

More about the full package: 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:

wget https://getcomposer.org/download/latest-stable/composer.phar -O composer
php composer require aimeos/aimeos-laravel:~2021.10

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

Specified key was too long; max key length is 767 bytes

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:

'connections' => [
    'mysql' => [
        // ...
        'charset' => 'utf8',
        'collation' => 'utf8_unicode_ci',
        // ...
    ]
]

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:

  • MySQL, MariaDB (fully)
  • PostgreSQL (fully)
  • SQL Server (fully)

Installation

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

    "prefer-stable": true,
    "minimum-stability": "dev",
    "require": {
        "aimeos/aimeos-laravel": "~2021.10",
        ...
    },
    "scripts": {
        "post-update-cmd": [
            "@php artisan migrate",
            "@php artisan vendor:publish --tag=public --force",
            "\\Aimeos\\Shop\\Composer::join"
        ],
        ...
    }

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:

php artisan vendor:publish --all
php artisan migrate
php artisan aimeos:setup --option=setup/default/demo:1

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.

Setup

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

APP_URL=http://127.0.0.1:8000

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

SESSION_DRIVER=file

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 that is available since PHP 5.4. Simply execute this command in the base directory of your application:

php artisan serve

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

http://127.0.0.1:8000/index.php/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:

Route::group(['middleware' => ['web']], function () {
	Route::get('/', '\Aimeos\Shop\Controller\CatalogController@homeAction')->name('aimeos_home');
});

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

Admin

To use the admin interface, you have to set up Laravel authentication first:

Laravel 8

composer require laravel/jetstream
php artisan jetstream:install livewire
npm install && npm run dev

For more information, please follow the Laravel documentation:

Laravel 7

composer require laravel/ui:^2.0
php artisan ui vue --auth
npm install && npm run dev

For more information, please follow the Laravel documentation:

Laravel 6

composer require laravel/ui:^1.0
php artisan ui vue --auth
npm install && npm run dev

For more information, please follow the Laravel documentation:

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:

php artisan aimeos:account --super <email>

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).

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:

    public function boot()
    {
        // Keep the lines before

        Gate::define('admin', function($user, $class, $roles) {
            if( isset( $user->superuser ) && $user->superuser ) {
                return true;
            }
            return app( '\Aimeos\Shop\Base\Support' )->checkUserGroup( $user, $roles );
        });
    }

Test

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

mkdir public/aimeos public/vendor
chmod 777 public/aimeos public/vendor

In a production environment, you should be more specific about the granted permissions! 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/index.php/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:

    'madmin' => array(
        'cache' => array(
            'manager' => array(
                'name' => 'None',
            ),
        ),
    ),

License

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

Links

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].